Count Items Across All Pages

Collect a paginated response before counting items.

Counting is a whole-collection operation. If Restish streams paginated items as they arrive, a filter can start earlier but it does not necessarily see the entire logical result at once. --rsh-collect tells Restish to gather the paginated response before applying the filter.

Browser preview

Edit the command and run it from your browser against the live docs API.

Ready

Example output:

5

Use this pattern for counts, sorts, unique values, or summaries. For item-by-item processing, skip collect mode and use a record format such as ndjson; the Pagination guide explains the tradeoff.

Related: Pagination.