Call it
curl https://api.peume.com/v1/call/instagram-post-comments-by-shortcode-or-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"code_or_url": "DRhvwVLAHAG",
"sort_by": "recent"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-comments-by-shortcode-or-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"code_or_url": "DRhvwVLAHAG",
"sort_by": "recent"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-comments-by-shortcode-or-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"code_or_url": "DRhvwVLAHAG",
"sort_by": "recent"
}
},
)
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: instagram-post-comments-by-shortcode-or-url.
Parameters
code_or_urlRequiredstringPost shortcode or URL
Example: DRhvwVLAHAG
sort_bystringSort by: recent or popular
Example: recent
pagination_tokenstringPagination token
Other ways to do it
Same job, other sources, cheapest first.
Comments of an Instagram postList the top-level comments of one Instagram post or reel with author, text, likes, reply count and time.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.Instagram Post CommentsList the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).Instagram post or reel comments by URLRetrieves comments on a public Instagram post or reel.Instagram post comments by shortcodeInstagram: get post comments (v3)Instagram post comments by shortcodeRetrieves top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting.
