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
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/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'
Query Result
Use Cases
- Create a source-linked index of an institution's observed public images with publication times and tweet IDs.
- Compare visual-post frequency across captured account windows without claiming an exhaustive media archive.
- Prepare an editorial image-reference shortlist for a campaign, retaining attribution and checking reuse rights separately.
- Join returned media posts to their engagement counters to study observed visual-content response patterns.
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.