Post Comment List
Retrieves top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting. Use it to review audience feedback or analyze discussion around a known post.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
code |
Required | string | The unique shortcode for the Instagram post. | C0AZ5Tjsr1v |
— |
min_id |
Optional | string | Pagination cursor returned as next_min_id from the previous response. | — | — |
sort_order |
Optional | string | Sort order for the comments. Available Values: - `popular`: Popular - `newest`: Newest | newest |
popularnewest |
Code samples
curl -G "https://api.mofa-ai.com/v1/instagram/get_post_comments_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'code=C0AZ5Tjsr1v' \
--data-urlencode 'sort_order=newest'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/instagram/get_post_comments_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"code": "C0AZ5Tjsr1v",
"sort_order": "newest",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/instagram/get_post_comments_v1");
url.search = new URLSearchParams({
code: "C0AZ5Tjsr1v",
sort_order: "newest",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
Example response
Captured 2026-11-08, took 1555 ms · Request parameters {"code": "C0AZ5Tjsr1v", "sort_order": "newest"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "instagram.get_post_comments_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"_rid": "1247d115b5ddc",
"status": "ok"
},
"message": null,
"requestId": "9e1654a6ff00499e971b8835b00390e6",
"recordTime": "2026-11-08T08:00:05.280338239",
"requestParams": {
"body": null,
"query": {
"code": "C0AZ5Tjsr1v",
"sortOrder": "newest"
}
}
}
}