List endpoints responses are in the form of paginated results.
The JSON object response will include the following properties:
count: total number of items in the listnext: if there are more results available, this is the next page url to callprevious: if you're not on the first page, this is the previous page urlresults: the current set of objects returned in this call (by default10objects at a time)
You can also decide how many items you would like to fetch per page, using the query parameter page_size. default value to 10. Max allowed value to 20.
Here is an example response of a paginated API call:
{
"count": 123,
"next": "https://api.airsaas.io/v1/projects/?page=4",
"previous": "https://api.airsaas.io/v1/projects/?page=2",
"results": [
{
"id": "4bc78756-0171-4667-be0f-4903f5186992",
"short_id": "ACM-P42",
"name": "My Project",
"etc": "..."
},
{
"id": "37379464-e293-4b55-89d0-40c5ddeb52c0",
"short_id": "ACM-P45",
"name": "My second Project",
"etc": "..."
}
]
}