Instagram data API

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
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"]}'

Response

200 OK · application/json
{
  "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

NameInDescription
usernamesrequired body Array of 1 to 25 usernames, @handles or profile URLs.

Response fields

FieldTypeDescription
total / succeeded / failedintegerBatch counts for the deduplicated handles.
items[].okbooleanWhether this profile lookup succeeded.
items[].profileobject | nullStandard Profile object when ok is true.
items[].errorobject | nullStable 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.