Does the Twitter API provide filtering by username and hashtag?

Can I get all the tweets of a specific user that uses a specific hashtag?

I could just get the last 100 tweets and then filter them at my end, but it would be much more convenient if Twitter could do the filtering at its end.

Is it possible?

+3
source share
3 answers

Twitter Advanced Search allows you to build the query you want. Unfortunately, the search results only look for tweets published in the last 24 hours or so; may just be a time limit, not sure.

URL- ( JSON Atom):

http://search.twitter.com/search?q=%23HASHTAG+from:USERNAME http://search.twitter.com/search.json?q=%23HASHTAG+from:USERNAME http://search.twitter.com/search.atom?q=%23HASHTAG+from:USERNAME

.

+7
+3

v1.1 API Twitter ( OAuth), GET URL-, :

https://api.twitter.com/1.1/search/tweets.json?q=from:whitehouse+#sotu

Search API " ". , 7 .

+2

Source: https://habr.com/ru/post/1760967/


All Articles