task_id instantly – after the task is completed, you can retrieve the results from your request using said task_id.
Queue a Single Task
Single query or URL endpoint: https://scraper-api.decodo.com/v3/task
Make a POST request to this endpoint with your preferred parameters to receive the task_id for retrieval once the task is done, along with the parameters used.
Response Example:
Retrieve result using task_id
Single query or URL endpoint: https://scraper-api.decodo.com/v3/task/{task_id}/results
Make a GET request to this endpoint, replacing {task_id} with the ID received from the previous POST request to retrieve the result.
Results can be retrieved an unlimited number of times within 24 hours of the initial request
Get task status using task_id
Asynchronous task status can be checked manually:pending:
done:
faulted.
Queue Multiple Tasks
Batch query or URL endpoint: https://scraper-api.decodo.com/v3/task/batch
Make a POST request to this endpoint, providing multiple queries or URLs in JSON format.
Batch requests are limited to 1 request per second.
Receive task status to your callback_url
This will work with any async endpoint by entering the callback_url as one of the parameters
We will make a POST request to your provided URL with the task_id and parameters used once the task is done. You can use a website like this one to test receiving a response.
Example using a single task endpoint:
Example of a response you will receive:
id to retrieve the result of your task using this endpoint:
https://scraper-api.decodo.com/v3/task/{task_id}/results
GET request to:
https://scraper-api.decodo.com/v3/task/7039164056019693569/results
Authenticating Callbacks
To verify that a callback request is actually from Scraper API, include a note in thepassthrough parameter. The parameter passthrough along with its contents will be present in the payload sent back to your endpoint.
Support
Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.
You can also reach us anytime via email at support@decodo.com.
Feedback
Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.
Have feedback? Share your thoughts on how we can improve.