Skip to content

Count the readers a mailing would reach

On this page
POST/v1/audiences/estimateestimate_audience
Riskread
AuthenticationAPI key or OAuth access token
Scopesaudiences:read
Idempotencynatural: repeating the call gives the same result
Dry runnot applicable
Success status200
Response typeapplication/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)#

FieldTypeRequiredDescription
list_idsarray of string, max 50 itemsno
tagstring, max 200 charactersno

Response#

FieldTypeRequiredDescription
countinteger, min -9007199254740991, max 9007199254740991yes

Examples#

tag#

Request:

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#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.