---
title: "Get a count of files that changed since a commit"
method: GET
path: "/version/count"
tags: ["versioning"]
---

# Get a count of files that changed since a commit

`GET /version/count`

Get a count of the files that changed since a commit. Default is the latest commit (HEAD).

## Query parameters

- `commit` string

## Response `200`

The requested GitCountResult object in a single-item list.

- CountedGitCountResult
  - `count` integer, required — number of items present in the items array
  - `items` GitCountResult[], required — List of items in this response.
    - `count` integer, required — Number of files that changed since the specified commit.

## Other responses

- `401` — Authentication failed (missing or invalid credentials or Bearer token).
- `500` — Unexpected server error.

## Changes

- **2026-07-21** `e9bef570d106` — 6 info
  - added the media type `application/json` for the response with the status `401`
  - added the optional property `details` to the response with the `500` status
  - the response property `count` became required for the status `200`
  - the response property `items` became required for the status `200`
  - …2 more
- **2026-03-06** `11df16b26c1d` — 1 warning
  - deleted the `query` request parameter `groupId`
- **2026-01-24** `84748faee3ef` — 1 warning
  - deleted the `query` request parameter `ID`
  - …this revision’s changelog is incomplete
- **2026-01-19** `62472462b0c0` — 1 warning
  - deleted the `query` request parameter `commit`
  - …this revision’s changelog is incomplete
- **2026-01-19** `78a6165ee901` — 1 warning
  - deleted the `query` request parameter `ID`
  - …this revision’s changelog is incomplete

[Full history](https://skmtc.dev/criblio/apis/cribl-api-reference/changes/version/count/get.md)

---

[API](https://skmtc.dev/criblio/apis/cribl-api-reference.md) · [All operations](https://skmtc.dev/criblio/apis/cribl-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/criblio/cribl-api-reference/revisions/56cb25079271/schema)
