Metrics
Query metrics (POST)
Changed onQuery one or more metrics by posting a JSON array of metric requests. The Metric API provides access to time series data for segments, streams, experiences, and other Lytics resources.
post/metric
Request
- Base URLhttps://api.lytics.io/v2
- URLhttps://api.lytics.io/v2/metric
- AuthAPI key in header Authorization
Query parameters
account_idstring
The account ID. Defaults to the user's default account.
Request body */*
Example request
[
{
"aggregation": "sum",
"dimension": "segment",
"dimension_id": "abc123",
"dimension_type": "size",
"end_date": "now",
"interval": "1d",
"range": "7d",
"start_date": "now-7d"
}
]Changes
- info
endpoint added
- info