Get task
GET/v2/actor-tasks/:actorTaskId
Get an object that contains all the details about a task.
Request
Path Parameters
actorTaskId string required
Task ID or a tilde-separated owner's username and task's name.
Example:janedoe~my-taskStatus 200
Response Headers
{
"data": {
"id": "zdc3Pyhyz3m8vjDeM",
"userId": "wRsJZtadYvn4mBZmm",
"actId": "asADASadYvn4mBZmm",
"name": "my-task",
"username": "janedoe",
"createdAt": "2018-10-26T07:23:14.855Z",
"modifiedAt": "2018-10-26T13:30:49.578Z",
"removedAt": null,
"stats": {
"totalRuns": 15
},
"options": {
"build": "latest",
"timeoutSecs": 300,
"memoryMbytes": 128
},
"input": {
"hello": "world"
}
}
}
Schema
data object required
- id string requiredExample:
zdc3Pyhyz3m8vjDeM - userId string requiredExample:
wRsJZtadYvn4mBZmm - actId string requiredExample:
asADASadYvn4mBZmm - name string requiredExample:
my-task - username string | null nullableExample:
janedoe - createdAt string<date-time> requiredExample:
2018-10-26T07:23:14.855Z - modifiedAt string<date-time> requiredExample:
2018-10-26T13:30:49.578Z - removedAt string,null<date-time> nullable
stats object
- anyOf
- TaskStats
- null
- totalRuns integerExample:
15
options object
- anyOf
- TaskOptions
- null
- build string | null nullableExample:
latest - timeoutSecs integer | null nullableExample:
300 - memoryMbytes integer | null nullableExample:
128 - restartOnError boolean | null nullableExample:
false
input object
- anyOf
- TaskInput
- null
- object
The input configuration for the Actor task. This is a user-defined JSON object that will be passed to the Actor when the task is run.
Example:{"startUrls":[{"url":"https://example.com"}],"maxRequestsPerCrawl":100}
- standbyUrl string,null<uri> nullable
- id string requiredExample:
Status 400
Bad request - invalid input parameters or request body.
{
"error": {
"type": "invalid-input",
"message": "Invalid input: The request body contains invalid data."
}
}
Schema
error object required
- type string requiredExample:
run-failed - message string requiredExample:
Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)
- type string requiredExample: