Get Public Account Media Posts

View all X (Twitter) Public Data API endpoints →

Supply required screenname for an account's media posts. Optional rest_id and cursor are available; the rest_id selection behavior has not been independently verified, so keep required screenname and validate any ID-based use. The observed response has status=ok, timeline, user and next_cursor. Entries include tweet_id, text, created_at, favorites, retweets, replies, quotes, bookmarks, views, author and nonempty media; observed photos expose media.photo items with media_url_https and id. Media and author details may vary by post. Follow returned cursors only for the same account, retain source post IDs and treat media links as available references rather than permission to republish. This is neither private-media access nor a guaranteed complete media library.

API Features

Media-bearing account timeline The verified response contains account posts with nonempty media alongside a user object and status.
Photo-reference extraction Observed media.photo items expose media_url_https and media IDs for linking available images back to their posts.
Media-to-post attribution tweet_id, created_at and author.rest_id support a source index rather than an unlabeled collection of image URLs.
Media-index continuation Use the returned next_cursor to request further available media pages while keeping the same account selection.

Live API Demo

GET /api/project/twitter/users-media

API Response (JSON)

{}
curl -X GET 'https://api.opendata-api.com/api/project/twitter/users-media?key=<API_KEY>&screenname=NASA'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Frequently asked questions

Where are public photo URLs in an account media response?

The verified timeline includes media.photo items with media_url_https and id. Retain each source tweet_id, timestamp and author context. Media structures vary by post, so do not assume every record has the same attachments.

Can I collect the account's entire media library and reuse its images?

No complete-library or redistribution right is promised. Supply required screenname and continue available pages with next_cursor; optional rest_id selection needs independent validation. Returned links are references to public content, not permission to republish.

Related operations

Guides

View Subscription Plans →