# Gogs Repositories API

**Canonical:** https://apis.io/apis/gogs/gogs-repositories-api/  
**Provider:** Gogs — https://apis.io/providers/gogs/  
**Base URL:** https://gogs.example.com/api/v1  
**Documentation:** https://gogs.io/api-reference/introduction

Gogs Repositories API is one of 10 APIs that [Gogs](https://apis.io/providers/gogs/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Repositories. The published artifact set on APIs.io includes an OpenAPI specification.

Create, search, and manage repositories, branches, commits, and contents

## Operations (23)

| Method | Path | Summary |
|---|---|---|
| GET | `/repos/search` | Search repositories |
| GET | `/user/repos` | List your repositories |
| POST | `/user/repos` | Create a repository |
| GET | `/users/{username}/repos` | List user repositories |
| GET | `/orgs/{orgname}/repos` | List organization repositories |
| POST | `/org/{org}/repos` | Create a repository in an organization |
| POST | `/repos/migrate` | Migrate a repository |
| GET | `/repos/{owner}/{repo}` | Get a repository |
| DELETE | `/repos/{owner}/{repo}` | Delete a repository |
| PATCH | `/repos/{owner}/{repo}/issue-tracker` | Edit issue tracker settings |
| POST | `/repos/{owner}/{repo}/mirror-sync` | Mirror sync |
| GET | `/repos/{owner}/{repo}/branches` | List branches |
| GET | `/repos/{owner}/{repo}/branches/{branch}` | Get a branch |
| GET | `/repos/{owner}/{repo}/commits/{sha}` | Get a single commit |
| GET | `/repos/{owner}/{repo}/raw/{ref}/{filepath}` | Download raw content |
| GET | `/repos/{owner}/{repo}/archive/{archive}` | Download archive |
| GET | `/repos/{owner}/{repo}/contents/{path}` | Get contents |
| PUT | `/repos/{owner}/{repo}/contents/{path}` | Create or update a file |
| GET | `/repos/{owner}/{repo}/forks` | List forks |
| GET | `/repos/{owner}/{repo}/tags` | List tags |
| GET | `/repos/{owner}/{repo}/commits` | List all commits |
| PATCH | `/repos/{owner}/{repo}/wiki` | Edit wiki settings |
| GET | `/repos/{owner}/{repo}/editorconfig/{filename}` | Get editorconfig definition |

## Machine-readable artifacts (1)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/gogs/refs/heads/main/openapi/gogs-repositories-api-openapi.yml

## Other Gogs APIs (9)

- [Gogs API](https://apis.io/apis/gogs/gogs-api/)
- [Gogs Administration API](https://apis.io/apis/gogs/gogs-administration-api/)
- [Gogs Collaborators and Deploy Keys API](https://apis.io/apis/gogs/gogs-collaborators-and-deploy-keys-api/)
- [Gogs Issues API](https://apis.io/apis/gogs/gogs-issues-api/)
- [Gogs Miscellaneous API](https://apis.io/apis/gogs/gogs-miscellaneous-api/)
- [Gogs Organizations API](https://apis.io/apis/gogs/gogs-organizations-api/)
- [Gogs Releases API](https://apis.io/apis/gogs/gogs-releases-api/)
- [Gogs Users API](https://apis.io/apis/gogs/gogs-users-api/)
- [Gogs Webhooks API](https://apis.io/apis/gogs/gogs-webhooks-api/)

## Tags

Repositories

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/gogs/gogs-repositories-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/gogs/.
