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] when the request sent one. The brackets in a URL can come back URL-encoded (page%5Bnumber%5D=2), which is the same URL, so follow the links as given rather than building them. meta.links is a ready-made list of page links for building a page selector (url, label, active); you can ignore it and use links instead.
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.
