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: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
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.