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-actorQuery Parameters
status string
Filter for the run status. Only the most recent run with this status is used.
Example:SUCCEEDEDexclusiveStartKey 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"
}
}
Schema
data object required
items object[] required
- key string requiredExample:
second-key - size integer requiredExample:
36 - recordPublicUrl string<uri> required
A public link to access this record directly.
Example:https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/records/some-key?signature=abc123
- key string requiredExample:
- count integer requiredExample:
2 - limit integer requiredExample:
2 - exclusiveStartKey stringExample:
some-key - isTruncated boolean requiredExample:
true - nextExclusiveStartKey stringExample:
third-key
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: