Skip to Content

Documentation

Errors

Read the error envelope, decide what to do for each status, and look up every code.

Every error has the same shape and a stable code. No error costs credits.

Error Envelope

A refused call answers this body, with the HTTP status that matches its code.

{
  "error": "No Instagram account matches this handle.",
  "code": "NOT_FOUND"
}

Prop

Type

A code never changes its meaning, but new codes can appear, so handle an unknown one by its status.

Error Codes

Each code always comes with the same status.

CodeStatusMeaning
INVALID_REQUEST400A parameter is missing or wrong
UNAUTHENTICATED401The key is missing, revoked or expired
INSUFFICIENT_CREDITS402The balance does not cover the call
KEY_CREDIT_LIMIT_REACHED402The key spent its monthly limit
PRIVATE403The account or the list is private
NOT_FOUND404No such account, post or thing
CONFLICT409The Idempotency-Key is in use
SUSPENDED410The account exists, but is suspended
RATE_LIMITED429Too many requests
INTERNAL_ERROR500An error on our side
UPSTREAM_UNAVAILABLE502The platform did not answer
ENDPOINT_UNAVAILABLE503The endpoint is paused

What to Do

The status tells you whether to fix the request, wait, or retry.

StatusDo
400Fix the parameter named in param
401Send a valid key
402Buy credits, or raise the key's limit
403, 404, 410Do not retry. The answer will be the same
409Use a new key, or wait for Retry-After
429Wait for Retry-After
500, 502, 503Try again shortly

Retries

Retry with a growing pause, such as 1, 2, then 4 seconds, and wait at least Retry-After when it is sent. Failed calls are free, so retrying costs nothing until one succeeds.

A request that timed out may still have run. Send it with an Idempotency-Key, so a retry never pays twice.

Request Ids

Every response has an X-Request-Id, such as req_01m87tg3trs1ppxbs3h0ys092. Log it, and send it to support with a question.

The SDKs raise every error as a SocialAPIError. See SDKs.