---
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

## Changes

- **2026-07-17** `bef33406b6dc` — 1 info
  - endpoint added
- **2026-03-11** `61ab3268f27d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api/changes/ui/api/compare/:ecosystem/:name/:fromVersion/:toVersion/get.md)

---

[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)
