简体   繁体   中英

How can I detect twitter limit exceeded in json response

I am parsing the result from

    http://search.twitter.com/search.json?q="+"from:" 
                        + searchTerm + "&rpp="+limit;

Not sure what to look/how to parse for rate limit exceeded? Whats a reliable way to check this before looking for tweets in the string.

Currently, there is a rate limit of 350 requests per hour when using OAuth. I believe it's 150 when using Basic Auth which will be deprecated in June.

I think the best way to achieve that is by counting your own requests per hour to avoid breaking this limit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM