Call it
curl https://api.peume.com/v1/call/comments-of-an-instagram-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"post": "https://www.instagram.com/p/DcOX3hWFiey/",
"sort": "popular"
}
}'const res = await fetch("https://api.peume.com/v1/call/comments-of-an-instagram-post", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"post": "https://www.instagram.com/p/DcOX3hWFiey/",
"sort": "popular"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/comments-of-an-instagram-post",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"post": "https://www.instagram.com/p/DcOX3hWFiey/",
"sort": "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: comments-of-an-instagram-post.
Parameters
limitintegerat most 100; default 20
Example: 20
postRequiredstringthe post URL, the reel URL or the short code
Example: https://www.instagram.com/p/DcOX3hWFiey/
sortstringpopular (Instagram's order) or recent; default popular
Example: popular
Other ways to do it
Same job, other sources, cheapest first.
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 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.
