Skip to main content

Get request from queue for last run

GET 

/v2/actor-tasks/:actorTaskId/runs/last/request-queue/requests/:requestId

Returns a request from the default request queue of the last actor task run. Redispatches to Get request.

Using the status query parameter you can ensure to only get a run with a certain status (e.g. status=SUCCEEDED). Only the most recent run with that status is used.

Request

Path Parameters

    actorTaskId string required

    Task ID or a tilde-separated owner's username and Actor task name.


    Example: janedoe~my-task
    requestId string required

    Request ID.


    Example: xpsmkDlspokDSmklS

Query Parameters

    status string

    Filter for the run status. Only the most recent run with this status is used.


    Example: SUCCEEDED

Status 200

Response Headers
    {
    "data": {
    "id": "dnjkDMKLmdlkmlkmld",
    "uniqueKey": "GET|60d83e70|e3b0c442|https://apify.com/career",
    "url": "https://apify.com/career",
    "method": "GET",
    "retryCount": 0,
    "loadedUrl": "https://apify.com/jobs",
    "payload": "Unknown Type: object,null",
    "headers": "Unknown Type: object,null",
    "userData": {
    "label": "DETAIL",
    "image": "https://picserver1.eu"
    },
    "noRetry": false,
    "errorMessages": "Unknown Type: array,null",
    "handledAt": "2019-06-16T10:23:31.607Z"
    }
    }