# Patreon API Only Returning 20 Entries?

**URL:** <https://www.patreondevelopers.com/t/patreon-api-only-returning-20-entries/3626>\
**Category:** Uncategorized\
**Created:** [September 14, 2020, 5:57am UTC](https://www.patreondevelopers.com/t/patreon-api-only-returning-20-entries/3626 "2020-09-14T05:57:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericx13](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@ericx13](https://www.patreondevelopers.com/u/ericx13)\
**Post date:** [September 14, 2020, 5:57am UTC](https://www.patreondevelopers.com/t/patreon-api-only-returning-20-entries/3626/1 "2020-09-14T05:57:15Z")

</div>

Hi! I’m using the \_\_get\_json function within the Patreon\_API class of the official wordpress plugin. I want to write a line of PHP to get all the patrons of my campaign, but it’s only returning 20 of them. The request looks like this:

$DFP-\>\_\_get\_json(“campaigns/$campaign\_id/members?fields[member]=full\_name,email,last\_charge\_date,last\_charge\_status,currently\_entitled\_amount\_cents,patron\_status”,true );

How can I get the entire list?

Also, is this the best call for this list or is there something more straightforward? I’m setting $campaign\_id to my campaign id earlier in the code but it seems like maybe it would be more straightforward to tell it to look up the only existing campaign of me (the currently authenticated user) somehow?

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [September 14, 2020, 11:31am UTC](https://www.patreondevelopers.com/t/patreon-api-only-returning-20-entries/3626/2 "2020-09-14T11:31:14Z")

</div>

You can request more data and sort them. Just check out what’s below:

> **[API Reference](https://docs.patreon.com/#more-data-paging-and-sorting)**

When you use your creator token, you should receive the data related to your campaign. For more example calls, you can check the WP plugin, which has various calls to efficiently pull different info ranging from user data / pledge in one go to pulling posts:

> <https://github.com/Patreon/patreon-wordpress/blob/master/classes/patreon_api_v2.php>
