user1847544
user1847544

Reputation: 977

What will twitter return in json if the twitter limit is exceeded?

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

Answers (1)

Rocel
Rocel

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

Related Questions