Pagination

Currently we only support cursor-based pagination, which is typically more optimal than offset-based.

ParameterDescription
beforePassing 'before' in your requests with an ID will only return records who's IDs come before the supplied ID.
afterPassing 'after' in your requests with an ID will only return records who's IDs come after the supplied ID.
limitEach endpoint has a default limit, but most are lower than the supported maximum. You can pass 'limit' in your requests to increase or decrease the number of results returned.

Sample

Below is an example of how you can paginate through donations. First, you would call the /donations endpoint and get your first page of results.

https://streamlabs.com/api/v2.0/donations?limit=50

And below is what the output would look like.

{  
  "data":[  
    {  
      "donation_id":"79808132"
      //...
    },
    //...
    {  
      "donation_id":"79530994"
      //...
    }
  ]
}

In order to grab the next page of results you would pass the last donation_id as your before parameter.

https://streamlabs.com/api/v2.0/donations?limit=50&before=79530994