Comments on a public Instagram post or reel by URL, one page per call, with text, author, likes and reply counts.
1 credit/ call
Never more than 44 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/instagram.post_comments" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.instagram.com/p/DLNsnpUTdVS/"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"comments": [
{
"likes": "<integer | null>",
"replies": "<integer | null>",
"verified": "<boolean | null>",
"text": "<string>", …
}
]
}
},
"credits": 1
}Input and output
3 fields
https://www.instagram.com/p/DLNsnpUTdVS/.9 fields
Good to know
Flat price per page.
`limit` trims a page and the cursor then resumes inside it. So nothing is skipped.
Comment authors and texts are personal data. Pass through, do not retain.
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.