---
title: "Get ClassMap Legend"
method: GET
path: "/data/legend/classmap/{classmapName}"
tags: ["Map Legends"]
---

# Get ClassMap Legend

`GET /data/legend/classmap/{classmapName}`

Generate values and color swatches mapping for a given classmap.

## Path parameters

- `classmapName` string, required

## Query parameters

- `api-version` string, required
- `trim_start` integer
- `trim_end` integer

## Response `200`

The request has succeeded.

- ClassMapLegendResponse — ClassMap legend response model.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/orbital-microsoft-planetarycomputer.md) · [All operations](https://skmtc.net/azure/apis/orbital-microsoft-planetarycomputer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/orbital-microsoft-planetarycomputer/versions/42447be18bc5/schema)
