Skip to main content

Get record

GET 

https://api.apify.com/v2/key-value-stores/:storeId/records/:recordKey

ClientsApify API Python Client ReferenceApify API JavaScript Client ReferenceGets a value stored in the key-value store under a specific key.

The response body has the same Content-Encoding header as it was set in Put record.

If the request does not define the Accept-Encoding HTTP header with the right encoding, the record will be decompressed.

Most HTTP clients support decompression by default. After using the HTTP client with decompression support, the Accept-Encoding header is set by the client and body is decompressed automatically.

Request

Path Parameters

    storeId stringrequired

    Key-value store ID or username~store-name.

    recordKey stringrequired

    Key of the record.

Responses

Response Headers
    Schema
      foostringrequired

    Authorization: token

    name: tokentype: apiKeyin: querydescription: API authentication token. It is required only when using the `username~store-name` format for `storeId`.
    apify key-value-stores get-value <STORE ID> INPUT
    curl -L 'https://api.apify.com/v2/key-value-stores/:storeId/records/:recordKey' \
    -H 'Accept: application/json'
    Request Collapse all
    Base URL
    https://api.apify.com
    Auth
    Parameters
    — pathrequired
    — pathrequired
    ResponseClear

    Click the Send API Request button above and see the response here!