Social Media
X User Media
List a user's media tweets by handle — a paginated timeline of tweets that carry photos or videos, with direct media URLs and the resolved profile — as JSON. Costs 1 credit per request.
POST/api/v1/x/user/media
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonscreen_namestringrequiredAn X handle without the @.
Example: elonmusk
cursorstringPagination cursor from a previous response (next_cursor).
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.x.user_media(screen_name="elonmusk")
print(results)Response
"next_cursor": "DAABCgABGY-lJH0AAAoAAgAA",
"prev_cursor": null,
},
"response_time": 1080,
"credits_used": 1,
"credits_remaining": 4813
}