List endpoints (like /members/
and /campaigns/
) have pagination, so you can load pages of results in turn instead of all data at once.
The default number of results returned in each response is 50.
Each request contains the following structure:
{
"count": 19,
"next": null,
"previous": null,
"results": [
{
...
},
...
]
}
count
returns the total number of results for your query, from all the pagesnext
is the URL for the next page of results (ornull
if there is no next page)previous
is the URL for the previous page of results (ornull
if there is no previous page)results
is a list of objects
You can move between pages by hitting the endpoint URLs in the next
and previous
values.