Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 537
Manoj Avatar asked Oct 01 '19 10:10

Manoj


2 Answers

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."

like image 173
Jonas Avatar answered Nov 09 '22 06:11

Jonas


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.

like image 23
Andy Piper Avatar answered Nov 09 '22 07:11

Andy Piper