Start an Actor run; the body is the Actor's input at the top level.
POST/actors/{actorId}/runs
- Active: contacts the target
Returns immediately with the run object. The input fields depend on the Actor, so none are listed. Responds 201, or 202 when queued.
Path parameters
actorIdActor ID or username~actor-name
Query parameters
memoryMemory allocation for the run
timeoutMaximum run duration
maxItemsCap on dataset items produced
maxTotalChargeUsdSpending cap for the run
waitForFinishBlock up to 60 seconds before returning
Response fields · 6ShowHide
id
Run ID
actId
Actor ID
status
Run status, for example READY
defaultDatasetId
Dataset holding the results
defaultKeyValueStoreId
Default key-value store
defaultRequestQueueId
Default request queue
curl -X POST 'https://api.scrape.ly/v2/actors/your-user~your-actor/runs' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"data": {
"id": "runExample0001",
"actId": "actorExample001",
"status": "READY",
"defaultDatasetId": "datasetExample01",
"defaultKeyValueStoreId": "kvsExample00001",
"defaultRequestQueueId": "queueExample0001"
}
}