Problem with pagination on the APIv2

When I try to query Patreon’s API using an http client like Postman, the page[count] parameter works just fine. When I put 100 as a value for example, I do get all my pledges (which are less than a 100).

However, in my Java application when I try to query the same URL using Java’s Http Client RestTemplate, the number of results are limited to 10 no matter what value I set for the page[count] parameter.

Therefore I tried using pagination but this is not an easy task using this API and the URL in the JSON object’s attribute « page.next » seems to always return the same elements.

Anybody knows if page based pagination is possible for Patreon’s API or is there an example of how to implement pagination for a Patreon campaign please ?

Try page[size] which seems to have worked for me (as found in another thread).

1 Like