I have a long-established app associated with Twitter handle N (as I’ll call it) that searches for tweets from another account that contain a video. When I use the standard API, that app is able to find tweets even if the target account T is protected, as long as N follows T. The endpoint I am using there is https://api.twitter.com/1.1/statuses/user_timeline.json.
Since I created that app, I found that the Standard API no longer reliably returns all the relevant tweets (roughly, since the Premium API was introduced :)). So I am trying out the Premium API, using the endpoint https://api.twitter.com/1.1/tweets/search/…, still in association with N.
However, I have found that using that API with the ‘from:T has:video’ operators no longer returns tweets while T is protected. If I temporarily unprotect T and make a new post, it works i.e. I retrieve the new post.
Is this the expected behaviour? Is there a workaround? It’s essential for my application that my particular app can run through tweets in a protected account this way. Obviously, the circumstances are that the target account T has allowed N to follow it, in order to get through the protection.