per_page instead, with a maximum of 15 results. List tracks returns all tracks in one response.
Pagination parameters
You can control pagination using the following query parameters:integer
The page of results you want to retrieve (starting from 1).
integer
The number of items to return per page. The maximum is 100.
Example usage
Here’s how to retrieve paginated results:Response structure
Paginated responses include the pagination fields at the top level, next to the list of records:Response example
integer
The current page number.
integer
The number of items per page.
integer
The total number of items across all pages.
integer
The total number of pages available. This is at least 1, even when there are no items.
Default behavior
- If you leave out
page, you get the first page. - If you leave out
page_size, each page has 25 items. - A
page_sizeabove 100 is lowered to 100. - A page past the last one returns an empty list.
Best practices
- Start with reasonable page sizes: Use page sizes between 10-100 items for optimal performance.
- Handle empty results: Always check if the returned array is empty to detect the end of data.
- Use total_pages: Stop when
pagereachestotal_pages.