x_post_counts_archive
Show post counts per minute, hour, or day for any X query over the full archive since 2006. Returns only counts and timestamps to check volume before a full-archive search.
Instructions
Return a volume histogram (post counts per time bucket) for an X (Twitter) v2 query over the complete archive back to 2006, at minute/hour/day granularity. The result carries only counts and ISO timestamps — never post text — so it is inherently safe to surface, and it is the cheap way to gauge volume before a full-archive search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the exact API JSON instead of the compact histogram. | |
| query | Yes | X (Twitter) v2 search query to count. | |
| end_time | No | Newest bucket timestamp (ISO-8601 UTC). | |
| page_token | No | Opaque pagination cursor returned as next_token by a previous call. | |
| start_time | No | Oldest bucket timestamp (ISO-8601 UTC). | |
| granularity | No | Histogram bucket size; defaults to hour. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| summary | No |