Twitter search api parameters

纵饮孤独 提交于 2020-03-21 07:45:49

问题


In twitter search api, I'm able to find new paramter src = 'typd' or src = 'sprv', getting different results for each src paramter.But I'm unable to figure it out, what the term 'typd' and 'sprv' means? for eg: https://twitter.com/search?q=Technology&src=typd https://twitter.com/search?q=Technology&src=sprv


回答1:


'sprv' and 'typd' relate to Twitter's spelling correction system. As Leb said, 'typd' indicates results from a query that was typed-in and may be incorrect; while 'sprv' is a clear "no, I really meant this".

For example, if I type 'flayrah' into the search bar I get results for 'flayra' at URL https://twitter.com/search?q=flayrah&src=typd and the text "Showing results for flayra. Search for flayrah instead."

Clicking the link brings me to https://twitter.com/search?q=flayrah&src=sprv with results for 'flayrah'.




回答2:


I'm not sure what sprv means but those two links aren't giving me different results, they're the exact same.

typd means that you actually typed the query into the search yourself.

Also note that the search through the previous link and search through Rest API (per your tag) are two different things.

The Twitter Search API is part of Twitter’s v1.1 REST API. It allows queries against the indices of recent or popular Tweets and behaves similarily to, but not exactly like the Search feature available in Twitter mobile or web clients, such as Twitter.com search.

https://dev.twitter.com/rest/public/search



来源:https://stackoverflow.com/questions/32820680/twitter-search-api-parameters

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