getPostCountsAll
Count posts matching a search query over time periods with minute, hour, or day granularity using X.com's full archive data.
Instructions
Get time-bucketed post counts for all posts (full archive - requires Academic Research or Enterprise access)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "getPostCountsAll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query string for counting posts | |
| start_time | No | Start time for the count period | |
| end_time | No | End time for the count period | |
| since_id | No | Only count posts after this ID | |
| until_id | No | Only count posts before this ID | |
| granularity | No | Time granularity for counts |