x_post_counts_recent
Generate a post-count volume histogram for an X (Twitter) query over the last 7 days, with minute/hour/day buckets. Returns only counts and timestamps, never post text, so it is safe to display.
Instructions
Return a volume histogram (post counts per time bucket) for an X (Twitter) v2 query over the last 7 days, at minute/hour/day granularity. The result carries only counts and ISO timestamps — never post text — so it is inherently safe to surface.
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 |