Instagram API
User Profile
Get profile information for an Instagram user.
POST
$0.01/call/v1/instagram/userUsage
const res = await fetch('https://api.yepapi.com/v1/instagram/user', {
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 \
-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": {
"id": "787132",
"username": "natgeo",
"full_name": "National Geographic",
"biography": "Experience the world through the eyes of National Geographic photographers.",
"profile_pic_url": "https://scontent.cdninstagram.com/...",
"profile_pic_url_hd": "https://scontent.cdninstagram.com/...",
"follower_count": 284000000,
"following_count": 156,
"media_count": 28500,
"is_verified": true,
"is_private": false,
"is_business_account": true,
"category": "Media/News Company",
"external_url": "https://www.nationalgeographic.com"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.id | string | Unique Instagram user ID |
data.username | string | Instagram username |
data.full_name | string | User's display name |
data.biography | string | User bio text |
data.profile_pic_url | string | Standard profile picture URL |
data.profile_pic_url_hd | string | High-resolution profile picture URL |
data.follower_count | number | Number of followers |
data.following_count | number | Number of accounts followed |
data.media_count | number | Total number of posts |
data.is_verified | boolean | Whether the user is verified |
data.is_private | boolean | Whether the account is private |
data.is_business_account | boolean | Whether this is a business account |
data.category | string | Business category (if applicable) |
data.external_url | string | Link in bio URL |