Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.25.5, which is no longer the latest release. See the latest release.

Get an archive of a repository

GET
/repos/{owner}/{repo}/archive/{archive}
curl --request GET \
--url https://gitea.com/api/v1/repos/example/example/archive/example \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

archive
required
string

The git reference for download with attached archive format (e.g. master.zip)

Success

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json