Call it
curl https://api.peume.com/v1/call/x-post-comments-by-tweet-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"tweetId": "your tweetId",
"cursor": ""
}
}'const res = await fetch("https://api.peume.com/v1/call/x-post-comments-by-tweet-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"tweetId": "your tweetId",
"cursor": ""
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/x-post-comments-by-tweet-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"tweetId": "your tweetId",
"cursor": ""
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: x-post-comments-by-tweet-id.
Parameters
tweetIdRequiredstringThe unique identifier of the post.
cursorstringPagination cursor returned by the previous response.
Example:
Other ways to do it
Same job, other sources, cheapest first.
Replies to an postList the replies to one post, most relevant first, with author, text, time, likes, reposts and views.List a post's commentsBest sourceList a post's comments. Checks the cheapest source first and moves to the next one until it finds an answer.X / Twitter Post RepliesFetch the replies to any post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.newest post comments by tweet idTwitter: fetch latest post comments (web)post comments by tweet idTwitter: fetch post comments (web)
