---
title: "Get span analytics query aggregated results."
method: GET
path: "/v1/tracing/spanquery/{queryId}/aggregates"
tags: ["spanAnalytics"]
---

# Get span analytics query aggregated results.

`GET /v1/tracing/spanquery/{queryId}/aggregates`

Get span aggregation results for an aggregated span analytics query with the specified id. Only aggregated rows being part of the executed query will have matching results in the response of this endpoint.

## Path parameters

- `queryId` string, required

## Response `200`

The aggregation result of the executed query.

- SpanQueryAggregateResponse
  - `result` SpanQueryAggregateResult, required
    - `status` string, required — Status of the query. Possible values: `Processing`, `Finished`, `Error`, `Paused`.
    - `statusMessage` string — Descriptive message of the status
    - `series` SpanQueryAggregateDataSeries[], required — The series returned from a search.
      - `queryId` string, required — The id of the query.
      - `name` string, required — The meaning of 'name' depends on the series type. - For results of type 'timeseries', it is the value of the x axis 'field' key. - For results of type 'nontimeseries', it is the name of one of the fields that is not part of 'xAxisKeys'. - For results of type 'table', it is the comma-separated string of names of all fields.
      - `dataPoints` SpanQueryAggregatePointData[], required — A list of data points in the series.
        - `x` number, double — Value that represents a point on the x axis.
        - `y` string, required — Value that represents a point on the y axis.
        - `xAxisValues` object — Values that represents a point on the x axis.
      - `aggregateInfo` SpanQueryAggregateAggregateData
        - `max` number, double, required — The maximum value in the series.
        - `min` number, double, required — The minimum value in the series.
        - `avg` number, double, required — The average value in the series.
        - `sum` number, double, required — The sum of all the values in the series.
        - `latest` number, double, required — The last value in the series.
        - `count` number, double — The number of values in the series.
      - `metaData` SpanQueryAggregateMetaData
        - `data` object, required — The value of the metadata.
      - `seriesType` string — Type of the visual series.
      - `xAxisKeys` string[] — Keys that will be plotted as a point on the x axis.
      - `valueType` string — Type of the values in the series.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/versions/18a824df1e78/schema)
