Results and Polling
When a task cannot be completed instantly, the API returns a taskId (HTTP 201). Poll the result
endpoint with that taskId until the data is ready (HTTP 200).
HTTP Status Codes
| Code | Meaning | Action |
|---|---|---|
| 200 | Success | Use the response body data directly. |
| 201 | Task in progress | Poll /result/{taskId} (recommended interval: 1-5 seconds). |
| 400 | Invalid parameters | Please check if the task parameters are valid. |
| 429 | Rate limit exceeded | Reduce request frequency or contact support for quota adjustment. |
| 500 | Internal server error | Retry after 1 minute; contact support if persistent. |
Polling for Results
Call the result endpoint with your taskId until it returns HTTP 200.
curl --location --request GET 'https://api.scrapeless.com/api/v1/scraper/result/30681c8b-bfd3-48eb-a7c9-006e40b00591' \
--header 'x-api-token: YOUR_API_KEY' \
--header 'Content-Type: application/json'
Notes
- Polling Recommendations
- Interval: 1-5 seconds.
- Timeout: Set a maximum retry limit (e.g., 10 attempts).
- Debugging Tips
- Test with simple URLs first.