---
title: "zrangebyscore · RUAL Documentation"
description: "Reads the members whose score lies between min and max. A RUAL redis block in the redis sorted sets group. See its pins and version history."
canonical: https://docs.rual.nl/block-types/redis/redis_zrangebyscore
language: en
---

# zrangebyscore

This block is part of the [`redis`](https://docs.rual.nl/block-types/redis) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

## Redis Key Selection Required

This block relies on a Redis key to perform its redis releated actions. You must manually select the Redis key you want to use in the flow in the blueprint using the Redis key selector modal. To access the modal, click the white button on the block.

Reads the members whose score lies between min and max.

- flow

- set `value` required key of the sorted set

- min `value`

- max `value`

- offset `number`

- limit `number`

- include scores `condition`

- flow

- results `array`

- success `condition`

- error `value`

- key `value`

Lowest score first. min and max are numbers, or Redis bounds as text (-inf, +inf, or (5 for exclusive); a missing bound is open. offset and limit page the result; with_scores returns {member, score} objects.

| `redis zrangebyscore` |
| --- |
| `zrangebyscore` |

## Version history

Introduced in [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

## Service documentation

- [External API reference](https://redis.io/commands/zrangebyscore/): This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.

- [Back to `redis`](https://docs.rual.nl/block-types/redis): Return to the main group to view all sub-groups

- [Back to `redis sorted sets`](https://docs.rual.nl/block-types/redis?group=redis%20sorted%20sets): Return to the group to view all blocks within this group
