Reads a public web page or document within a single timeout deadline and returns clean markdown or structured json. usage.credits reports the price charged (1 credit per returned page).
Authorizations
AuthorizationstringheaderrequiredSend your API key in Authorization: Bearer <key>. Keys start with ck_ and are created at app.crawlapi.dev/keys.
x-api-keystringheaderAlternative header for your API key (ck_...).
Body
application/jsonSend a JSON object with url, optional format, and optional timeout.
Public http or https URL to read. Private addresses and embedded credentials return UNSAFE_URL.
Output format: markdown returns clean page text; json returns structured objects, tables, JSON-LD, and embedded state.
markdownjsonResponse headers
See Rate limits for RateLimit header parsing and 429 backoff, and Timeouts for deadline sizing.
| Header | Type | Description |
|---|---|---|
X-Request-Id | string | Unique request identifier (req_...). Quote this value to support. |
RateLimit-Policy | string | Account rate-limit policy sent on authenticated responses: "minute" sets q requests per minute (w=60), "concurrency" sets q in-flight requests at once. |
RateLimit | string | Remaining quota when the response leaves: "minute";r= requests that can start now and t= seconds until the next token refills (omitted when your full per-minute allowance is available); "concurrency";r= free in-flight slots. |
Retry-After | integer | Whole seconds to wait before retrying. |
Allow | string | HTTP methods accepted on this route. |
WWW-Authenticate | string | Authentication scheme expected for this endpoint. |
Success response
200 · application/jsonEvery success returns success: true, request_id, data (either markdown or json, never both), and usage. For all 12 normalized data.json.structured shapes, see Structured JSON.
Error response
4xx / 5xx · application/jsonEvery failure returns success: false, request_id, and error. See Errors and retries for retry helpers and every error code.
HTTP status codes
| Status | Codes | Meaning |
|---|---|---|
| 200 | Success | Page or document returned as markdown or json. |
| 400 | INVALID_REQUESTUNSAFE_URL | Malformed JSON, invalid or unknown request field (INVALID_REQUEST), or non-public or disallowed target URL (UNSAFE_URL). |
| 401 | UNAUTHORIZED | Missing, unknown, or revoked API key (UNAUTHORIZED). |
| 402 | INSUFFICIENT_CREDITS | Account credit balance cannot cover this request (INSUFFICIENT_CREDITS). |
| 403 | ACCOUNT_SUSPENDED | The API key's account is suspended (ACCOUNT_SUSPENDED). |
| 404 | ROUTE_NOT_FOUNDNOT_FOUND | Target page does not exist (NOT_FOUND), or request path is not /v1/scrape (ROUTE_NOT_FOUND). |
| 405 | METHOD_NOT_ALLOWED | HTTP method is not allowed on this route (METHOD_NOT_ALLOWED). |
| 408 | TIMEOUT | Request reached its timeout deadline before finishing (TIMEOUT). |
| 410 | GONE | Target site reports the page has been permanently removed (GONE). |
| 422 | HOST_NOT_FOUNDLOGIN_REQUIREDUNSUPPORTED_CONTENTSCANNED_PDFBLOCKEDNO_CONTENTTARGET_ERROR | Request was valid but the target could not produce usable content: BLOCKED, NO_CONTENT, HOST_NOT_FOUND, LOGIN_REQUIRED, UNSUPPORTED_CONTENT, SCANNED_PDF, or TARGET_ERROR. |
| 429 | RATE_LIMITED | Rate limit, concurrency limit, or temporary service load reached (RATE_LIMITED). |
| 500 | ENGINE_FAILEDINTERNAL | Service-side failure (ENGINE_FAILED or INTERNAL). Nothing was charged. |