Skip to content

Retrieve population statistics of segment

Request

Retrieve the population history of the segment. The history is returned per day and those days are calculated in the timezone of the audience. Note that funnel_stage kind doesn't have statistics via this endpoint.

Security
TdApikeyAuth
Path
audienceIdinteger, (int64)required

Audience ID of the segment

segmentIdinteger, (int64)required

ID of Segment to return

Query
fromstring, (date)

from date

Example:from=2019-01-01
tostring, (date)

to date (inclusive)

Example:to=2019-04-30
curl -i -X GET \
  'https://api-cdp.treasuredata.com/audiences/{audienceId}/segments/{segmentId}/statistics?from=2019-01-01&to=2019-04-30' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

array of tuple of statistics

Bodyapplication/json
Array [
One of:
integer (int64)
]
Response
[ [ 1556382847, 1234, true ] ]