---
title: "Compare two revisions at the semantic level"
method: GET
path: "/styles/{id}/diff"
tags: ["cartography"]
---

# Compare two revisions at the semantic level

`GET /styles/{id}/diff`

## Request

- Base URL: `https://api.mapsource.io`
- URL: `https://api.mapsource.io/styles/{id}/diff`
- Auth: HTTP bearer

Compares profile revisions and returns changed semantic properties with previous and updated values.

When to use: Review property changes before applying a style revision.

When not to use: This endpoint compares semantic manifests, not compiled MapLibre documents.

## Path parameters

- `id` string, required

## Query parameters

- `from` integer
- `to` integer

## Response `200`

Compare two revisions at the semantic level

- object
  - `schema` string
  - `from` integer
  - `to` integer
  - `unchanged` boolean
  - `changes` unknown[]
    - unknown

## Other responses

- `400`: Error with a stable machine code.
- `401`: Error with a stable machine code.
- `429`: Error with a stable machine code.
- `500`: Error with a stable machine code.

---

[API](https://skmtc.dev/mapsource/apis/mapsource-overpass-api.md) · [All operations](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/revisions/8af8c2769e7b?raw)
