Menu

Count contacts in a segment

GET/v1/segments/{id}/count

Requires an API key with the segments:read scope. About keys and scopes

Evaluates a saved segment and returns only the number of matching contacts — cheaper than listing them when all you need is the size.

Path parameters

idstringrequired

uuid

Returns

Returns 200 OK with a AudienceCount in data. Otherwise returns an error; Errors lists every code and which to retry.

countintegerrequired

Contacts the rules match, counted up to 10000.

min 0 · max 9007199254740991

countExactbooleanrequired

False when count is the cap and more contacts match.