Instagram Batch Profile Lookup API
Send up to 25 Instagram usernames, @handles or profile URLs in one POST /v1/profiles/batch request and get structured profile results back concurrently. Failures are isolated per item and you are only charged for profiles that succeed.
Request
POST /v1/profiles/batch ·
1 per profile credits per successful call
curl -X POST "https://api.igramapi.com/v1/profiles/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"usernames":["example_creator","missing_user"]}' import requests
response = requests.post(
"https://api.igramapi.com/v1/profiles/batch",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"usernames":["example_creator","missing_user"]},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/profiles/batch", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({"usernames":["example_creator","missing_user"]}),
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/profiles/batch");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => '{"usernames":["example_creator","missing_user"]}',
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"total": 2,
"succeeded": 1,
"failed": 1,
"items": [
{
"username": "example_creator",
"ok": true,
"profile": {
"user_id": "1234567890",
"username": "example_creator",
"full_name": "Example Creator",
"followers": 148200,
"following": 412,
"posts_count": 640,
"is_verified": true,
"data_level": "public"
},
"cached": false,
"error": null
},
{
"username": "missing_user",
"ok": false,
"profile": null,
"cached": false,
"error": {
"code": "profile_not_found",
"message": "User @missing_user was not found on Instagram."
}
}
]
} All values above are made-up examples. Media links are temporary Instagram CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
usernamesrequired | body | Array of 1 to 25 usernames, @handles or profile URLs. |
Response fields
| Field | Type | Description |
|---|---|---|
total / succeeded / failed | integer | Batch counts for the deduplicated handles. |
items[].ok | boolean | Whether this profile lookup succeeded. |
items[].profile | object | null | Standard Profile object when ok is true. |
items[].error | object | null | Stable code and message when ok is false. |
Up to 25 profiles per call
Deduplicates handles automatically and resolves them concurrently.
Per-item error isolation
One missing or private account never fails the rest of your batch.
Pay for successes only
Credits for failed items in a batch are refunded automatically.
Built for creator lists and CRM enrichment
Instead of looping 25 sequential HTTP requests from your server, send one batch call to /v1/profiles/batch and receive uniform ok, profile and error entries in the same order.
Frequently asked questions
How are credits calculated for a batch?
The call reserves 1 credit per unique username upfront, then refunds credits for any failed lookups so you only pay for successful profiles.
Are duplicate usernames charged twice?
No. Duplicate handles in the same request are deduplicated before lookup.
Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.
Try the Batch Profiles API free
Create a key and make your first request in minutes. 100 free credits every month.