page
: The page number to retrieve (default: 1
, integer, minimum: 1
).size
: The number of items per page (default: 20
, maximum: 100
, integer).
{
"data": [...],
"meta": {
"totalDocs": 150,
"page": 2,
"size": 50,
"totalPages": 3
}
}
data
: An array containing the requested items.meta.totalDocs
: The total number of items available across all pages.meta.page
: The current page number.meta.size
: The number of items per page.meta.totalPages
: The total number of pages based on the size
parameter.size
Appropriately: Choose a size
value that balances performance and usability, keeping within the maximum limit of 100
.data
arrays or totalDocs
of 0
to handle cases with no results.meta.totalPages
field to avoid requesting non-existent pages.400
errors (e.g., invalid page
or size
) or 429
errors (rate limit exceeded) as described in the Handling Errors section.