> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get key-value store record

> Gets a JSON or text record from an Apify key-value store.

`apify.getKeyValueStoreRecord` gets a JSON or text record from an Apify key-value store.

## Example

```ts automations/apify-get-key-value-store-record.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { apify } from "automate.ax/apify"

export default automation("Get key-value store record", () => {
  onHttpRequest({ scope: "automation" })

  apify.getKeyValueStoreRecord({
    storeId: "store-id",
    key: "OUTPUT",
  })
})
```

## Inputs

`storeId` is the key-value store ID or name. `key` is the exact record key.

## Output

Returns `key`, `value`, and the optional `contentType`. JSON values stay structured; text values are strings.

The action fails when the record is missing. Binary record bodies are outside this JSON-safe action.
