Buttondown Documentation
If you've got a non-trivial number of subscribers or emails, you'll almost certainly need to paginate through them at some point.
Buttondown's API uses number-based pagination: you'll need to specify the page number you want to retrieve with the page
query parameter. Like so:
If you don't specify a page, we'll assume you want the first page of results. This is because pagination is technically a subset of filtering, and the same principles apply!
Additionally, responses that can be paginated always include a next
field that contains the URL for the next page of results. If you're on the last page, the next
field will be null
. This looks something like the following:
This means that you can easily paginate through results by following the next
field until it's null
. Here's an example in JavaScript: