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. Media URLs are in each post's media. 404 when the account does not exist, 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |