Instagram Details API
API health
- 24h health
- 71%
- 24h average time
- 14.71 s
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Look up an Instagram account by handle or profile URL and get display name, bio, follower, following and post counts, account type flags, external link and recent posts. Verified, business and professional flags do not prove identity, income or current commercial activity.
Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.
Please help me write a data collection script with the EveryInfra Instagram Details endpoint (instagram/profile).
Endpoint contract:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to instagram and action to profile, and put the parameters inside params.
- Required parameters:
- username: Identifies an Instagram account handle without the @ symbol or as a full profile URL. Used by profile, persona, user_posts, and reels to fetch account data.
- Returns one object. Main fields: username, display_name, bio, follower_count, following_count, post_count, is_private, is_verified, is_business, is_professional, category, external_url; 14 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=instagram.
- Example request body:
{
"platform": "instagram",
"action": "profile",
"params": {
"username": "nasa"
}
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | instagram | Platform identifier, fixed value. |
action | body | string | Yes | profile | Capability identifier, fixed value. |
username | body.params | Not declared | Yes | - | Identifies an Instagram account handle without the @ symbol or as a full profile URL. Used by profile, persona, user_posts, and reels to fetch account data. The followers action returns only total follower counts, whereas followers_list and following_list return account lists. |
Code samples
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "instagram",
"action": "profile",
"params": {
"username": "nasa"
}
}'[OpenAPI definition (JSON)]Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
Captured September 26, 2026 at 08:56 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed. id, billing and quota differ on every call, so only their shape is shown.
{
"id": "req_…",
"platform": "instagram",
"action": "profile",
"results": {
"username": "nasa",
"display_name": "NASA",
"bio": "Making the seemingly impossible, possible. ✨",
"follower_count": 104336090,
"following_count": 89,
"post_count": 4934,
"is_private": false,
"is_verified": true,
"is_business": false,
"is_professional": false,
"external_url": "https://www.nasa.gov",
"avatar_url": "https://scontent-mad1-1.cdninstagram.com/(已隐去)",
"recent_posts": [
{
"post_id": "DdHyaYAifb6",
"url": "https://www.instagram.com/p/DdHyaYAifb6",
"text": "Cementing their names in history.\n\nThe Artemis III crew is leaving their mark — literally. The astronauts recently signed their names on the hardware that will be inside their Orion spacecraft during their low Earth orbit mission, launching in 2027.\n\nImage descriptions:\n\n1. The A…",
"media_type": "image",
"like_count": 0,
"comment_count": 0,
"view_count": 0,
"author_username": "nasa",
"posted_at": "2026-09-10T00:00:00+00:00"
},
{
"post_id": "DdWyDLcGiqo",
"url": "https://www.instagram.com/p/DdWyDLcGiqo",
"text": "Southern Hemisphere Milky Way galaxy view from the @(已隐去) cupola. This 3s exposure series captured two of my favorite cupola views, the particularly dense Milky Way galaxy as seen from the Southern Hemisphere, and the bright, colorful lights of squid fishing boats (here, the brig…",
"media_type": "image",
"like_count": 0,
"comment_count": 0,
"view_count": 0,
"author_username": "(已隐去)",
"posted_at": "2026-09-16T00:00:00+00:00"
},
{
"post_id": "DdT_4GMka0z",
"url": "https://www.instagram.com/p/DdT_4GMka0z",
"text": "In a class of their own\n\nHidden within this star-forming nebula (captured by our Webb telescope in one of its largest images to date) are strange objects called brown dwarfs. Generally less massive than stars and more massive than planets, they are neither. They form the same way…",
"media_type": "image",
"like_count": 0,
"comment_count": 0,
"view_count": 0,
"author_username": "(已隐去)",
"posted_at": "2026-09-15T00:00:00+00:00"
}
]
},
"billing": {
"charged": …,
"charged_usd": …,
"balance_after_usd": …,
…
},
"quota": { … }
}Response fields
Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
username | Username (@handle). |
display_name | Display name; can differ from username. |
bio | Profile bio written by the account; may contain line breaks and emoji. |
follower_count | Followers. null means not disclosed, not 0. |
following_count | Accounts followed. null means not disclosed, not 0. |
post_count | Total posts. null means not disclosed, not 0. |
is_private | Keeps the platform's own meaning |
is_verified | Whether the platform verified the account. null means it cannot be determined. |
is_business | Keeps the platform's own meaning |
is_professional | Keeps the platform's own meaning |
category | Category name in the platform's own taxonomy, not normalized across platforms. |
external_url | Keeps the platform's own meaning |
avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
recent_posts | Keeps the platform's own meaning |
Errors and billing
- 401
- Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
- 422
- Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
- 402
- Insufficient balance. Top up first.
- 429
- The account's per-minute request limit was reached (all of its API keys count together; a key's own lower limit applies first). Wait for Retry-After and try again; a rate package in the console raises the limit.
- 503
- Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
- 200 empty
- The request completed without data and is not charged (billing.reason = empty_result_refunded).