The Usage API in the Twitter API v2 allows developers to programmatically retrieve their project usage. Using thie endpoint, developers can keep a track and monitor of the number of Tweets they have pulled for a given billing cycle.
/usage/tweets
| Name | In | Type | Description |
|---|---|---|---|
| days | query | Integer | |
| fields | query | Usage_Fields |
| Status Code | Type |
|---|---|
| 200 | Tweet_Usage_Response |
| 999 | Errors |