Skip to main content

Get key-value store for last run

GET 

/v2/actor-tasks/:actorTaskId/runs/last/key-value-store

Returns the default key-value store of the last actor task run. Redispatches to Get store.

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

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": "WkzbQMuFYuamGv3YF",
    "name": "d7b9MDYsbtX5L7XAj",
    "userId": "BPWDBd7Z9c746JAnF",
    "username": "janedoe",
    "createdAt": "2019-12-12T07:34:14.202Z",
    "modifiedAt": "2019-12-13T08:36:13.202Z",
    "accessedAt": "2019-12-14T08:36:13.202Z",
    "actId": null,
    "actRunId": null,
    "consoleUrl": "https://console.apify.com/storage/key-value-stores/27TmTznX9YPeAYhkC",
    "keysPublicUrl": "https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/keys?signature=abc123",
    "urlSigningSecretKey": "string",
    "generalAccess": "RESTRICTED",
    "stats": {
    "readCount": 9,
    "writeCount": 3,
    "deleteCount": 6,
    "listCount": 2,
    "s3StorageBytes": 18
    }
    }
    }