---
title: "List commits"
method: GET
path: "/commits/{owner}/{repo}"
tags: ["commits"]
---

# List commits

`GET /commits/{owner}/{repo}`

Lists all commits for a repository with pagination support.
This endpoint supports both authenticated and unauthenticated access.
Authenticated users can access private repos, while unauthenticated users can only access public repos.
The include_stats parameter controls whether download and view statistics are computed (defaults to true).

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `include_stats` boolean
- `limit` integer
- `offset` integer
- `tag` string

## Response `200`

OK

- CommitsListCommitsResponse
  - `commits` CommitsCommitWithLookups[] — List of commits with lookup information
    - `commit_hash` string — The hash of the commit
    - `created_at` string, date-time — When the commit was created
    - `description` string — Optional human-readable description for the commit
    - `example_run_ids` string[] — Example run IDs associated with the commit
    - `full_name` string — Author's full name
    - `id` string, uuid — The commit ID
    - `manifest` object — The manifest of the commit
    - `manifest_sha` integer[] — The SHA of the manifest
    - `num_downloads` integer — Number of API downloads
    - `num_views` integer — Number of web views
    - `parent_commit_hash` string — The hash of the parent commit
    - `parent_id` string, uuid — The ID of the parent commit
    - `repo_id` string, uuid — Repository ID
    - `updated_at` string, date-time — When the commit was last updated
  - `total` integer — Total number of commits

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
