Instagram API
Similar Accounts
Get Instagram accounts similar to a given user.
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": [
{
"username": "discoverearth",
"full_name": "Discover Earth",
"profile_pic_url": "https://scontent.cdninstagram.com/...",
"is_verified": true,
"follower_count": 12500000
},
{
"username": "earthpix",
"full_name": "EarthPix",
"profile_pic_url": "https://scontent.cdninstagram.com/...",
"is_verified": true,
"follower_count": 8900000
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.similar_accounts | object[] | Array of similar account objects |
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[].follower_count | number | Number of followers |