# Number of people in group from API

**URL:** <https://devforum.okta.com/t/number-of-people-in-group-from-api/5495>\
**Category:** Questions\
**Created:** [June 27, 2019, 2:45pm UTC](https://devforum.okta.com/t/number-of-people-in-group-from-api/5495 "2019-06-27T14:45:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RuBAN-GT](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/ruban-gt/32/775_2.png) [@RuBAN-GT](https://devforum.okta.com/u/RuBAN-GT)\
**Post date:** [June 27, 2019, 2:45pm UTC](https://devforum.okta.com/t/number-of-people-in-group-from-api/5495/1 "2019-06-27T14:45:34Z")

</div>

Good day! Does somebody know: How I can get a number (total count) of people from specific group by Okta API?  
Thank you!

---

<div class="post-metadata">

**Author:** ![Govner](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/govner/32/1099_2.png) [@Govner](https://devforum.okta.com/u/Govner)\
**Post date:** [July 1, 2019, 7:14am UTC](https://devforum.okta.com/t/number-of-people-in-group-from-api/5495/2 "2019-07-01T07:14:41Z")

</div>

I believe you will have to paginate through all and perform count on output: [https://developer.okta.com/docs/reference/api/groups/#list-group-members](https://developer.okta.com/docs/reference/api/groups/#list-group-members)

---

<div class="post-metadata">

**Author:** ![gabriel.sroka](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/gabriel.sroka/32/1292_2.png) [@gabriel.sroka](https://devforum.okta.com/u/gabriel.sroka)\
**Post date:** [December 9, 2022, 9:13pm UTC](https://devforum.okta.com/t/number-of-people-in-group-from-api/5495/3 "2022-12-09T21:13:14Z")

</div>

You can find the group and see how many members it has:

```auto
GET /api/v1/groups?q=Everyone&expand=stats

```

then look at `_embedded.stats.usersCount`. see [Groups | Okta Developer](https://developer.okta.com/docs/reference/api/groups/#request-parameters-3)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 10:32pm UTC](https://devforum.okta.com/t/number-of-people-in-group-from-api/5495/4 "2024-02-12T22:32:10Z")

</div>

Closed on February 12, 2024, 10:32pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
