---
title: "Get a list of facets of a span analytics query."
method: GET
path: "/v1/tracing/spanquery/{queryId}/rows/{rowId}/facets"
tags: ["spanAnalytics"]
---

# Get a list of facets of a span analytics query.

`GET /v1/tracing/spanquery/{queryId}/rows/{rowId}/facets`

Get a list of facets of a span analytics query with the specified id.

## Path parameters

- `queryId` string, required
- `rowId` string, required

## Response `200`

The list of facets from the executed query.

- SpanQueryResultFacetsResponse
  - `facets` SpanQueryRowFacet[], required — List of facets.
    - `name` string, required — Name of the field facet.
    - `cardinality` integer, required — The number of unique values this field occured.
    - `dataType` string, required — Data type of the field.
    - `inSchema` boolean — Indicates whether the field is available in the span schema.
    - `valueFrequency` object — Map of field value frequencies.

## 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)
