Twitter Replies API
The replies to a post, ranked by relevance, recency or likes, each with its author, text and counts.
https://api.endpointry.com/v1/twitter/tweet/repliesReplies · showing 1 of 1
Happy Thanksgiving from the @Space_Station!
https://x.com/NASA/status/2124940993489162256
Likes 4,832Retweets 606Replies 171
Checking live calls…
What you get
Returns the replies to a post in the order X ranks them (sort: relevance, recent or likes), each in the post shape.
- Text — The full text, long posts included, with shortened links expanded and the links to attached media removed
- Lang — The language X detected
- Views — Null where X shows no view count
- Conversation ID — The id of the post that started the thread
- URLs — Links in the text, expanded
- Sensitive — Whether X marks the media as possibly sensitive
- Quoted tweet — The post this one quotes; null when it quotes nothing or the quoted post is gone
- Retweeted tweet — For a repost, the original post in full; its counts are the original’s
Use cases
What teams build with it
- Sentiment analysis on reactions to an announcement
- Customer feedback mining from replies to brand posts
- Community moderation and reply monitoring
- Collecting conversations for research datasets
FAQ
Frequently asked questions
Can I choose the order?
Yes. sort=relevance (default), recent or likes, the same rankings X offers.
Are nested replies included?
Replies to replies come with the thread they belong to. Every reply carries in_reply_to, so you can rebuild the tree.
How many replies can I get?
Page with meta.pagination.next_cursor until it is null. How deep a conversation goes is up to X, which keeps some replies behind its own filters.
More from the Twitter (X) API
Try it on the free plan
One key covers the whole catalog, this endpoint included, starting on the free plan with no card.