The Usage endpoint lets you monitor your API usage, including the number of Posts consumed. Track your usage programmatically to manage costs and stay within limits.Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Pay-per-usage plans are subject to a monthly cap of 2 million Post reads. If you need higher volume, consider an Enterprise plan.
Overview
Post usage
Track Posts consumed
Daily breakdown
View usage by day
App-level
Monitor usage across your App
Endpoint
| Method | Endpoint | Description |
|---|---|---|
| GET | /2/usage/tweets | Get Post usage data |
Response data
The response includes daily Post consumption counts:Fields
| Field | Description |
|---|---|
daily_project_usage | Array of daily usage data |
date | Date in YYYY-MM-DD format |
app_id | Your App’s ID |
tweets_consumed | Posts consumed that day |
project_cap | Your monthly Post limit |
Example request
Use cases
- Cost monitoring — Track consumption against your budget
- Alerting — Set up alerts when approaching limits
- Optimization — Identify high-consumption endpoints
- Reporting — Generate usage reports
Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- Your App’s Bearer Token
API Reference
Full endpoint documentation
Developer Console
View usage in the dashboard