per_page
and cursor
query parameters to step through large collections page by page.
Parameter | Type | Description |
---|---|---|
cursor | String (optional) | Cursor pointing to the beginning of a page |
per_page | Integer (optional) | Amount of resources that should be returned. (1-100. Default: 25) |
Property | Type | Description |
---|---|---|
items | Array | Array containing the listed resources (eg. transactions) |
hasMore | Boolean | Whether or not there are more resources to be fetched after this page |
perPage | Integer | Amount of resources returned per page |
count | Integer | Amount of resources on the current page |
nextCursor | String | Null | Cursor pointing to the beginning of the next page (Use the cursor query parameter value to get the next page of resources) |
nextPageUrl | String | Null | URL pointing to the next page of resources (prebuilt for your convenience) |
cursor
query parameter to fetch the first page of resources. Optionally use the per_page
query parameter to limit the number of resources to fetch. Example: GET https://api.procuros.io/v2/transactions
hasMore
property to determine if there are more resources to fetch on subsequent pages.
nextCursor
property on the response to build the URL of your next request. Alternatively, use the nextPageUrl
that we’ve prebuilt for you. Example: GET https://api.procuros.io/v2/transactions?cursor=kdfhh87sdkfjslasdf7hsbadf