---
title: "Get information about a public repository (supports GitHub and GitLab)"
method: GET
path: "/git/public/{provider}/{owner}/{repo}"
tags: ["Public Repositories"]
---

# Get information about a public repository (supports GitHub and GitLab)

`GET /git/public/{provider}/{owner}/{repo}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/git/public/{provider}/{owner}/{repo}`
- Auth: none declared

## Path parameters

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

## Query parameters

- `base_url` string, nullable

## Response `200`

Repository information

- PublicRepositoryInfo: Public repository information
  - `default_branch` string, required: Default branch name
  - `description` string, nullable: Repository description
  - `forks` integer, required: Fork count
  - `full_name` string, required: Full repository name (owner/repo)
  - `language` string, nullable: Primary programming language
  - `name` string, required: Repository name
  - `owner` string, required: Repository owner
  - `stars` integer, required: Star count

## Other responses

- `400`: Provider not supported
- `401`: Authentication required for custom GitLab origins
- `403`: Git provider permission required
- `404`: Repository not found
- `429`: API rate limit exceeded
- `500`: Internal server error

## Changes

- **2026-09-07** `2a40922f832c`: 2 info
  - added the new optional `query` request parameter `base_url`
  - added the non-success response with the status `401`
- **2026-09-07** `38e97c3c35dd`: 1 info
  - added the non-success response with the status `403`
- **2026-09-07** `f7404eb7ac98`: 1 warning, 2 info
  - deleted the `query` request parameter `base_url`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
- **2026-08-30** `4bab5a6e64b5`: 2 info
  - added the new optional `query` request parameter `base_url`
  - added the non-success response with the status `401`
- **2026-08-11** `7493127fec25`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/git/public/:provider/:owner/:repo/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
