Hello,
I am using the Full-archive search with the Twitter API V2 within the academic research product track.
Is it possible to make a request filtering profile geo information, such as below? When I try to do this, I receive a message saying that the operator is not available in current product or product packaging.
https://api.twitter.com/2/tweets/search/all?query=coronavirus profile_country:US
No, unfortunately The Search only supports these operators: Search Tweets - How to build a query | Docs | Twitter Developer Platform
The filter stream Filtered stream introduction | Docs | Twitter Developer Platform has some bio: operators Filtered stream - How to build a rule | Docs | Twitter Developer Platform that may or may not be useful to you - but since it’s the stream, you cannot fetch tweets from the past.
1 Like
Hello there,
How could one then search by user profile location? I know this was available in Full Archive Premium back in v1.1… Does one just have to go back to v1.1 for this?
You cannot exactly, v1.1 Premium had profile_country: but nothing beyond that Operators by product | Docs | Twitter Developer Platform
It did have several things beyond that which I used quite a bit. In that same link you’re sharing:
profile_locality: Exact match on the Locality field from the [Profile Geo enrichment]
profile_region: Exact match on the Region field from the [Profile Geo enrichment]
I used profile_region to match by the city specified in the user’s profile. Is it still possible to request a v1.1 app just so that these options were available? I’ve already gotten an Academic Research Track approval, but later realized that those options weren’t available anymore, and it’s kind of a big deal for my research. Thank you in advance!
Hello! Just a bump. Please see the previous post, but my main question remains: Is it still possible to request a v1.1 app just so that these options were available?
Yes, it’s still possible to use Premium APIs - If you have Elevated Access, you can use v1.1, and set up an environment on https://developer.twitter.com/en/account/environments using one of your apps, and then make calls to the fullarchive or 30day endpoint - but be aware that those operators are only available in a Paid Premium plan, so sandbox premium won’t work. (You can use twarc here too: twarc1 (en) - twarc )
Thank you! Yes, I realize the paid premium aspect. Really appreciate the correspondence!
1 Like