Instagram API
Similar Accounts
Get Instagram accounts similar to a given user.
Pricing, live playground and use cases: Instagram Similar Accounts API on YepAPI
POST
$0.01/call/v1/instagram/user-similarUsage
const res = await fetch('https://api.yepapi.com/v1/instagram/user-similar', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ username: 'natgeo' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/instagram/user-similar \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "natgeo"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
username | string | Yes | Instagram username | — |
Response
{
"ok": true,
"data": {
"similar_accounts": [
{
"id": "1769476128",
"username": "ferrari",
"full_name": "Ferrari",
"profile_pic_url": "https://scontent.cdninstagram.com/...",
"is_verified": true,
"is_private": false
},
{
"id": "25025320",
"username": "instagram",
"full_name": "Instagram",
"profile_pic_url": "https://scontent.cdninstagram.com/...",
"is_verified": true,
"is_private": false
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.similar_accounts | object[] | Array of similar account objects |
data.similar_accounts[].id | string | Numeric Instagram user ID |
data.similar_accounts[].username | string | Instagram username |
data.similar_accounts[].full_name | string | User's display name |
data.similar_accounts[].profile_pic_url | string | Profile picture URL |
data.similar_accounts[].is_verified | boolean | Whether the user is verified |
data.similar_accounts[].is_private | boolean | Whether the account is private |
An account that does not exist returns 404 NOT_FOUND and is not billed. Some accounts have no related profiles; they return an empty similar_accounts list.