Twitter: Hash tag search query

不羁岁月 提交于 2019-11-28 05:03:57

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.

Spikerr

Just for people who come this post now. This current format works

https://api.twitter.com/1.1/search/tweets.json?q=%23test&include_entities=true

I use the http://search.twitter.com/search.json?q=%23test format shown above, but in recent weeks this format has stopped working. It returns valid JSON, yes, but the return has zero tweets while a manual search of the hashtag on twitter.com shows one or more results. This happens with every hashtag I try. Has anyone else experienced this?

Edit: I've also noticed that adding a hyperlink to a tweet causes it to show up only in my feed, while it fails to show in either site search or JSON. I'm a Twitter novice; am I missing something basic here?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!