Does anyone know how I can get ALL users, either using ‘/wp-json/wp/v2/users’ (with a query such as ‘?per_pag=’ ) or anything else?
Can you modify PHP on the site running the API?
Or, alternatively, have you consider using the page argument to get the second page of results?
Hi,
thanks for the speedy reply. I’ve tried using the page argument – but seems to paginate at 10 (no matter ‘per_page’ number is set, which means, unless I’m missing something, running through 11 different queries. I’ve tried it in Postman and in the browser and the result is the same.
I can modify, just thought there might a query that would produce all the results. I think the earlier version could return all users (and categories), like posts can be done now – any plans to implement this?
Thanks,
Tim
I’ve tried using the page argument – but seems to paginate at 10 (no matter ‘per_page’ number is set, which means, unless I’m missing something, running through 11 different queries. I’ve tried it in Postman and in the browser and the result is the same.
Huh. I’m not able to reproduce this locally. Can you share the request you’re making, and the full response, in a Pastebin or similar so I can understand the problem a bit further?
Also, just to confirm, you’ve deactivated all other plugins and have temporarily switched to the Twenty Sixteen theme to make sure there isn’t some custom code causing a problem?
I can modify, just thought there might a query that would produce all the results. I think the earlier version could return all users (and categories), like posts can be done now – any plans to implement this?
No. We’ve intentionally limited the upper bound, because running unbounded queries can cause performance issues.