# ARNEXT

> Read the next append index without moving the cursor.

## Arguments

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

## Response

<ResponseField type="Optional[int]" required>
  The next append index. A missing key or an array without appends returns `"0"` in TypeScript or `0` in Python. Returns `null` / `None` when the cursor has reached the highest supported index.
</ResponseField>

<RequestExample>
```py Example
redis.arinsert("events", "boot", "ready")
print(redis.arnext("events"))  # 2
```
</RequestExample>

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