Social Media
X User Tweets
List a user's tweets by handle — the pinned tweet, a paginated timeline of tweets with engagement counts and media, and the resolved profile — as JSON. Costs 1 credit per request.
POST/api/v1/x/user/tweets
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_tweets(screen_name="elonmusk")
print(results)Response
"next_cursor": "DAABCgABGY-lJH0AAAoAAgAA",
"prev_cursor": null,
},
"response_time": 1020,
"credits_used": 1,
"credits_remaining": 4815
}