When retrieving multiple categories through the Venddor API, you can control how many results are returned and which page of results to display using pagination parameters.
https://www.venddor.com.br/api
Add these parameters to your API requests to control the pagination of results:
Parameter | Description |
---|---|
page |
Determines which page of categories to display. Pages are numbered starting from 1. |
items_per_page |
Specifies how many categories should be included on each page. The default value is 10. |
This request will return 10 categories from the 5th page.
Since items_per_page
is not specified, the default value of 10 is used.
This request will return 20 categories from the first page.
Since page
is not specified, the default value of 1 is used.
This request will return 20 categories from the 5th page.
Both pagination parameters are specified, giving you complete control over the results.
The API will return an array of category objects based on your pagination parameters. Each page contains the specified number of categories, starting from the requested page number.