Error reference
All OrbitScraper APIs return consistent JSON error envelopes when requests cannot be fulfilled. Follow the guidelines below to safely handle network interruptions and client errors.
Standard Error Format
Errors always include an actionable code, human-readable message, and diagnostic details.
{
"error": {
"code": "rate_limit_exceeded",
"message": "Maximum concurrent queries reached for your current plan tier.",
"details": {
"request_id": "req_8f10b230",
"limit": 10,
"active_jobs": 10,
"retry_after_seconds": 2
}
}
}Application Error Codes
| Error Code | Meaning | Recommended Action |
|---|---|---|
400 | feature_unavailable: Requested search features are temporarily unavailable. Bad request or invalid parameter. | Validate field names, types, and allowed enum values before retrying. |
401 | Missing or invalid x-api-key. | Send a valid x-api-key header and confirm the key is active. |
402 | insufficient_credits: Insufficient credits. | Top up credits or reduce request volume before retrying. |
404 | Job not found for the current tenant or API family. | Check the job id, API family, and tenant context before polling again. |
429 | rate_limit_exceeded: Rate limit exceeded; concurrency_limit_exceeded: concurrent request limit exceeded. | Back off, spread requests over time, or use a plan with higher limits. |
500 | Internal server error. | Safe to retry with backoff. |
503 | upstream_busy: Upstream capacity temporarily unavailable. | Retry after a short backoff. This usually indicates a temporary enqueue issue. |
HTTP Status Codes
Missing query parameter 'q', invalid engine, or malformed JSON payload.
Missing or invalid 'x-api-key' header. Ensure your key is active in the dashboard.
Insufficient workspace credits. Upgrade plan or recharge credits to continue.
Endpoint or required API-key scope is unavailable.
The specified jobId was not found or was submitted under a different account.
Concurrent state conflict or duplicate job creation attempt.
Concurrency limit reached or excessive rapid polling. Back off and retry.
Internal pipeline error. Recover using GET /v1/search/operations/:requestId.
Upstream engine provider failed to respond. Do not resubmit POST; poll status.
Request acknowledgement timed out. The job may still commit and run safely.
Network Interruption Recovery Best Practices
When submitting scraping jobs over unreliable networks, a connection reset or HTTP 504 timeout does not mean the job failed to queue. The worker may have committed the job and begun execution.
- Never blindly retry POST requests: Retrying a failed POST without idempotency keys risks consuming additional credits.
- Use Idempotency-Key headers: Supply a unique UUID in the
Idempotency-Keyheader with every POST. If retried, the API returns the existing job instead of creating a second one. - Recover by stable operation ID: Query
GET /v1/search/operations/:requestIdto safely locate and recover the durablejob_id.