0

My app invokes the Twitter v2 APIs to retrieve users tweets.

According to the Twitter Dev Portal I have a monthly tweet cap of 500,000 tweets that I can retrieve, and this UI tells me how much I've used.

However, is there any way to retrieve this data via an API?

This page seems to imply it's just via the UI, but I'm surprised there is no way to retrieve this via an API. Is there any such way even for v1?

1 Answer 1

1

v1.1 had no volume cap, but does have rate limits, which you can access via the HTTP headers on GET requests. POST requests are different, and managed at the user account level.

In v2, at the time of writing, there is currently no way to access the cap and volume data via the API - it is only available in the UI.

3
  • OK, thanks for the reply. Is it likely this will be added at some point?
    – DJ180
    Apr 19, 2021 at 12:13
  • Also, is a 429 returned when this occurs and does it contain the x-rate-limit-reset header that tells us when we can resume?
    – DJ180
    Apr 19, 2021 at 13:11
  • 1
    I believe there's an error message (not certain on the error code) when the cap is hit; you cannot rely on the x-rate-limit-* headers related to the monthly cap as they relate to call frequency, not to data volume. There are several open requests on the API feedback site relating to this and the product team may add something in future, but there is no specific timeframe.
    – Andy Piper
    Apr 20, 2021 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.