---
title: "Compare two cached versions"
method: GET
path: "/ui/api/compare/{ecosystem}/{name}/{fromVersion}/{toVersion}"
tags: ["browse"]
---

# Compare two cached versions

`GET /ui/api/compare/{ecosystem}/{name}/{fromVersion}/{toVersion}`

Returns a structured diff for two cached versions.

## Path parameters

- `ecosystem` string, required
- `name` string, required
- `fromVersion` string, required
- `toVersion` string, required

## Response `200`

OK

- object

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api.md) · [All operations](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/git-pkgs/git-pkgs-proxy-api/revisions/bef33406b6dc/schema)
