I’m trying to get a similar output to the search results from Twitter that are contextually aware of who I am and where I am (e.g. https://twitter.com/search?q=nytimes.com&src=typed_query&pf=on&lf=on).
As far as I can tell, none of the search APIs support non-user-agnostic queries. pf=on&lf=on don’t appear to be valid parameters or filters.
Is it possible to add user context to search queries through the API without resorting to manually pruning search results? If so, how do I go about it?
1 Like
Ditto. Right now I think the only way around this is to query for who a user follows and then automatically append the from:<user> operator over and over again to your query. Unfortunately this doesn’t scale past ~20 users because queries are limited to 500 characters. I’d love a more robust solution.
Unfortunately no, there’s no way to replicate these filters easily. The “near me” you can replicate with place: Operators by product | Docs | Twitter Developer Platform but there is no Premium equivalent to filter:follows. You’ll have to retrieve all matching tweets and sort them later when presenting to the user.
Ah, too bad…
I would love to see the Twitter search API reach feature parity with internal search. I feel like we could do really cool things with access to their internal search index, provided that it can be opened up securely and safely.
Cheers
1 Like
system
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.