twitter_user_media
Retrieve a user's posted images and videos, including photo, video, and animated GIF tweets with media URLs and dimensions. Paginate to browse full visual history.
Instructions
Get the images and videos a user has posted. Returns media-containing tweets with URLs to the media files, dimensions, and type (photo/video/animated_gif). Paginate with cursor. Use this to pull a user's visual content history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Max items to return for this page. Typical range 1 to 200; endpoint default (20) applies if omitted. To page through results, pass the cursor from the previous response. | |
| cursor | No | Opaque pagination cursor from a previous response's next_cursor field. Omit on the first call; pass on subsequent calls to fetch the next page. | |
| user_id | No | Numeric Twitter/X user id (e.g. "44196397"). Provide exactly one of username or user_id. | |
| username | No | Twitter/X handle WITHOUT the leading @ (e.g. "elonmusk", "openai"). Provide exactly one of username or user_id. |