Manoj
Manoj

Reputation: 390

Determing Twitter API Rate Limit for Statuses / Filter End-point

Currently we are using statuses/filter endpoint to fetch data based on given keywords but the data has been not fetching through out the day and we cannot able to find out exact limit for filter endpoint. https://developer.twitter.com/en/docs/tweets/filter-realtime/overview/statuses-filter

Upvotes: 5

Views: 349

Answers (2)

anon
anon

Reputation:

The statuses/filter endpoint is limited to 1% of the Twitter firehose so if you require more than this amount of data then it may not provide information.

Upvotes: 2

Jonas
Jonas

Reputation: 4048

You are limited to a single streaming connection connection. Limits in Twitter API are usually with regards to rate limits for requests. But that is for non-streaming requests. If your streaming connection gets dropped, you should look at the error code and respond accordingly.

Here is the Twitter doc with codes and streaming message types. https://developer.twitter.com/en/docs/tweets/filter-realtime/overview/statuses-filter

When your connection does get dropped, you can try to immediately reconnect but not too frequently. It's recommended that you implement a back-off strategy described here. https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/connecting

Also see the section regarding "Stalls."

Upvotes: 2

Related Questions