Segments
Retrieve population statistics of segment
Changed onRetrieve 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.
get/audiences/{audienceId}/segments/{segmentId}/statistics
Request
- Base URLhttps://api-cdp.treasuredata.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
audienceIdinteger required
Audience ID of the segment
segmentIdinteger required
ID of Segment to return
Query parameters
fromstring date
Example:2019-01-01
from date
tostring date
Example:2019-04-30
to date (inclusive)
Response
array of tuple of statistics
Example response
[
[
1556382847,
1234,
true
]
]Changes
- info
api operation id
segments#statisticsremoved and replaced withsegments_statistics
- info