Get key-value store
GET/v2/key-value-stores/:storeId
Gets an object that contains all the details about a specific key-value store.
Request
Path Parameters
Key-value store ID or username~store-name.
WkzbQMuFYuamGv3YFStatus 200
Response Headers
{
"data": {
"id": "WkzbQMuFYuamGv3YF",
"name": "d7b9MDYsbtX5L7XAj",
"title": "My Store",
"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",
"recordsPublicUrl": "https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/records",
"schema": "Unknown Type: object,null",
"urlSigningSecretKey": "string",
"generalAccess": "RESTRICTED",
"stats": {
"readCount": 9,
"writeCount": 3,
"deleteCount": 6,
"listCount": 2,
"s3StorageBytes": 18,
"storageBytes": 457225
}
}
}
Schema
data object required
- id string requiredExample:
WkzbQMuFYuamGv3YF - name string | null nullableExample:
d7b9MDYsbtX5L7XAj - title string | null nullableExample:
My Store - 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 - recordsPublicUrl string<uri>
A public link to access records of the key-value store directly.
Example:https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/records - schema object | null nullable
Optional JSON schema describing the keys stored in the key-value store.
- 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 object
- anyOf
- GeneralAccess
- null
- GeneralAccess (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 integerExample:
9 - writeCount integerExample:
3 - deleteCount integerExample:
6 - listCount integerExample:
2 - s3StorageBytes integerExample:
18 - storageBytes integerExample:
457225
- readCount integerExample:
- id string requiredExample:
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 ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 401
Unauthorized - the authentication token is missing or not valid.
The request doesn't include an API token.
{
"error": {
"type": "token-not-provided",
"message": "Authentication token was not provided"
}
}
The API token isn't valid, or its user no longer exists.
{
"error": {
"type": "user-or-token-not-found",
"message": "User was not found or authentication token is not valid"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 403
Forbidden - insufficient permissions to perform this action.
{
"error": {
"type": "insufficient-permissions",
"message": "You do not have permission to perform this action."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 404
Not found - the requested resource does not exist.
{
"error": {
"type": "record-not-found",
"message": "The requested resource was not found."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 405
Method not allowed.
{
"error": {
"type": "method-not-allowed",
"message": "This API end-point can only be accessed using the following HTTP methods: OPTIONS,GET"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 429
Too many requests - rate limit exceeded.
{
"error": {
"type": "rate-limit-exceeded",
"message": "You have exceeded the rate limit. Please try again later."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)