API · X
GET /x/users/{username}/tweets/next
The next page of an X account’s posts, from a next_token (beta).
| |
|---|
| Request | GET /v1/x/users/{username}/tweets/next |
| Operation id | x.user.tweets_next |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The next page of an X account’s posts, from a next_token (beta).
| Name | Type | Required | Description |
|---|
username | string | yes | Handle, with or without the @, or a profile URL. Example: NASA. |
| Name | Type | Required | Description |
|---|
after | string | yes | Cursor: the previous page's meta.next_token (x_user_tweets or this endpoint). |
since | string | no | Only posts on or after this time. Reaching an older post ends the walk: YYYY-MM-DD (UTC) or an ISO 8601 timestamp. Example: 2026-11-01. |
until | string | no | Only posts on or before this time (a date includes that whole UTC day): YYYY-MM-DD (UTC) or an ISO 8601 timestamp. Example: 2026-11-01. |
stop_at_id | string | no | The newest post you already hold (id or URL): the page stops just before it and there is no next page. |
| Status | Meaning | Schema |
|---|
200 | The next page of posts. | XTimelineResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The post or account does not exist, was deleted, or is suspended. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | X is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
data | XTweet[] | |
includes | XIncludes | Objects the response refers to by id, each once: authors, quoted and reposted posts, media, polls. |
meta | XTimelineMeta | |
Errors use one shape everywhere; see Errors for every code and what to do.