Latest posts of an X account
x_user_tweetsThe latest posts of an X account, newest first (about 20).
An account’s latest posts and reposts, newest first, about 20, with meta.next_token for x_user_tweets_next (beta, 2 credits a page). For some accounts X shows logged-out visitors only their latest few original posts; then meta.view is "recent_originals" and there is no next page. The pinned post is not in the list (see x_user_get). Protected accounts answer target_private.
Cost: 1 credit 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>"
},
"name": "x_user_tweets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |