GET
/
2
/
usage
/
tweets
curl --request GET \
  --url https://api.twitter.com/2/usage/tweets \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "cap_reset_day": 123,
    "daily_client_app_usage": [
      {
        "client_app_id": "<string>",
        "usage": [
          {
            "date": "2021-01-06T18:40:40.000Z",
            "usage": 123
          }
        ],
        "usage_result_count": 123
      }
    ],
    "daily_project_usage": {
      "project_id": 123,
      "usage": [
        {
          "date": "2021-01-06T18:40:40.000Z",
          "usage": 123
        }
      ]
    },
    "project_cap": 123,
    "project_id": "<string>",
    "project_usage": 123
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

days
integer
default:7

The number of days for which you need usage for.

Required range: 1 <= x <= 90
usage.fields
enum<string>[]

A comma separated list of Usage fields to display.

Available options:
cap_reset_day,
daily_client_app_usage,
daily_project_usage,
project_cap,
project_id,
project_usage
Example:
[
  "cap_reset_day",
  "daily_client_app_usage",
  "daily_project_usage",
  "project_cap",
  "project_id",
  "project_usage"
]

Response

200
application/json
The request has succeeded.
data
object

Usage per client app

errors
object[]

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).