Call it
curl https://api.peume.com/v1/call/instagram-post-comments-by-shortcode-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"code": "DUajw4YkorV",
"sort_order": "popular"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-comments-by-shortcode-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"code": "DUajw4YkorV",
"sort_order": "popular"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-comments-by-shortcode-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"code": "DUajw4YkorV",
"sort_order": "popular"
}
},
)
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-2.
Parameters
codeRequiredstringPost shortcode (e.g., DUajw4YkorV)
Example: DUajw4YkorV
min_idstringPagination cursor, omit for first request, get from previous response next_min_id
sort_orderstring排序方式/Sort order. 可选值/Options: popular(热门), newest(最新). Example: popular
popular · newest
Example: popular
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 shortcode or URLInstagram: fetch post comments (v2)Instagram post comments by shortcodeRetrieves top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting.
