Reels of a public Instagram account by handle or user id with plays, likes, comments and caption, with cursor pagination.
1 credit/ call
Never more than 36 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/instagram.user_reels" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa","userId":"528817151"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"reels": [
{
"username": "<string | null>",
"displayName": "<string | null>",
"likes": "<integer | null>",
"hasAudio": "<boolean | null>", …
}
]
}
},
"credits": 1
}Input and output
4 fields
nasa.528817151.36 fields
Good to know
Pass handle, userId or both.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.