# Get a broadcast's audience counts

`GET /v1/email/broadcasts/{broadcast_id}/counts`

Returns a live estimate of how many contacts the broadcast can reach, narrowing from everyone in its audience down to the ones the send would go to.

- `total` is every contact in the audience.
- `addressable` is how many of those have an email address.
- `sendable` is how many addressable contacts are not suppressed for the broadcast's category.

A transactional broadcast still reaches a contact who unsubscribed from or complained about marketing mail. A marketing broadcast does not.

The estimate can change until the broadcast sends. The broadcast must have an audience selected; otherwise, the request returns `422`.

These are audience numbers, and sending does not change them: after a send they still describe who the broadcast resolved to, not what happened to them. `status` says which of the two situations you are in. For delivery outcomes, read [the broadcast's recipients](/docs/api/reference/list-email-broadcast-recipients) for per-recipient status, [its events](/docs/api/reference/list-email-broadcast-events) for the raw feed, or [email statistics by broadcast](/docs/api/reference/get-email-stats-by-broadcast) for the aggregates.

## Code samples

### TypeScript

```ts
const counts = await bird.broadcasts.counts("eb_01krdgeqcxet5s7t44vh8rt9mg");
console.log(counts.total, counts.addressable, counts.sendable);
```

### Python

```py
counts = client.broadcasts.counts("eb_01krdgeqcxet5s7t44vh8rt9mg")
print(counts.total, counts.addressable, counts.sendable)
```

### Go

```go
counts, err := client.Broadcasts.Counts(context.Background(), "eb_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
	log.Fatal(err)
}
fmt.Println(*counts.Total, *counts.Addressable, *counts.Sendable)
```

### PHP

```php
$counts = $bird->broadcasts->counts('eb_01krdgeqcxet5s7t44vh8rt9mg');
echo $counts->getTotal(), ' ', $counts->getAddressable(), ' ', $counts->getSendable();
```

### CLI

```sh
bird email broadcasts counts <broadcast-id>
```

### cURL

```sh
curl -X GET "https://us1.platform.bird.com/v1/email/broadcasts/{broadcast_id}/counts" \
  -H "Authorization: Bearer $TOKEN"
```

## Example response `200`

```json
{
  "broadcast_id": "eb_01krdgeqcxet5s7t44vh8rt9mg",
  "status": "draft",
  "next": [
    {
      "kind": "operation"
    }
  ],
  "total": 13000,
  "addressable": 12500,
  "sendable": 12000
}
```

## Path parameters

- `broadcast_id` (string): Broadcast identifier. Starts with `eb_`.

## Response body

- `broadcast_id` (string, required): The broadcast these counts are for.
- `status` (string, required): Where the broadcast is in its lifecycle, so the counts read in context. Anything past `draft` or `scheduled` means these numbers describe an audience the broadcast has already been sent to, not one it is about to reach.
- `next` (array of object)

  What to do next, given where the broadcast is. On a broadcast that has already sent this names
  the reads that carry delivery outcomes, which these counts never do. An empty list means there
  is nothing to do; the field is absent entirely on responses that do not report next actions.
- `next.kind` (string, required)

  What you do about this step.

  - `operation`: call the operation named in `operation`, then
    read again.
  - `external`: act somewhere this API does not reach, then read
    again.
  - `wait`: nothing is asked of you, so read again later.
  - `terminal`: nothing you do resolves this, so stop retrying.

  Tolerate a value you do not recognize: show the `description` and
  offer no action.

  Possible values (may grow over time): `operation`, `external`, `wait`, `terminal`
- `next.description` (string, required): A short, human-readable label for the step, suitable for display.
- `next.operation` (string): The operationId to call. Present only when `kind` is `operation`. The operation's own schema says how to call it; this says only which one, and what to address it with.
- `next.params` (object): The parameters that address the operation, by name: `{"sender_id": "…"}` for an operation on `/v1/sms/senders/{sender_id}/requirements`. A parameter the operation takes in its query string is given the same way, so an operation addressed as `?subject_id=` carries `{"subject_id": "…"}`. Every parameter the call needs is here, whether its value came from the thing you were acting on or is fixed for this step, so you can make the call from this object alone. Present only when `kind` is `operation` and the operation names a subject. A request body, when the operation takes one, is described by the operation's own schema and never appears here.
- `next.url` (string): A URL to open. Present only when `kind` is `external`, and only when the step has one. An external step whose `description` says to go and do something with no URL to open is normal.
- `total` (integer, required): How many contacts are in the audience.
- `addressable` (integer, required): How many of those contacts have an email address. A contact with no address is not counted. This is never higher than `total`.
- `sendable` (integer, required): How many of the addressable contacts are not suppressed for this broadcast's category, which is who the email would actually go to. This is never higher than `addressable`. Which suppressions apply depends on the category, so the same audience can give a higher number for a transactional broadcast than for a marketing one. A transactional broadcast still reaches people who unsubscribed from or complained about marketing mail, and a marketing broadcast does not.

## Related resources

- [Getting started with email](/learn/email/getting-started-with-email) (video)
- [Email](/products/email) (product)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=email)
