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

# ZRANK

> Returns the rank of a member

## Arguments 

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

<ParamField body="member" type="TMember" required>
  The member to get the rank of.
</ParamField>

## Response

<ResponseField type="integer" required>
    The rank of the member.
</ResponseField>

<RequestExample>
```ts Example
const rank = await redis.rank("key", "member");
```
</RequestExample>
