API Reference
Pagination

Pagination

Several of our resources employ pagination in their responses. During those cases, the response structure follows the next format:

{
  "items": [],
  "meta": {
    "count": 0,
    "page": 1,
    "last": 1
  }
}

Response Reference

NameTypeDescription
itemsarrayThe collection of objects returned; the item model depends on the specific endpoint.
meta.countnumberTotal count of objects
meta.pagenumberCurrent page
meta.lastnumberFinal page of items

Requesting additional pages

By default, the API will return the first page of results. To request additional pages, you can use the page query parameter. For example, to request the second page of donations, you would use the following URL:

curl -H 'X-Api-Key: <YOUR KEY HERE>' "https://public.daffy.org/public/api/v1/users/1234/donations?page=2"