---
title: "GET /github/repository/compare/patch"
method: GET
path: "/github/repository/compare/patch"
tags: ["Github"]
---

# GET /github/repository/compare/patch

`GET /github/repository/compare/patch`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/github/repository/compare/patch`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `owner` string, required
- `repo` string, required
- `base` string, required
- `head` string, required

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: GitHub has no public resource at that address. For a repository this also covers a private or renamed repository, which is indistinguishable anonymously.
- `406`: GitHub has no JSON representation for this route, or rejected the request headers. Never charged.
- `422`: A parameter failed validation.
- `500`: GitHub returned a response shape this parser does not recognise. The incident has been reported; retrying will return the same result.
- `503`: The upstream service is temporarily unavailable. Please retry shortly.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/1e1aa78ff103?raw)
