Posts in which a public Instagram account is tagged, newest first, with the posting author, caption and engagement counts.
1 credit/ call
Never more than 35 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/instagram.tagged_posts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa","userId":"528817151"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"posts": [
{
"username": "<string | null>",
"displayName": "<string | null>",
"likes": "<integer | null>",
"hasAudio": "<boolean | null>", …
}
]
}
},
"credits": 1
}Input and output
4 fields
nasa.528817151.37 fields
Good to know
Tagged posts expose third parties. Pass through, do not retain beyond cache TTL.
One page per call. Send nextCursor back as cursor to read the next page.
Unknown handle? It comes back as not found, not as an error.
The same key and credits work for every API.