Skip to main content

Get queue head for last run

GET 

/v2/acts/:actorId/runs/last/request-queue/head

Returns the first requests from the default request queue of the last Actor run. Redispatches to Get head.

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

    actorId string required

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


    Example: janedoe~my-actor

Query Parameters

    status string

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


    Example: SUCCEEDED
    limit number

    Maximum number of requests to return.


    Example: 100
    clientKey string

    A unique identifier of the client accessing the request queue.

Status 200

Response Headers
    {
    "data": {
    "limit": 1000,
    "queueModifiedAt": "2018-03-14T23:00:00.000Z",
    "hadMultipleClients": false,
    "items": [
    {
    "id": "8OamqXBCpPHxyH9",
    "uniqueKey": "GET|60d83e70|e3b0c442|https://apify.com",
    "url": "https://apify.com",
    "method": "GET",
    "retryCount": 0
    }
    ]
    }
    }