v2
latestOpenAPI 3.1.12026-07-2613060964.2 KBDry-run a segment query (count only)
Return the total number of users a Segment List SQL query would match, without returning the rows. Use this when you only need to size the audience.
post/v1/subscriber_list/~/dry_run/count/
Request body
Example request
{
"query_text": "SELECT distinct_id FROM users WHERE user_properties ->> 'plan' = 'enterprise'"
}Response
200
Example response
{
"count": 4812
}