# How do I get a list of all users from the API?

**URL:** <https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [21 Gennaio 2015, 9:34am UTC](https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261 "2015-01-21T09:34:11Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [6 Maggio 2016, 8:56pm UTC](https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261/10 "2016-05-06T20:56:02Z")

</div>

> [@DeanMarkTaylor](#):
>
> You’ll have to iterate over the following groups:
> 
> - trust\_level\_0
> - …
> - trust\_level\_4
> 
> But they do support both limit and offset parameters:
> 
> `/groups/trust_level_0/members.json?limit=50&offset=50`

It was recently noted that you only need to iterate `trust_level_0`:

> [@downey](#):
>
> It should only be necessary to do this for trust\_level\_0 since it includes all users in “higher” trust levels.

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261)._
