Get an X account's posts with media
get_x_user_mediaGet an X account's posts with media. Returns the profile's Media tab: the account's own posts that carry photos, videos, or GIFs, newest first, with the file links in each post's media (photos at full size). X's tab also lists posts whose only media is a link preview, such as a YouTube link; those are left out, as are posts without the asked-for type, so a page can hold fewer posts than limit while meta.nextCursor still leads on. 404 when the account does not exist, is suspended (then details.reason is suspended), or is protected: a protected account's posts and connections are visible only to accounts it approved. Billed per post returned. The first page also bills one profile lookup, to resolve {user}; later pages carry the account in the cursor and do not. Costs 1 credit + 2 credits per profile returned + 1 credit per post returned. When meta.nextCursor is set, call again with cursor set to it for the next page.
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": {
"user": "<user>"
},
"name": "get_x_user_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only posts with a file of this type, like the Photos and Videos tabs in X's apps. Leave it out for every post with media. | |
| user | Yes | X handle with or without @, a numeric user id, or an x.com profile URL. | |
| limit | No | Most posts to return. X may return fewer. | |
| cursor | No | Opaque cursor from the previous page's `meta.nextCursor`. Pass it back unchanged, with the same path and query parameters; a cursor from another request is rejected with 400. |