跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Get list of topics that a repository has

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

Owner of the repo

repo
required
string

Name of the repo

page
integer

Page number of results to return (1-based)

limit
integer

Page size of results

TopicNames

Media typeapplication/json

TopicName a list of repo topic names

object
topics

List of topic names

Array<string>
Examplegenerated
{
"topics": [
"example"
]
}

APINotFound is a not found empty response

Media typeapplication/json