4 ms·
how does one handle rate-limiting : I mean what is the back off method that Twitter approves ? I have an app that pulls data from the Twitter streaming API, fi
by sandGorgon 16y ago
how does one handle rate-limiting : I mean what is the back off method that Twitter approves ?
I have an app that pulls data from the Twitter streaming API, filtering on a keyword. Suppose, I start getting rate-limited errors (I guess any response code other than 200, means that you are getting rate limited).
Can I still keep pinging Twitter - and when the 60 minutes are up, will the tweets start coming in again ? Or can I sleep for exactly 65 minutes and hope that everything will be fine again ?
- abraham 16y agoYou are confusing the Streaming API with the REST API a bit. The Streaming API rate limiting notices [1] for statuses are delivered in the stream and once the limitation period expires the matches will start automatically being delivered again. This generally means your keywords are too generic or common. If you are getting a response other then 200 check for the coresponding reason on Twitter's list [2]. [1] http://dev.twitter.com/pages/streaming_api_concepts#filter-limiting http://dev.twitter.com/pages/streaming_api_concepts#filter-l... [2] http://dev.twitter.com/pages/streaming_api_response_codes http://dev.twitter.com/pages/streaming_api_response_codes