TwitterAPIs Docs
API ReferenceUser Reads

User Media

Fetch the media tweets posted by a user, cursor-paginated. Returns the tweet objects that contain attached photos or video, with media URLs included. Cost: $0.0008 per call.

GET
/user/media

Authorization

bearerAuth
AuthorizationBearer <token>

Pass your API key as a bearer token on every request: Authorization: Bearer <API_KEY>.

In: header

Query Parameters

username*string

Handle without the leading @.

cursor?string

Pagination cursor from a previous response.

Response Body

application/json

curl -X GET "https://example.com/user/media?username=nasa"
{  "tweets": [    {      "id": "1759987654321000111",      "text": "A new image of the Pillars of Creation.",      "media": [        {          "type": "photo",          "url": "https://pbs.twimg.com/media/....jpg"        }      ],      "author": {        "id": "11348282",        "username": "nasa"      }    }  ],  "has_next_page": true,  "next_cursor": "DAABCgABF...",  "status": "success"}