Reputation: 977
I need to detect if twitter limit has been exceeded. Is there something in the JSON response like a code or do I need to check the HttpResponse code?
Here is my URL: http://search.twitter.com/search.json?q=android
Thanks
Upvotes: 1
Views: 593
Reputation: 1037
according to twitter API doc: https://dev.twitter.com/docs/rate-limiting/1.1, it does answer an 429 HTTP code, with:
{
"errors": [
{
"code": 88,
"message": "Rate limit exceeded"
}
]
}
Upvotes: 6