Skip to main content

Get key-value store keys for last run

GET 

/v2/acts/:actorId/runs/last/key-value-store/keys

Returns a list of keys from the default key-value store of the last Actor run. Redispatches to Get list of keys.

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
    exclusiveStartKey string

    All keys up to this one (including) are skipped from the result.

    limit number

    Maximum number of keys to return.

Status 200

Response Headers
    {
    "data": {
    "items": [
    {
    "key": "second-key",
    "size": 36,
    "recordPublicUrl": "https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/records/some-key?signature=abc123"
    }
    ],
    "count": 2,
    "limit": 2,
    "exclusiveStartKey": "some-key",
    "isTruncated": true,
    "nextExclusiveStartKey": "third-key"
    }
    }