# estimate_audience

Count the readers a mailing would reach

`POST /v1/audiences/estimate`

| | |
| --- | --- |
| Risk | read |
| Authentication | API key or OAuth access token |
| Scopes | `audiences:read` |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |

## What it does

- Use when: You want the size of an audience by lists or tag before drafting a mailing.
- Do not use when: you need the readers themselves (call list_subscribers).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: audiences:read.
- Idempotency: safe to repeat.
- Typical next step: call create_mailing_draft with the same lists and tag.

## Scopes

- `audiences:read`: Count how many readers a mailing would reach, without seeing any reader data.

## Request

### Path parameters

None.

### Query parameters

None.

### Body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `list_ids` | array of string, max 50 items | no |  |
| `tag` | string, max 200 characters | no |  |

## Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer, min -9007199254740991, max 9007199254740991 | yes |  |

## Examples

### tag

Request:

```bash
curl -X POST 'https://api.seemly.com/v1/audiences/estimate' \
  -H "Authorization: Bearer $SEEMLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tag": "arc-readers"
}'
```

Response: `200`:

```json
{
  "count": 120
}
```

## Errors

| Status | Codes |
| --- | --- |
| 400 | [`validation_failed`](/developers/md/errors/validation_failed) |
| 401 | [`unauthenticated`](/developers/md/errors/unauthenticated), [`credential_revoked`](/developers/md/errors/credential_revoked), [`credential_expired`](/developers/md/errors/credential_expired) |
| 403 | [`insufficient_scope`](/developers/md/errors/insufficient_scope), [`plan_does_not_include`](/developers/md/errors/plan_does_not_include), [`api_suspended`](/developers/md/errors/api_suspended), [`consent_required`](/developers/md/errors/consent_required) |
| 413 | [`payload_too_large`](/developers/md/errors/payload_too_large) |
| 415 | [`unsupported_media_type`](/developers/md/errors/unsupported_media_type) |
| 429 | [`rate_limited`](/developers/md/errors/rate_limited) |
| 503 | [`service_unavailable`](/developers/md/errors/service_unavailable) |

Every error is an `application/problem+json` body with a `code`, a `fix` sentence and `next_actions`. See [reading a problem response](/developers/md/guides/agents#reading-a-problem-response).

## Typical next steps

- [`create_mailing_draft`](/developers/md/operations/create_mailing_draft)

## Related

- [OpenAPI document](https://api.seemly.com/v1/openapi.json)
- [Agent guide](/developers/md/guides/agents)
