Older posts of an X account (beta)
x_user_tweets_nextThe next page of an X account’s posts, from a next_token (beta).
The page after a previous x_user_tweets or x_user_tweets_next page: pass the same username and that page’s meta.next_token as after. Tokens last an hour. Beta: X changes this path more often than the others, so a page can occasionally fail (never charged).
Cost: 2 credits per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.
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": {
"username": "<username>",
"after": "<after>"
},
"name": "x_user_tweets_next"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | Cursor: the previous page's `meta.next_token` (x_user_tweets or this endpoint). | |
| since | No | Only posts on or after this time. Reaching an older post ends the walk: YYYY-MM-DD (UTC) or an ISO 8601 timestamp. | |
| until | No | Only posts on or before this time (a date includes that whole UTC day): YYYY-MM-DD (UTC) or an ISO 8601 timestamp. | |
| username | Yes | Handle, with or without the @, or a profile URL. | |
| stop_at_id | No | The newest post you already hold (id or URL): the page stops just before it and there is no next page. |