Limit parameter¶
The limit
parameter restricts the maximum number of items returned in a single response.
It is commonly used to retrieve a subset of results, such as the first few items from a list.
Usage¶
In this example, the response is limited to a single item. The actual item returned depends on the sort order. To ensure
consistent results, combine limit
with a sort
clause.
Pagination¶
To paginate results, combine limit
with the skip
parameter. For example, to fetch the second page of a
paginated list (items 11–20), use skip(10)
and limit(10)
.
See the skip
parameter for a full example.