Pagination - Categories

Overview

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.

Base URL: https://www.venddor.com.br/api

Pagination Parameters

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.
Tip: If you don't specify these parameters, the API will return the first 10 categories by default.

Examples

GET /categories?page=5

This request will return 10 categories from the 5th page.

Since items_per_page is not specified, the default value of 10 is used.

GET /categories?items_per_page=20

This request will return 20 categories from the first page.

Since page is not specified, the default value of 1 is used.

GET /categories?page=5&items_per_page=20

This request will return 20 categories from the 5th page.

Both pagination parameters are specified, giving you complete control over the results.

Response Format

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.