Limit and Skip parameters can be used to control the number of results returned and to skip a certain number of results, respectively.
limit parameter allows you to control the maximum number of items returned in a single paginated request. It determines the page size, helping you manage the amount of data retrieved. By setting a limit, you can request a specific number of results per page, which is useful for optimizing data transfer and rendering performance.
limit: An integer value representing the maximum number of items to include in the response.
Acceptable values: A positive integer greater than zero.
To request 20 items per page, you would include
limit=20 in your request.
The skip parameter allows you to skip a specified number of items in the paginated result set. This parameter is useful for navigating to a specific page of results by skipping a certain number of items from the beginning of the dataset.
skip: An integer value representing the number of items to skip in the result set before returning data.
Default value: 0 (i.e., no items are skipped).
Acceptable values: A non-negative integer.
To retrieve results starting from the 21st item (assuming a page size of 20), you would include
skip=20 in your pagination request.
limitparameter to specify how many items you want per page.
skipparameter to navigate to a specific page by skipping a certain number of items.
skipto paginate through the entire result set systematically.
Be cautious when setting large values for
limit, as it can result in heavy data transfer and increased response times.
Ensure that the
skipvalue is within the bounds of your result set to avoid errors.