Make the endpoint rate limited at user level instead of app level
We have built a social media management app that allows our customers to also view insights for their social accounts and posts.
Every midnight we refresh insights for all posts published via our app in the past 7 days.
For Twitter, we're only recording the number of favorites and retweets (returned by the /tweets endpoint), but we would like to gather more metrics, such as impressions, # of replies and video views.
The current rate limit is 15 requests / 15 minutes and 50 Tweets / request.
This basically means we can gather metrics for only 15 customers at a time (up to 50 Tweets per customer), unless we add a 15 minutes wait time between jobs.
This would work if the rate limit was at the user level instead of the app level, similar to elevated POST limit.
I know that the enterprise API is another solution, but we simply cannot afford that at the moment.
Kalemi Code commented
Perfect! If that's the case then we will start testing the endpoint only for some of our customers in order to not hit the rate limit.
Yes! We hear you. Our Labs previews are early versions of what these endpoints are expected to become in our next-generation platform. They are intended to help you experiment so that you can share your feedback with us about structure, included metrics, and more. When this endpoint graduates from Labs, you can expect it to have rate limits better aligned with how you might use them at scale.