Call it
curl https://api.peume.com/v1/call/x-newest-post-comments-by-tweet-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"tweet_id": "1808168603721650364"
}
}'const res = await fetch("https://api.peume.com/v1/call/x-newest-post-comments-by-tweet-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"tweet_id": "1808168603721650364"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/x-newest-post-comments-by-tweet-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"tweet_id": "1808168603721650364"
}
},
)
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-newest-post-comments-by-tweet-id.
Parameters
tweet_idRequiredstringTweet ID
Example: 1808168603721650364
cursorstringCursor
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.post comments by tweet idTwitter: fetch post comments (web)post comments by tweet idRetrieves the latest comments for an post identified by tweet ID, with cursor pagination.
