Get list of key-value stores
GET/v2/key-value-stores
Gets the list of key-value stores owned by the user.
The response is a list of objects, where each objects contains a basic information about a single key-value store.
The endpoint supports pagination using the limit and offset parameters
and it will not return more than 1000 array elements.
By default, the records are sorted by the createdAt field in ascending
order, therefore you can use pagination to incrementally fetch all key-value stores
while new ones are still being created. To sort the records in descending order, use
the desc=1 parameter.
Request
Query Parameters
ownedByMe: Return only key-value stores owned by the user.sharedWithMe: Return only key-value stores shared with the user by other users.
Number of records that should be skipped at the start. The default value
is 0.
10Maximum number of records to return. The default value as well as the
maximum is 1000.
99If true or 1 then the objects are sorted by the startedAt field in
descending order. By default, they are sorted in ascending order.
trueIf true or 1 then all the stores are returned. By default, only
named key-value stores are returned.
truePossible values: [ownedByMe, sharedWithMe]
Filter by ownership. If this parameter is omitted, all accessible key-value stores are returned.
ownedByMeStatus 200
Response Headers
{
"data": {
"items": [
{
"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
},
{
"id": "YiKoxjkaS9gjGTqhF",
"name": "eshop-items",
"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
}
]
}
}
Schema
data object required
Common pagination fields for list responses.
- total integer required
The total number of items available across all pages.
Possible values:
Example:>= 02 - offset integer required
The starting position for this page of results.
Possible values:
Example:>= 00 - limit integer required
The maximum number of items returned per page.
Possible values:
Example:>= 11000 - desc boolean required
Whether the results are sorted in descending order.
Example:false - count integer required
The number of items returned in this response.
Possible values:
Example:>= 02 items object[] required
- id string requiredExample:
WkzbQMuFYuamGv3YF - name stringExample:
d7b9MDYsbtX5L7XAj - userId string | null nullableExample:
BPWDBd7Z9c746JAnF - username string | null nullableExample:
janedoe - createdAt string<date-time> requiredExample:
2019-12-12T07:34:14.202Z - modifiedAt string<date-time> requiredExample:
2019-12-13T08:36:13.202Z - accessedAt string<date-time> requiredExample:
2019-12-14T08:36:13.202Z - actId string | null nullableExample:
null - actRunId string | null nullableExample:
null - consoleUrl string<uri>Example:
https://console.apify.com/storage/key-value-stores/27TmTznX9YPeAYhkC - keysPublicUrl string<uri>
A public link to access keys of the key-value store directly.
Example:https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/keys?signature=abc123 - urlSigningSecretKey string | null nullable
A secret key for generating signed public URLs. It is only provided to clients with WRITE permission for the key-value store.
- generalAccess GeneralAccessEnum (string)
Defines the general access level for the resource.
Possible values: [
Example:ANYONE_WITH_ID_CAN_READ,ANYONE_WITH_NAME_CAN_READ,FOLLOW_USER_SETTING,RESTRICTED]RESTRICTED stats object
- readCount integer requiredExample:
9 - writeCount integer requiredExample:
3 - deleteCount integer requiredExample:
6 - listCount integer requiredExample:
2 - s3StorageBytes integerExample:
18
- readCount integer requiredExample:
- id string requiredExample:
- total integer required
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: