Support

Home Forums Event Espresso Premium JSON endpoint "registrations" only returns 50 results

JSON endpoint "registrations" only returns 50 results

Posted: July 5, 2017 at 8:54 am

Viewing 2 reply threads


jxh

July 5, 2017 at 8:54 am

How can I get the registrations endpoint, using the now built-in WordPress REST API, to return more than 50 results? I have tried several things listed in the WP docs for pagination, so far without success. For instance:

/wp-json/ee/v4.8.29/registrations?per_page=100 or
/wp-json/ee/v4.8.29/registrations?filter[registrations_per_page]=100

is no different from:

/wp-json/ee/v4.8.29/registrations

I also need to set that 100 to a higher limit, once I get it past 50.

ee 4.9.34p, wp 4.7 and looking at https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/


jxh

July 5, 2017 at 9:23 am

I found the limit= argument:

/wp-json/ee/v4.8.29/registrations?limit=100

Is the another upper limit imposed by WordPress? And if so, how can I lift that? I will have about 300 registrations, and need to dump them all at once.


Josh

  • Support Staff

July 5, 2017 at 9:50 am

Hi jxh,

The default limit is 50 and you can override that default with the limit param as you found. So in your case this will ensure you get all 300 or so registrations:

/wp-json/ee/v4.8.36/registrations?limit=400

Viewing 2 reply threads

The support post ‘JSON endpoint "registrations" only returns 50 results’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso