Pagination

When fetching lists of resources, up to 50 resources will be returned per page by default. You can change the page size per request by setting the page_size parameter in that request. The maximum page size is 100.

Example request
$ curl https://jsonpad.io/api/v1.0/lists?page_size=20 \
	-u username:token \
	-H "Accept: application/json"

You can change the page of resources being returned by setting the page parameter. Page numbering is 1-based. If this parameter is omitted, the first page of resources will be returned. The page number will be clamped between 1 and the number of pages available for the requested resource.

Example request
$ curl https://jsonpad.io/api/v1.0/lists?page=2 \
	-u username:token \
	-H "Accept: application/json"

When fetching lists of resources, the API will include the page number, page size and number of pages in the response body. See Lists of resources for further information.

Additionally, when fetching lists of resources, the API will include a X-Total header containing the total number of resources, a X-Pages header containing the total number of pages, and a Link header containing a link to the next and final page of resources.

If the current page is the last page of resources, the next page link will be omitted from the link header.

Link: <https://jsonpad.io/api/v1.0/lists?page=2>; rel="next",
      <https://jsonpad.io/api/v1.0/lists?page=5>; rel="last"
X-Total The total number of resources in the collection.
X-Pages The total number of pages in the collection.
Link Links to the next and last pages of resources.