Instagram API
Post Likers
Get users who liked an Instagram post.
POST
$0.01/call/v1/instagram/post-likersUsage
const res = await fetch('https://api.yepapi.com/v1/instagram/post-likers', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ shortcode: 'C5xAbCdEfGh' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/instagram/post-likers \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"shortcode": "C5xAbCdEfGh"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
shortcode | string | Yes | Post shortcode from the Instagram URL | — |
end_cursor | string | No | Pagination cursor from previous response | — |
Response
{
"ok": true,
"data": {
"has_next_page": true,
"end_cursor": "QVFDcE...",
"likers": [
{
"id": "12345678901",
"username": "photo_fan",
"full_name": "Photo Fan",
"profile_pic_url": "https://scontent.cdninstagram.com/...",
"is_verified": false,
"is_private": false
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.has_next_page | boolean | Whether more likers are available |
data.end_cursor | string | Cursor for fetching the next page |
data.likers | object[] | Array of user objects who liked the post |
data.likers[].id | string | Unique user identifier |
data.likers[].username | string | Instagram username |
data.likers[].full_name | string | User's display name |
data.likers[].profile_pic_url | string | Profile picture URL |
data.likers[].is_verified | boolean | Whether the user is verified |
data.likers[].is_private | boolean | Whether the account is private |
Use the end_cursor value from the response to paginate through likers.