skar
#1
I want to be able to query the Twitter-api for the latests tweets of 1-3 specific users (1.1/statuses/user_timeline)
Currently I’m using the free-api, but I run into some rate-limit restrictions. I placed a custom cache in front of it, but that sometimes fails and I will get a 429 back from the Twitter-api.
So I’m looking to get the premium-api. But will this be able to get the latests tweets without any limit?
In the docs there is a mention about the requests being limited to 100,000 per 24 hours:
Important notice: On June 19, 2019, we began limiting total GET requests to the v1.1 /statuses/mentions_timeline and /statuses/user_timeline endpoints to 100,000 requests per day.
So I was wondering if this is only for the standard (free) api or also for the premium?
And another question I have, in the description of the premium-api there is a mention of up to 25 subscriptions. What is a subscription in this context? Is that the different Twitter-user I’m querying?
Both Standard and Premium endpoints have limits. It sounds like your cache is not configured to align with the rate limits and you’re still hitting them. I would separate the code that calls the API and stores the results from any code that loads pages / refreshes etc. You can call the endpoint more with app only auth, and divide the calls between users so you’ll always have results at most 30 seconds to a minute old, or whatever number you want depending on how many users.
Alternatively you can use POST statuses/filter | Docs | Twitter Developer Platform to get tweets live without polling the API (this does require maintaining an open connection)
Using premium to get tweets from 1 to 3 users is extremely expensive. I would stick with 1.1/statuses/user_timeline but modify my code so that it stays within the rate limits. And the 100,000 / 24 hours is only for Standard, yes.
25 subscriptions is for the Account Activity API, which is a different API you can use if you own an account and want to track all activity (it can’t be used to track arbitrary accounts, they have to authenticate with your app).
1 Like
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.