> ## 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.

# ARGETRANGE

> Read every slot in an inclusive array range.

A start greater than the end returns values in reverse index order. The server rejects ranges containing more than 1,000,000 indexes. Use [ARSCAN](./arscan) for sparse ranges.

## Arguments

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

<ParamField body="start" type="int" required>
  The first index of the inclusive range.
</ParamField>

<ParamField body="end" type="int" required>
  The last index of the inclusive range.
</ParamField>

## Response

<ResponseField type="List[Optional[str]]" required>
  One value per index in the range, including `null` (TypeScript) / `None` (Python) for empty slots.
</ResponseField>

<RequestExample>
  ```py Example theme={"system"}
  redis.armset("readings", {0: "a", 2: "c"})
  print(redis.argetrange("readings", 0, 3))  # ["a", None, "c", None]
  print(redis.argetrange("readings", 2, 0))  # ["c", None, "a"]
  ```
</RequestExample>

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