Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all tweets with specific hashtag

I've been experimenting with the Twitter API because I want to display a few lists of tweets on a special page.

Among those lists is a list with all tweets containing a specific hashtag (e.g. #test)

However I cannot find how to get that list in either XML or JSON (preferably the latter), does anyone know how? It is also fine if it can be done in TweetSharp

like image 713
dtech Avatar asked Mar 13 '11 16:03

dtech


People also ask

How do I see all Tweets in a hashtag?

If you already have a hashtag in mind, type into the Twitter search box at the top of the page. You will then be able to filter your search by top tweets, latest tweets, people (Twitter users) with the hashtag in the name or bio, photos that use the hashtag, and videos that use the hashtag.

Can you search Twitter by hashtag?

You can also search for Tweets in English by using the hashtag. For example, “#WorldCup” sent from Brazil in July 2014 will show you Tweets about the world cup that year. Need more help? If you have more questions about advanced search, you can contact our Support team.

Is there a website that can count the number of Tweets for a specific hashtag?

3 simple steps to count the number of tweets of a hashtag We will just be following these simple 3 steps: Go to https://www.tweetbinder.com/ Enter the hashtag to track in the search box and press “Get Twitter Count“ See the exact tweet count for the last 7 days.


1 Answers

You can simply fetch http://search.twitter.com/search.json?q=%23test to get a list of tweets containing #test in JSON, where %23test is #test URL encoded.

I'm not familiar with TweetSharp, but I guess there must be a search command that you can use to search for #test, and then transform the resulting tweets into JSON yourself.

like image 54
gnab Avatar answered Oct 16 '22 22:10

gnab