---
title: "Get a compare rev"
method: GET
path: "/api/spaces/{namespace}/{repo}/compare/{compare}"
tags: ["spaces"]
---

# Get a compare rev

`GET /api/spaces/{namespace}/{repo}/compare/{compare}`

## Path parameters

- `namespace` string, required
- `repo` string, required
- `compare` string, required

## Query parameters

- `raw` boolean

## Response `200`

The diff between the two revisions

- string

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/6ab9f7d9cfb5/schema)
