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

# Get compare rev

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

## Path parameters

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

## Query parameters

- `raw` string

## Response `200`

The diff between the two revisions

- string

## Changes

- **2026-09-08** `bd17546f47b8` — 1 breaking, 1 info
  - for the `query` request parameter `raw`, default value `false` was removed
  - for the `query` request parameter `raw`, the type was generalized from no type to `string`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/datasets/:namespace/:repo/compare/:compare/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/68387ea03846?raw)
