Products / Web Scraping API
Response Codes
HTTP status, cloud upload and session codes for the Web Scraping API.
API and page status
| Code | Meaning | What to do |
|---|---|---|
| 200 | Success | Check the result status. |
| 202 | Job accepted | Save the job ID and follow its status link. |
| 204 | Result not ready | Poll later. Don't parse an empty body. |
| 400 | Invalid parameter or request structure | Fix the named parameter. |
| 401 | Missing or invalid authentication | Check API credentials and the Basic header. |
| 403 | Access denied | Check account permissions. |
| 404 | Job missing or no longer kept | Check the ID and your stored result. |
| 422 | Unprocessable payload | Send a valid JSON object. |
| 429 | Rate limit reached | Slow down and use bounded backoff. |
| 500 / 524 | Service error or timeout | Retry after a delay. Keep job IDs. |
| 612 / 613 | Job failed, also after retries | Review the target and request. |
Cloud upload status
| Code | Meaning |
|---|---|
| 13000 | Upload succeeded |
| 13001 | Upload failed |
| 13102 | Path or bucket not found |
| 13103 | Access denied |
| 10001 | Unexpected processing error |
Session status
| Code | Meaning |
|---|---|
| 15001 | Session expired. A new session can use the same ID. |
| 15002 | Session creation failed |
| 15003 | Session update failed |
Retry with context
Retry temporary failures with backoff and a limit on attempts. Fix payloads and authentication first. A dropped client connection doesn't mean the job stopped: check its status before resubmitting.