Skip to content

Start Worker

Method: POST

Endpoint: /api/v1/scraper/run

Send the request body with Content-Type: application/json.

{
"scraper_slug": "01KGYERXPXTABWXMGQKFCE43M2",
"version": "v1.0.1",
"input": {
"parameters": {
"system": {
"cpus": 0.125,
"memory": 512,
"execute_limit_time_seconds": 1800,
"max_total_charge": 0,
"max_total_traffic": 0
},
"custom": {
"startURLs": [
{
"url": "https://www.amazon.com/sp?ie=UTF8&seller=ADZ7LD48GVFQJ&asin=B07H56J7K1&ref_=dp_merchant_link&isAmazonFulfilled=1"
},
{
"url": "https://www.amazon.com/sp?ie=UTF8&seller=A3AZYNALJBV2WE&asin=B099S46ZRQ&ref_=dp_merchant_link&isAmazonFulfilled=1"
}
],
"proxy_region": "BQ"
}
}
},
"callback_url": "https://your-domain.com/callback"
}
ParameterRequiredDescription
scraper_slugYesUnique Worker identifier
versionYesWorker version
inputYesInput parameters
callback_urlYesCallback URL for receiving run results
ParameterExampleTypeRequiredDescription
proxy_regionCHstringYesExecution node. See help
cpus0.125numberYesContainer CPU cores. See help
memory512numberYesContainer memory size in MB. See help
execute_limit_time_seconds1800numberYesContainer execution timeout in seconds
max_total_charge0numberYesMaximum charge in USD
max_total_traffic0numberYesMaximum traffic in MB

Fill in these values according to the parameter definition of the Worker you are running.

{
"code": 0,
"message": "success",
"data": {
"run_slug": "01KKDXV2G26BT7NH4ZQR2R4NPZ"
}
}
ParameterExampleTypeDescription
code0IntegerGlobal status code
messagesuccessStringResponse message
data-ObjectResponse payload
run_slug01KKDXV2G26BT7NH4ZQR2R4NPZStringUnique run identifier