---
title: "Api Get Commits"
method: GET
path: "/api/v1/{country}/laws/{law_id}/commits"
tags: ["api"]
---

# Api Get Commits

`GET /api/v1/{country}/laws/{law_id}/commits`

## Request

- Base URL: `https://legalize.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://legalize.dev/api/v1/{country}/laws/{law_id}/commits`
- Auth: API key in header `Authorization`

Get the git commit history of a law. Each commit represents a version change.

## Path parameters

- `country` string, required
- `law_id` string, required

## Response `200`

Successful Response

- CommitsResponse
  - `law_id` string, required
  - `commits` Commit[], required
    - `sha` string, required
    - `date` string, required
    - `message` string, required

## Other responses

- `401`: Missing, malformed, or invalid API key
- `422`: Validation Error
- `429`: Monthly quota exceeded. Includes Retry-After header.

---

[API](https://skmtc.dev/legalize/apis/legalize-api.md) · [All operations](https://skmtc.dev/legalize/apis/legalize-api/llms.txt) · [OpenAPI document](https://skmtc.dev/legalize/apis/legalize-api/revisions/305b67a14660?raw)
