Pagination
Many resources provide pagination options. Read below to learn more about the pagination object structure.
#Response Structure
Paginated responses include links and meta objects alongside the data array.
#links Properties
-
firststring - The URL of the first page in this result set
-
laststring - The URL of the last page in this result set
-
prevstring - The URL of the previous page (or null)
-
nextstring - The URL to the next page in this result set (or null)
#meta Properties
-
current_pageint - The current page number
-
fromint - The index of the first record
-
toint - The index of the last record on this page
-
per_pageint - The number of records per page
-
totalint - The total number of records available
-
pathstring - The URL of the current resource
-
last_pageint - The number of the last page in this result set
-
linksarray - An array of links for building pagination in HTML