---
title: "Get members count by filter"
method: GET
path: "/api/v2/organizations/{orgSlug}/members/count"
tags: ["Members"]
---

# Get members count by filter

`GET /api/v2/organizations/{orgSlug}/members/count`

## Request

- Base URL: `https://app.officernd.com`
- URL: `https://app.officernd.com/api/v2/organizations/{orgSlug}/members/count`
- Auth: OAuth 2
  - Authorization code: `https://identity.officernd.com/auth/authorize`
  - Client credentials
  - Token URL: `https://identity.officernd.com/auth/token` scopes: `flex.community.members.read`

Retrieve a count of members based on provided filters 

 Required scopes: `flex.community.members.read`

## Path parameters

- `orgSlug` string, required

## Query parameters

- `_id` string
- `name` string
- `email` string
- `location` string
- `company` string
- `status` 'active' | 'former' | 'pending' | 'contact' | 'not_approved' | 'drop-in' | 'lead': The status of the member.
- `isBillingPerson` boolean
- `createdAt` string
- `modifiedAt` string
- `properties` string
- `$countBy` 'status' | 'company' | 'location'

## Response `200`

- CountResultDto
  - `total` number, required
  - `groups` GroupDto[]
    - `key` string, required
    - `count` number, required

---

[API](https://skmtc.dev/officernd/apis/community-api.md) - [All operations](https://skmtc.dev/officernd/apis/community-api/llms.txt) - [OpenAPI document](https://skmtc.dev/officernd/apis/community-api/revisions/dad1b7912165?raw)
