If you are using the Python SDK, task polling is handled automatically for you behind the scenes. However, if you are integrating via the REST API directly, you need to make aDocumentation Index
Fetch the complete documentation index at: https://docs.scrapely.io/llms.txt
Use this file to discover all available pages before exploring further.
GET request to retrieve the final result of your task.
The Polling Flow
- Create a task via
POST /v2/tasks/create. - The API will respond immediately with a
task_idand astatusof"processing". - Poll the
GET /v2/tasks/{task_id}endpoint every 1-3 seconds. - When the
statuschanges to"completed", theresultobject will be available.
Endpoint
GET https://api.scrapely.io/v2/tasks/{task_id}
Authentication
You must provide your API key via theX-API-Key header or as a query parameter (?api_key=YOUR_API_KEY).
Response States
Thestatus field can be one of three values: processing, completed, or failed.
1. Processing
2. Completed
When completed, theresult object will be populated with the specific data you requested (HTML, screenshot, CAPTCHA token, etc.), and a completed_at timestamp will be added.

