Social Media
X Tweet Comments
List replies to a tweet, ranked (top) or chronological (latest). Returns a timeline of reply tweets with pagination cursors, as JSON. Costs 1 credit per request.
POST/api/v1/x/tweet/comments
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/jsontweet_idstringrequiredThe numeric tweet id whose replies you want.
Example: 1808168603721650364
rankstringtop (ranked) or latest (chronological). Defaults to top.
Example: top
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.x.tweet_comments(tweet_id="1808168603721650364")
print(results)Response
"next_cursor": "DAABCgABGY-lJH0AAAoAAgAA",
"prev_cursor": null,
"has_more": true
},
"response_time": 940,
"credits_used": 1,
"credits_remaining": 4818
}