Skip to content

Codeberg API

22 endpointsDeveloper & TechGlobalsocial:read19 real examples

Returns public Codeberg repositories, users, organizations, releases and issues, including repository search.

View as Markdown
GET/codeberg/searchPublic Codeberg repositories matching a search.
GET/codeberg/repoOne public Codeberg repository by owner and name.
GET/codeberg/userOne public Codeberg user or organization by login name.
GET/codeberg/releasesReleases of one public Codeberg repository, newest first, 30 per page.
GET/codeberg/latestReleaseThe latest published release of one Codeberg repository.
GET/codeberg/issuesIssues of one public Codeberg repository, newest first, 30 per page. Pull requests are left out.
GET/codeberg/issueOne issue or pull request of a Codeberg repository by its number, with its body.
GET/codeberg/pullsPull requests of one public Codeberg repository, newest first, 30 per page.
GET/codeberg/commitsCommits of one public Codeberg repository from a branch, tag or sha (default branch when empty), newest first, 30 per page.
GET/codeberg/commitOne git commit of a public Codeberg repository by its full sha, with its message and author.
GET/codeberg/tagsGit tags of one public Codeberg repository, 30 per page.
GET/codeberg/branchesBranches of one public Codeberg repository with the commit each one points to, 30 per page.
GET/codeberg/languagesLanguages of one public Codeberg repository with the bytes of code in each, largest first.
GET/codeberg/topicsTopics that the owner of one public Codeberg repository set on it.
GET/codeberg/contentsEntries of one folder of a public Codeberg repository, or the entry of one file, without its content. An empty path is the root.
GET/codeberg/fileOne text file of a public Codeberg repository at a branch, tag or sha (default branch when empty), with its content decoded.
GET/codeberg/userReposPublic repositories of one Codeberg user, 30 per page.
GET/codeberg/orgReposPublic repositories of one Codeberg organization, 30 per page.
GET/codeberg/searchUsersUsers and organizations of Codeberg whose login or name matches a search, 30 per page.
GET/codeberg/issueCommentsComments of one issue or pull request of a public Codeberg repository, 30 per page.
GET/codeberg/stargazersUsers who starred one public Codeberg repository, 30 per page.
GET/codeberg/forksForks of one public Codeberg repository, 30 per page.

repo

GET/v1/codeberg/repo

One public Codeberg repository by owner and name.

scope social:read1 unitcached 10 min

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
archivedboolean
descriptionstring
forksinteger (int64)
fullNamestring
idstring
languagestring
namestring
ownerstring
starsinteger (int64)
topicsTopic[]
namestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/repo?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "archived": false,
    "description": "Beyond coding. We forge.",
    "forks": 1026,
    "fullName": "forgejo/forgejo",
    "id": "73144",
    "language": "Go",
    "name": "forgejo",
    "owner": "forgejo",
    "stars": 5791,
    "topics": [
      {
        "name": "forge"
      },
      {
        "name": "forgejo"
      }
    ],
    "updatedAt": "2026-11-06T17:27:18Z",
    "url": "https://codeberg.org/forgejo/forgejo"
  },
  "meta": {
    "cached": false,
    "endpoint": "repo",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

user

GET/v1/codeberg/user

One public Codeberg user or organization by login name.

scope social:read1 unitcached 1 h

Parameters

username
string
required
Login name, such as forgejo.
e.g. forgejo
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
avatarUrlstring
createdAtstring
descriptionstring
followersinteger (int64)
followinginteger (int64)
fullNamestring
idstring
locationstring
loginstring
urlstring
websitestring
curl "https://api.hoshime.com/v1/codeberg/user?username=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "avatarUrl": "https://codeberg.org/avatars/dae8ab126a96f6fbd6942cf08ab92382",
    "createdAt": "2022-11-06T06:18:11Z",
    "description": "Beyond coding. We forge.",
    "followers": 643,
    "following": 0,
    "fullName": "Forgejo",
    "id": "70422",
    "location": "",
    "login": "forgejo",
    "url": "https://codeberg.org/forgejo",
    "website": "https://forgejo.org"
  },
  "meta": {
    "cached": false,
    "endpoint": "user",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

releases

GET/v1/codeberg/releases

Releases of one public Codeberg repository, newest first, 30 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
assetCountinteger (int64)
authorstring
draftboolean
idstring
namestring
prereleaseboolean
publishedAtstring
tagNamestring
urlstring
curl "https://api.hoshime.com/v1/codeberg/releases?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "assetCount": 21,
      "author": "release-team",
      "draft": false,
      "id": "13216583",
      "name": "v17.0.1",
      "prerelease": false,
      "publishedAt": "2026-10-26T18:39:32Z",
      "tagName": "v17.0.1",
      "url": "https://codeberg.org/forgejo/forgejo/releases/tag/v17.0.1"
    },
    {
      "assetCount": 21,
      "author": "release-team",
      "draft": false,
      "id": "13216526",
      "name": "v16.0.7",
      "prerelease": false,
      "publishedAt": "2026-10-26T18:36:30Z",
      "tagName": "v16.0.7",
      "url": "https://codeberg.org/forgejo/forgejo/releases/tag/v16.0.7"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "releases",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

latestRelease

GET/v1/codeberg/latestRelease

The latest published release of one Codeberg repository.

scope social:read1 unitcached 10 min

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
assetCountinteger (int64)
authorstring
draftboolean
idstring
namestring
prereleaseboolean
publishedAtstring
tagNamestring
urlstring
curl "https://api.hoshime.com/v1/codeberg/latestRelease?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "assetCount": 21,
    "author": "release-team",
    "draft": false,
    "id": "13216583",
    "name": "v17.0.1",
    "prerelease": false,
    "publishedAt": "2026-10-26T18:39:32Z",
    "tagName": "v17.0.1",
    "url": "https://codeberg.org/forgejo/forgejo/releases/tag/v17.0.1"
  },
  "meta": {
    "cached": false,
    "endpoint": "latestRelease",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

issues

GET/v1/codeberg/issues

Issues of one public Codeberg repository, newest first, 30 per page. Pull requests are left out.

scope social:read1 unitcached 5 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
state
string
open, closed or all. Default open.
openclosedall
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
authorstring
closedAtstring
commentsinteger (int64)
createdAtstring
idstring
labelsLabel[]
namestring
numberinteger (int64)
statestring
titlestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/issues?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": "froz42",
      "closedAt": "",
      "comments": 0,
      "createdAt": "2026-11-06T17:13:24Z",
      "id": "8085327",
      "labels": [
        {
          "name": "bug/new-report"
        }
      ],
      "number": 15169,
      "state": "open",
      "title": "bug: web editor ignores unprotected file patterns on protected branches",
      "updatedAt": "2026-11-06T17:13:24Z",
      "url": "https://codeberg.org/forgejo/forgejo/issues/15169"
    },
    {
      "author": "wimgodden",
      "closedAt": "",
      "comments": 0,
      "createdAt": "2026-11-06T14:48:52Z",
      "id": "8084001",
      "labels": [
        {
          "name": "enhancement/feature"
        }
      ],
      "number": 15166,
      "state": "open",
      "title": "enh: Listing all tasks for runners (both pending, active and past)",
      "updatedAt": "2026-11-06T14:55:54Z",
      "url": "https://codeberg.org/forgejo/forgejo/issues/15166"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "issues",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

issue

GET/v1/codeberg/issue

One issue or pull request of a Codeberg repository by its number, with its body.

scope social:read1 unitcached 5 min

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
number
integer
required
Issue number inside the repository.
e.g. 1
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
authorstring
bodystring
closedAtstring
commentsinteger (int64)
createdAtstring
idstring
labelsLabel[]
namestring
numberinteger (int64)
statestring
titlestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/issue?owner=forgejo&repo=forgejo&number=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "author": "Ghost",
    "body": "https://ci.codeberg.org/codename/codename/settings\n\n- [x] enable codename/codename\n- [x] set the timeout to 2h (because [one hour is not eno…",
    "closedAt": "2022-11-06T06:54:05Z",
    "comments": 0,
    "createdAt": "2022-11-06T06:52:29Z",
    "id": "198917",
    "labels": [],
    "number": 1,
    "state": "closed",
    "title": "Configure Woodpecker",
    "updatedAt": "2026-10-29T13:14:33Z",
    "url": "https://codeberg.org/forgejo/forgejo/issues/1"
  },
  "meta": {
    "cached": false,
    "endpoint": "issue",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

pulls

GET/v1/codeberg/pulls

Pull requests of one public Codeberg repository, newest first, 30 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
state
string
open, closed or all. Default open.
openclosedall
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
authorstring
basestring
createdAtstring
draftboolean
headstring
idstring
mergedboolean
mergedAtstring
numberinteger (int64)
statestring
titlestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/pulls?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": "zoe",
      "base": "forgejo",
      "createdAt": "2026-11-06T17:03:17Z",
      "draft": false,
      "head": "zoe/fj-mermaid",
      "id": "3592680",
      "merged": false,
      "mergedAt": "",
      "number": 15168,
      "state": "open",
      "title": "Update Mermaid, closes #11367",
      "updatedAt": "2026-11-06T17:43:35Z",
      "url": "https://codeberg.org/forgejo/forgejo/pulls/15168"
    },
    {
      "author": "mfenniak",
      "base": "forgejo",
      "createdAt": "2026-11-06T16:56:31Z",
      "draft": false,
      "head": "perf-catfile-notexist",
      "id": "3592656",
      "merged": false,
      "mergedAt": "",
      "number": 15167,
      "state": "open",
      "title": "perf: do not terminate CatFileBatch[Check] subprocess on git.ErrNotExist errors",
      "updatedAt": "2026-11-06T16:57:27Z",
      "url": "https://codeberg.org/forgejo/forgejo/pulls/15167"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "pulls",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

commits

GET/v1/codeberg/commits

Commits of one public Codeberg repository from a branch, tag or sha (default branch when empty), newest first, 30 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
sha
string
Branch, tag or commit sha to list from. Default branch when omitted.
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
authorLoginstring
authorNamestring
committedAtstring
messagestring
shastring
urlstring
curl "https://api.hoshime.com/v1/codeberg/commits?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "authorLogin": "viceice-bot",
      "authorName": "Renovate Bot",
      "committedAt": "2026-11-06T17:17:15Z",
      "message": "Update github.com/sourcegraph/zoekt digest to c4d8f35 (forgejo) (#13831)\n\nCo-authored-by: Mathieu Fenniak <mathieu@fenniak.net>\nReviewed-on:…",
      "sha": "4d27873247907dcb5eb95f25dc4718a03ff2dad2",
      "url": "https://codeberg.org/forgejo/forgejo/commit/4d27873247907dcb5eb95f25dc4718a03ff2dad2"
    },
    {
      "authorLogin": "crystal",
      "authorName": "crystal",
      "committedAt": "2026-11-06T09:52:17Z",
      "message": "fix: preserve git-pages site url on validation error (#15102)\n\nPrevents the site url field from being cleared when the page reloads if\nthere…",
      "sha": "65aad84c575533f27e255124533dba29ff593cee",
      "url": "https://codeberg.org/forgejo/forgejo/commit/65aad84c575533f27e255124533dba29ff593cee"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "commits",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

commit

GET/v1/codeberg/commit

One git commit of a public Codeberg repository by its full sha, with its message and author.

scope social:read1 unitcached 24 h

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
sha
string
required
Commit sha, 4 to 40 hex digits.
e.g. HEAD
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
authorLoginstring
authorNamestring
committedAtstring
messagestring
shastring
urlstring
curl "https://api.hoshime.com/v1/codeberg/commit?owner=forgejo&repo=forgejo&sha=HEAD" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "authorLogin": "viceice-bot",
    "authorName": "Renovate Bot",
    "committedAt": "2026-11-06T17:17:15Z",
    "message": "Update github.com/sourcegraph/zoekt digest to c4d8f35 (forgejo) (#13831)\n\nCo-authored-by: Mathieu Fenniak <mathieu@fenniak.net>\nReviewed-on:…",
    "sha": "4d27873247907dcb5eb95f25dc4718a03ff2dad2",
    "url": "https://codeberg.org/forgejo/forgejo/commit/4d27873247907dcb5eb95f25dc4718a03ff2dad2"
  },
  "meta": {
    "cached": false,
    "endpoint": "commit",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

tags

GET/v1/codeberg/tags

Git tags of one public Codeberg repository, 30 per page.

scope social:read1 unitcached 30 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
commitShastring
createdAtstring
messagestring
namestring
curl "https://api.hoshime.com/v1/codeberg/tags?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "commitSha": "363f3dc30beef902b187af5a5244ff7af44901e6",
      "createdAt": "2026-10-26T14:25:55Z",
      "message": "[v17.0/forgejo] ci: only run current forgejo version end-to-end tests (#15040)\n\n**Backport:** https://codeberg.org/forgejo/forgejo/pulls/150…",
      "name": "v17.0.1"
    },
    {
      "commitSha": "44861ff4ed2bdcbf2607d250600203a75ed94c59",
      "createdAt": "2026-10-26T13:57:27Z",
      "message": "[v16.0/forgejo] ci: only run current forgejo version end-to-end tests (#15039)\n\n**Backport:** https://codeberg.org/forgejo/forgejo/pulls/150…",
      "name": "v16.0.7"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "tags",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

branches

GET/v1/codeberg/branches

Branches of one public Codeberg repository with the commit each one points to, 30 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
commitShastring
namestring
protectedboolean
curl "https://api.hoshime.com/v1/codeberg/branches?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "commitSha": "541ffe540bb83043f764d68e295235a77b293d2a",
      "name": "renovate/forgejo-github.com-redis-go-redis-v9-9.x",
      "protected": false
    },
    {
      "commitSha": "3426d26f922c6fbae60471cfbc5209151c974818",
      "name": "renovate/forgejo-github.com-prometheus-client_golang-1.x",
      "protected": false
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "branches",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

languages

GET/v1/codeberg/languages

Languages of one public Codeberg repository with the bytes of code in each, largest first.

scope social:read1 unitcached 1 hpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

2 fields
bytesinteger (int64)
namestring
curl "https://api.hoshime.com/v1/codeberg/languages?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "bytes": 18565900,
      "name": "Go"
    },
    {
      "bytes": 2362461,
      "name": "go-html-template"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "languages",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

topics

GET/v1/codeberg/topics

Topics that the owner of one public Codeberg repository set on it.

scope social:read1 unitcached 1 hpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

1 fields
namestring
curl "https://api.hoshime.com/v1/codeberg/topics?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "forge"
    },
    {
      "name": "forgejo"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "topics",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

contents

GET/v1/codeberg/contents

Entries of one folder of a public Codeberg repository, or the entry of one file, without its content. An empty path is the root.

scope social:read1 unitcached 10 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
path
string
Path inside the repository, such as docs or README.md. Empty for the root.
e.g. README.md
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
downloadUrlstring
namestring
pathstring
shastring
sizeinteger (int64)
typestring
urlstring
curl "https://api.hoshime.com/v1/codeberg/contents?owner=forgejo&repo=forgejo&path=README.md" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "downloadUrl": "https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/README.md",
      "name": "README.md",
      "path": "README.md",
      "sha": "e6f1b6c3d1bf880d606379609238c57fe60016db",
      "size": 2790,
      "type": "file",
      "url": "https://codeberg.org/forgejo/forgejo/src/branch/forgejo/README.md"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "contents",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

file

GET/v1/codeberg/file

One text file of a public Codeberg repository at a branch, tag or sha (default branch when empty), with its content decoded.

scope social:read1 unitcached 10 min

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
path
string
required
Path of the file inside the repository, such as README.md.
e.g. README.md
ref
string
Branch, tag or sha. Default branch when omitted.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
contentstring
downloadUrlstring
namestring
pathstring
shastring
sizeinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/codeberg/file?owner=forgejo&repo=forgejo&path=README.md" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "content": "<div align=\"center\">\n    <img src=\"./assets/logo.svg\" alt=\"\" width=\"192\" align=\"center\" />\n    <h1 align=\"center\">Welcome to Forgejo</h1>\n</…",
    "downloadUrl": "https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/README.md",
    "name": "README.md",
    "path": "README.md",
    "sha": "e6f1b6c3d1bf880d606379609238c57fe60016db",
    "size": 2790,
    "url": "https://codeberg.org/forgejo/forgejo/src/branch/forgejo/README.md"
  },
  "meta": {
    "cached": false,
    "endpoint": "file",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

userRepos

GET/v1/codeberg/userRepos

Public repositories of one Codeberg user, 30 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

username
string
required
Login name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
archivedboolean
descriptionstring
forksinteger (int64)
fullNamestring
idstring
languagestring
namestring
ownerstring
starsinteger (int64)
topicsTopic[]
namestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/userRepos?username=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "archived": true,
      "description": "An Open Letter from the Gitea Community to the Project Owners.",
      "forks": 28,
      "fullName": "forgejo/gitea-open-letter",
      "id": "70845",
      "language": "Shell",
      "name": "gitea-open-letter",
      "owner": "forgejo",
      "stars": 16,
      "topics": [
        {
          "name": "gitea"
        },
        {
          "name": "community"
        }
      ],
      "updatedAt": "2025-04-17T22:08:20Z",
      "url": "https://codeberg.org/forgejo/gitea-open-letter"
    },
    {
      "archived": false,
      "description": "Beyond coding. We forge.",
      "forks": 1026,
      "fullName": "forgejo/forgejo",
      "id": "73144",
      "language": "Go",
      "name": "forgejo",
      "owner": "forgejo",
      "stars": 5791,
      "topics": [
        {
          "name": "forge"
        },
        {
          "name": "forgejo"
        }
      ],
      "updatedAt": "2026-11-06T17:27:18Z",
      "url": "https://codeberg.org/forgejo/forgejo"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "userRepos",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

orgRepos

GET/v1/codeberg/orgRepos

Public repositories of one Codeberg organization, 30 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

org
string
required
Organization name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
archivedboolean
descriptionstring
forksinteger (int64)
fullNamestring
idstring
languagestring
namestring
ownerstring
starsinteger (int64)
topicsTopic[]
namestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/orgRepos?org=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "archived": true,
      "description": "An Open Letter from the Gitea Community to the Project Owners.",
      "forks": 28,
      "fullName": "forgejo/gitea-open-letter",
      "id": "70845",
      "language": "Shell",
      "name": "gitea-open-letter",
      "owner": "forgejo",
      "stars": 16,
      "topics": [
        {
          "name": "gitea"
        },
        {
          "name": "community"
        }
      ],
      "updatedAt": "2025-04-17T22:08:20Z",
      "url": "https://codeberg.org/forgejo/gitea-open-letter"
    },
    {
      "archived": false,
      "description": "Beyond coding. We forge.",
      "forks": 1026,
      "fullName": "forgejo/forgejo",
      "id": "73144",
      "language": "Go",
      "name": "forgejo",
      "owner": "forgejo",
      "stars": 5791,
      "topics": [
        {
          "name": "forge"
        },
        {
          "name": "forgejo"
        }
      ],
      "updatedAt": "2026-11-06T17:27:18Z",
      "url": "https://codeberg.org/forgejo/forgejo"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "orgRepos",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

searchUsers

GET/v1/codeberg/searchUsers

Users and organizations of Codeberg whose login or name matches a search, 30 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

query
string
required
Words to search for, such as forgejo.
e.g. forgejo
limit
integer
Items per page, 1 to 50.
default 10
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
avatarUrlstring
createdAtstring
descriptionstring
followersinteger (int64)
followinginteger (int64)
fullNamestring
idstring
locationstring
loginstring
urlstring
websitestring
curl "https://api.hoshime.com/v1/codeberg/searchUsers?query=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "avatarUrl": "https://codeberg.org/avatars/d614f39bf9ae34d311329addcd6bade06bfd691751f87e7abe4e541536023ac3",
      "createdAt": "2026-01-08T20:02:42Z",
      "description": "",
      "followers": 0,
      "following": 0,
      "fullName": "",
      "id": "769010",
      "location": "",
      "login": "0xllx0-forgejo",
      "url": "https://codeberg.org/0xllx0-forgejo",
      "website": ""
    },
    {
      "avatarUrl": "https://codeberg.org/avatars/7669cae8dbe09a10a1022375088c7da6",
      "createdAt": "2025-06-02T12:11:48Z",
      "description": "",
      "followers": 0,
      "following": 0,
      "fullName": "",
      "id": "378897",
      "location": "",
      "login": "enthusiastic-forgejo-and-docs-user",
      "url": "https://codeberg.org/enthusiastic-forgejo-and-docs-user",
      "website": ""
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "searchUsers",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

issueComments

GET/v1/codeberg/issueComments

Comments of one issue or pull request of a public Codeberg repository, 30 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
number
integer
required
Issue or pull request number inside the repository.
e.g. 15166
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
createdAtstring
idstring
likeCountinteger (int64)
replyCountinteger (int64)
textstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/issueComments?owner=forgejo&repo=forgejo&number=15166" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "author": {
        "avatarUrl": "https://…",
        "id": "abc123",
        "name": "…",
        "url": "https://…",
        "username": "…"
      },
      "createdAt": "2026-11-06T09:41:00Z",
      "id": "abc123",
      "likeCount": 1280,
      "replyCount": 1280,
      "text": "…",
      "url": "https://…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "issueComments",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

stargazers

GET/v1/codeberg/stargazers

Users who starred one public Codeberg repository, 30 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
avatarUrlstring
createdAtstring
descriptionstring
followersinteger (int64)
followinginteger (int64)
fullNamestring
idstring
locationstring
loginstring
urlstring
websitestring
curl "https://api.hoshime.com/v1/codeberg/stargazers?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "avatarUrl": "https://…",
      "createdAt": "2026-11-06T09:41:00Z",
      "description": "…",
      "followers": 0,
      "following": 0,
      "fullName": "…",
      "id": "abc123",
      "location": "…",
      "login": "…",
      "url": "https://…",
      "website": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "stargazers",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

forks

GET/v1/codeberg/forks

Forks of one public Codeberg repository, 30 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

owner
string
required
Owner name, such as forgejo.
e.g. forgejo
repo
string
required
Repository name, such as forgejo.
e.g. forgejo
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
archivedboolean
descriptionstring
forksinteger (int64)
fullNamestring
idstring
languagestring
namestring
ownerstring
starsinteger (int64)
topicsTopic[]
namestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/codeberg/forks?owner=forgejo&repo=forgejo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "archived": false,
      "description": "…",
      "forks": 0,
      "fullName": "…",
      "id": "abc123",
      "language": "…",
      "name": "…",
      "owner": "…",
      "stars": 0,
      "topics": [
        {
          "name": null
        }
      ],
      "updatedAt": "2026-11-06T09:41:00Z",
      "url": "https://…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "forks",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "codeberg",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open