Authorizations
Query Parameters
Required range:
1 <= x <= 90Minimum length:
1Example:
curl --request GET \
--url https://api.x.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>"
}
]
}Retrieves usage statistics for Posts over a specified number of days.
curl --request GET \
--url https://api.x.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>"
}
]
}1 <= x <= 901Show child attributes