Pagination
Page through every listing with page[number] and page[size]
Every listing is paginated. Choose the page and its size with two query parameters:
A page[size] above 50 answers 422 rather than being reduced.
The response
A paginated response carries links to the neighbouring pages and a meta block describing the page:
links.prev is null on the first page and links.next is null on the last one. The links keep your page[size].
Walking a whole listing
Keep every filter, sort and page[size] fixed, and follow links.next until it is null. Equivalently, advance page[number] until meta.current_page reaches meta.last_page.
meta.total counts the rows of that listing, which is not always a number of websites: a listing of backups counts backups.
If you create or delete resources while you walk, rows can shift between pages. Finish reading before you change what the listing selects.
