Get audience membership
/v1/audiences/{audience_id}/membershipconst result = await bird.audiences.membership(
"adn_01krdgeqcxet5s7t44vh8rt9mg",
);
if (result.membership) {
console.log(result.membership.total, result.membership.data_as_of);
}result = client.audiences.membership("adn_01krdgeqcxet5s7t44vh8rt9mg")
if result.membership is not None:
print(result.membership.total, result.membership.data_as_of)result, err := client.Audiences.Membership(context.Background(), "adn_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}
if result.Membership != nil {
fmt.Println(result.Membership.Total, result.Membership.DataAsOf)
}$result = $bird->audiences->membership('adn_01krdgeqcxet5s7t44vh8rt9mg');
if ($result->getMembership() !== null) {
echo $result->getMembership()->getTotal(), ' ', $result->getMembership()->getDataAsOf()?->format(DATE_ATOM);
}bird audiences membership <audience-id>curl -X GET "https://us1.platform.bird.com/v1/audiences/{audience_id}/membership" \
-H "Authorization: Bearer $TOKEN"{
"membership": {
"total": 1284,
"data_as_of": "2026-10-12T09:41:07.512843Z"
}
}
Returns the exact number of audience members at the source evaluation instant, including contacts without email and unsubscribed contacts. Membership is absent when the count is unavailable; an empty audience has total zero. For daily observations, use Get audience membership statistics.
Returns 421 when the workspace's organization is served from a different region from the API host. Retry against that workspace's regional host.
Parámetros
audience_idstringID of the audience whose membership to read.
Carga de respuesta
membershipExact count of all audience members at the source evaluation instant, including contacts without email and unsubscribed contacts.
Mostrar atributos secundarios
membership.totalNumber of members at evaluation time.
membership.data_as_ofSource evaluation instant for the live count. Membership changes committed after the read began appear in a later response.
Recursos relacionados
Continúa con la documentación, guías y ejemplos de este tema.