Run an analytics query
Changed onCompute a metric over a filtered stream (traces, sessions, spans, scores, behaviors, moments), optionally broken down by a dimension and/or bucketed over time. Returns a tidy series — one point per breakdown value and/or time bucket — suitable for charts and reports.
Request
- Base URLhttps://api.latitude.so
- AuthHTTP bearer
Path parameters
Project slug (human-readable identifier)
Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.
Request body
Example request
{
"range": {
"fromIso": "2026-06-23T00:00:00Z",
"toIso": "2026-06-30T00:00:00Z"
}
}Response
The analytics series
Changes
- breaking
the
/request property type changed from no type toobject - warning
removed
subschema #2from the/request propertyallOflist
- breaking
- breaking
removed
subschema #1subschema #2subschema #3from the request bodyoneOflist - info
added
subschema #1subschema #2subschema #3to the request bodyoneOflist - info
added the optional property
//to the response with the status
- breaking