Instagram Post Comments API
Top-level comments, newest first, about fifteen per page, each with its text, author, like count and date. Follow pagination.cursor for older comments. Set include_replies=true to also return any replies Instagram shipped inline with their parent. For the full reply thread under one comment, use /v1/instagram/comment-replies. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.
Try it
Prefilled with the request that produced the example below. No key yet? Get a free key.
Request
/v1/instagram/post-comments| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Post, reel or IGTV URL, or a bare shortcode |
| cursor | string | no | pagination.cursor from a previous response |
| count | number | no | Comments to ask for per page, 1-50. Default 24. Instagram serves at most about fifteen. |
| include_replies | boolean | no | Include replies that arrived inline with their parent comment |
Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).
curl "$API/v1/instagram/post-comments?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDehZj9wggt0%2F&cache_max_age=7d" \
-H "x-api-key: $KEY"const query = new URLSearchParams({
url: 'https://www.instagram.com/reel/DehZj9wggt0/',
cache_max_age: '7d',
});
const response = await fetch(`${API}/v1/instagram/post-comments?${query}`, {
headers: { 'x-api-key': KEY },
});
const body = await response.json();
if (!body.success) throw new Error(body.error.code);
// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);import os, httpx
r = httpx.get(
f"{os.environ['API']}/v1/instagram/post-comments",
params={
"url": "https://www.instagram.com/reel/DehZj9wggt0/",
"cache_max_age": "7d",
},
headers={"x-api-key": os.environ["KEY"]},
timeout=30,
)
body = r.json()
if not body["success"]:
raise RuntimeError(body["error"]["code"])
print(body["data"], body["meta"]["creditsCharged"])Example response
Captured on , with raw removed and lists cut to two items. A live call returns current data.
{
"success": true,
"data": {
"items": [
{
"platform": "instagram",
"id": "18467586424143350",
"postId": "DehZj9wggt0",
"parentId": null,
"text": "So curious😮😮",
"authorId": "example-user-1",
"authorHandle": "example_user_1",
"authorName": null,
"authorAvatarUrl": "https://example.com/media/1.jpg",
"likeCount": 0,
"replyCount": null,
"isPinned": null,
"isAuthorReply": false,
"publishedAt": "2026-10-20T19:26:11.000Z"
},
{
"platform": "instagram",
"id": "17955937938270287",
"postId": "DehZj9wggt0",
"parentId": null,
"text": "Ole 💃🏻❤️",
"authorId": "example-user-2",
"authorHandle": "example_user_2",
"authorName": null,
"authorAvatarUrl": "https://example.com/media/2.jpg",
"likeCount": 0,
"replyCount": null,
"isPinned": null,
"isAuthorReply": false,
"publishedAt": "2026-10-20T18:06:51.000Z"
}
]
},
"pagination": {
"cursor": "eyJhZnRlciI6IntcImlzX3NlcnZlcl9jdXJzb3JfaW52ZXJzZVwiOnRydWUsXCJzZXJ2ZXJfY3Vyc29yXCI6XCJBUUhUV0tkU3RvNVJNSGJfTG5sN3kxOXd0c3Y4dTBOdm1QWmJpTHpQakstaGpSUnNKdXZYei1aM3QyX0hqbG1kaFh4Vzhtdkx1MHFXT1B0Y0hsaUNRd2pCcndcIn0iLCJkb2MiOiIyNzY1OTI3OTU1Mzc3MjgyMSIsImhhbmRsZSI6Im5hdGdlbyJ9.qFh4fAmlytj8l2ibmgBrWw",
"hasMore": true,
"count": 15
},
"meta": {
"platform": "instagram",
"endpoint": "instagram.postComments",
"creditsCharged": 1,
"cached": false,
"cacheAgeSeconds": null,
"durationMs": 1617,
"requestId": "req_42mwpcob3npo3077ykhc"
}
}Returns
Returns a list of Comment in data.items.
Cost and behaviour
| Credits | 1 per live request, 0 on a cache hit |
| Cacheable | yes: cache_max_age accepts a cached copy |
| Batchable | yes: usable as a target in POST /v1/jobs/batch |
| Subscribable | yes: as often as every 3600 seconds, firing a webhook only on a change |
Other Instagram endpoints
- /v1/instagram/audio-reels Reels using a sound
- /v1/instagram/comment-replies Replies under one comment
- /v1/instagram/hashtag-posts Posts under a hashtag
- /v1/instagram/highlight Stories inside a highlight
- /v1/instagram/popular-search Top posts for a keyword
- /v1/instagram/post Post or reel details
- /v1/instagram/profile Profile details
- /v1/instagram/profile-post-count Post count for a profile