> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Search it with GET https://upstash.com/docs/search?q=<query>.
> Use these to discover all available pages before exploring further.

# GETRANGE

> Return a substring of value at the specified key.

## Arguments 

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

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

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

## Response

<ResponseField  type="str" required>
  The substring.
</ResponseField>

<RequestExample>
```py Example
redis.set("key", "Hello World")

assert redis.getrange("key", 0, 4) == "Hello"
```
</RequestExample>
