x_usage_get
Check X API read-usage against your monthly cap, with optional daily breakdowns and a local session credit estimate, to avoid exceeding limits before high-volume reads.
Instructions
X (Twitter): report the post-read consumption of the current billing cycle against the monthly project cap (with an optional per-day and per-app breakdown), alongside the local credit-spend estimate for this session. The platform numbers are READ COUNTS, not money — X publishes no spend API — and the session estimate is a local, advisory figure that resets when the server restarts. Use it to check headroom before a high-volume read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the exact API JSON instead of the compact report. | |
| days | No | Days of daily breakdown to return (1-90; the API defaults to 7). Out-of-range values are clamped into the window. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| summary | No |