Documentation Index
Fetch the complete documentation index at: https://docs.scrapegraphai.com/llms.txt
Use this file to discover all available pages before exploring further.
Error payload
Every error response is a JSON object with anerror field containing a typed error object:
| Field | Description |
|---|---|
type | Machine-readable error code (see table below). |
message | Human-readable summary. |
details | Optional array of field-level validation issues (present for type: "validation"). |
Authentication errors
401 — auth_missing_key
401 — auth_missing_key
SGAI-APIKEY header was not sent. Add it to every request.403 — auth_invalid_key
403 — auth_invalid_key
Validation errors (400)
Returned when the request body fails schema validation. Thedetails array names each offending field.
code values: invalid_format, invalid_type, too_small, too_big, invalid_value, custom.
Not found (404)
GET /api/history/:id, GET /api/crawl/:id, and GET /api/monitor/:cronId when the UUID does not correspond to a record on your account.
Quota and rate limit errors
402 — insufficient_credits
402 — insufficient_credits
GET /api/credits.429 — rate_limited
429 — rate_limited
Server errors (5xx)
Retry strategy
| Error | Retryable? | Recommended action |
|---|---|---|
validation (400) | No | Fix the request body. |
not_found (404) | No | Verify the ID is correct and belongs to this account. |
auth_missing_key / auth_invalid_key (401/403) | No | Fix the header or rotate the key. |
insufficient_credits (402) | No | Top up credits. |
rate_limited (429) | Yes | Exponential backoff, honor any Retry-After header. |
internal_error (5xx) | Yes | Exponential backoff; 3–5 attempts max. |