> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Lead List Stats

> Count the leads in a lead list: total, active in a campaign, and not active

Returns how many leads a lead list holds, so you can check what an import added before you push the list to a campaign. To read the leads themselves, use [Get Leads in a Lead List](https://api.smartlead.ai/api-reference/lead-lists/get-leads.md).

> [!NOTE]
>
> Lead lists belong to the main account, so a client API key owns none: with a client key this endpoint returns `404 Lead list not found`, the same as for a list that is not yours. Use the main account's API key.

## Path Parameters

**id** `integer` *required*

The lead list ID (a positive integer)

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

```bash cURL theme={null}
curl "https://server.smartlead.ai/api/v1/lead-list/500/stats?api_key=YOUR_KEY"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://server.smartlead.ai/api/v1/lead-list/500/stats",
    params={"api_key": "YOUR_API_KEY"},
)
print(response.json())
```

## Response Fields

**data.count** `integer`

Total leads in the list

**data.countActive** `integer`

Leads in the list that are active in at least one campaign

**data.countInactive** `integer`

The rest: `count` minus `countActive` (leads in no campaign, or only in campaigns where they are no longer active)

## Response Codes

**200** `Success`

Request successful

**400** `Bad Request`

`id` is not a positive integer, or an unknown query parameter

**401** `Unauthorized`

Invalid or missing API key

**404** `Not Found`

No lead list with this ID in your account, or a client API key

**500** `Internal Server Error`

Server error; retry the request

```json 200 - Success theme={null}
{
  "ok": true,
  "message": "Lead list stats fetched successfully",
  "data": {
    "count": 501,
    "countActive": 120,
    "countInactive": 381
  }
}
```

```json 401 - Unauthorized theme={null}
{
  "message": "Invalid API Key"
}
```

```json 404 - Not Found theme={null}
{
  "ok": false,
  "message": "Lead list not found"
}
```

```json 500 - Internal Server Error theme={null}
{
  "ok": false,
  "message": "Error getting lead list stats"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.