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

Get the tag of a repository by tag name

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

Owner of the repo

repo
required
string

Name of the repo

tag
required
string

Name of tag

Tag

Media typeapplication/json

Tag represents a repository tag

object
commit
CommitMeta contains meta information of a commit in terms of API.
object
created
string format: date-time
sha
string
url
string
id
string
message
string
name
string
tarball_url
string
zipball_url
string
Examplegenerated
{
"commit": {
"created": "2026-04-15T12:00:00Z",
"sha": "example",
"url": "example"
},
"id": "example",
"message": "example",
"name": "example",
"tarball_url": "example",
"zipball_url": "example"
}

APINotFound is a not found empty response

Media typeapplication/json