> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file 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 theme={"system"}
  const rank = await redis.rank("key", "member");
  ```
</RequestExample>


## Related topics

- [ZRANK](/docs/redis/sdks/py/commands/zset/zrank.md)
- [Autocomplete API with Serverless Redis](/docs/redis/tutorials/auto_complete_with_serverless_redis.md)
- [Overview](/docs/redis/sdks/py/commands/overview.md)
