跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

search topics via keyword

GET
/topics/search
curl --request GET \
--url 'https://gitea.example.com/api/v1/topics/search?q=example' \
--header 'Authorization: Basic <credentials>'
q
required
string

Keywords to search

page
integer

Page number of results to return (1-based)

limit
integer

Page size of results

TopicListResponse

Media typeapplication/json
Array<object>

TopicResponse for returning topics

object
created
string format: date-time
id
integer format: int64
repo_count
integer format: int64
topic_name
string
updated
string format: date-time
Examplegenerated
[
{
"created": "2026-04-15T12:00:00Z",
"id": 1,
"repo_count": 1,
"topic_name": "example",
"updated": "2026-04-15T12:00:00Z"
}
]

APIForbiddenError is a forbidden error response

Media typeapplication/json
message
string
url
string

APINotFound is a not found empty response

Media typeapplication/json