Twitter API - Display all tweets with a certain hashtag?

Probocop picture Probocop · Apr 26, 2010 · Viewed 120.7k times · Source

How would I go about displaying tweets that contain a certain hashtag using the Twitter API? Thanks

I'd also like to know if there is a way to get all tweets from a certain hashtag in a separate file, also the ones that don't show up in your feed anymore. I suppose that's what the earlier question was about, too.

Answer

Quentin picture Quentin · Apr 26, 2010

This answer was written in 2010. The API it uses has since been retired. It is kept for historical interest only.


Search for it.

Make sure include_entities is set to true to get hashtag results. See Tweet Entities

Returns 5 mixed results with Twitter.com user IDs plus entities for the term "blue angels":

GET http://search.twitter.com/search.json?q=blue%20angels&rpp=5&include_entities=true&with_twitter_user_id=true&result_type=mixed