Recent feed posts of a public Instagram account by handle (about 12 per page) with caption, likes, comments, views, media and cursor pagination.
1 credit/ call
Never more than 23 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/instagram.user_posts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa"}'{
"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
3 fields
nasa.36 fields
Good to know
`limit` trims a page and the rest of it stays reachable through nextCursor.
Unknown handle? It comes back as not found, not as an error.
The same key and credits work for every API.