> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3009-array-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ARGET

> Read the value at an array index.

## Arguments

<ParamField body="key" type="string" required>
  The array key.
</ParamField>

<ParamField body="index" type="number | string" required>
  The zero-based index to access.
</ParamField>

## Response

<ResponseField type="TData | null" required>
  The stored value, or `null` (TypeScript) / `None` (Python) for an empty slot or missing key.
</ResponseField>

Values use the SDK's automatic deserialization. Use `TData` to describe stored JSON values; it defaults to `string`.

<RequestExample>
  ```ts Example theme={"system"}
  await redis.arset("readings", 7, { temperature: 21.5 });
  const reading = await redis.arget<{ temperature: number }>("readings", 7);
  console.log(reading); // { temperature: 21.5 }
  console.log(await redis.arget("readings", 6)); // null
  ```
</RequestExample>

See the [server command reference](/redis/commands/array/arget) for protocol details.
