/v1/search
Search repositories
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/codeberg-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/codeberg-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/codeberg-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/codeberg-api/v1/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"sort": "stars",
"count": 20,
"query": "markdown",
"repos": [
{
"url": "https://codeberg.org/Recommendations/Mirror_to_Codeberg",
"name": "Mirror_to_Codeberg",
"forks": 5,
"owner": "Recommendations",
"stars": 155,
"created": "2022-12-30T02:57:44+01:00",
"is_fork": false,
"size_kb": 646,
"updated": "2024-12-03T05:29:22+01:00",
"language": "Markdown",
"watchers": 10,
"full_name": "Recommendations/Mirror_to_Codeberg",
"is_mirror": false,
"description": "A central place of information about mirroring repos to Codeberg #GiveUpGitHub",
"is_archived": false,
"open_issues": 10,
"default_branch": "main"
},
{
"url": "https://codeberg.org/swiso/website",
"name": "website",
"forks": 33,
"owner": "swiso",
"stars": 150,
"created": "2019-09-27T17:43:10+02:00",
"is_fork": false,
"size_kb": 12156,
"updated": "2026-03-15T17:58:22+01:00",
"language": "HTML",
"watchers": 14,
"full_name": "swiso/website",
"is_mirror": false,
"description": "Hugo-powered website of the \"switching.software\" project |",
"is_archived": false,
"open_issues": 113,
"default_branch": "main"
},
{
"url": "https://codeberg.org/blinry/threadcat",
"name": "threadcat",
"forks": 0,
"owner": "blinry",
"stars": 41,
"created": "2026-03-27T09:42:52+01:00",
"is_fork": false,
"size_kb": 394,
"updated": "2026-04-25T19:19:00+02:00",
"language": "Rust",
"watchers": 4,
"full_name": "blinry/threadcat",
"is_mirror": false,
"description": "Converts a Mastodon thread to Markdown, and downloads all contained media files.",
"is_archived": false,
"open_issues": 1,
"default_branch": "main"
},
{
"url": "https://codeberg.org/ukrudt.net/lichen-markdown",
"name": "lichen-markdown",
"forks": 3,
"owner": "ukrudt.net",
"stars": 29,
"created": "2023-02-06T20:18:53+01:00",
"is_fork": false,
"size_kb": 3587,
"updated": "2026-06-05T12:52:53+02:00",
"language": "PHP",
"watchers": 5,
"full_name": "ukrudt.net/
…