Skip to main content
All providers

Codeberg

DeveloperDE

codeberg.org

Codeberg is a non-profit, community-run Git host running Forgejo. Its Gitea-compatible API exposes public repositories, issues, releases, commits, users, organisation repositories and file contents.

Capabilities (8)

GET /v1/data/codeberg/commits1 credit

Returns the commit history of a repository, each with sha, message, author, committer and timestamp.

ownerrepolimit?page?sha?path?
GET /v1/data/codeberg/file-contents1 credit

Returns the metadata and base64 content of one file in a repository at a given ref, or a directory listing when the path is a directory.

ownerrepofilepathref?
GET /v1/data/codeberg/issues1 credit

Returns a repository's issues with number, title, state, author, labels, assignees and comment count.

ownerrepostate?limit?page?labels?type?
GET /v1/data/codeberg/org-repos1 credit

Returns the repositories owned by an organisation, each with its description, language, stars and last update.

orglimit?page?
GET /v1/data/codeberg/releases1 credit

Returns a repository's releases newest first, each with tag name, title, body, author, creation time and attached assets.

ownerrepolimit?page?
GET /v1/data/codeberg/repo-search1 credit

Searches public repositories and returns each match with full name, description, owner, language, star and fork counts, default branch and timestamps.

qlimit?page?sort?order?
GET /v1/data/codeberg/repository1 credit

Returns one repository's metadata: description, default branch, owner, stars, forks, watchers, open issue and pull request counts, topics and clone URLs.

ownerrepo
GET /v1/data/codeberg/user1 credit

Returns a Codeberg user's public profile: login, full name, bio, website, location, follower and following counts and join date.

username

Response example

The shape of data from codeberg/commits (Repository commits). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
[
  {
    "url": "https://codeberg.org/api/v1/repos/forgejo/forgejo/git/commits/1d9703c28a34dd8e35b37703cd4fa4d320da63d2",
    "sha": "1d9703c28a34dd8e35b37703cd4fa4d320da63d2",
    "created": "2026-10-23T13:34:38+02:00",
    "html_url": "https://codeberg.org/forgejo/forgejo/commit/1d9703c28a34dd8e35b37703cd4fa4d320da63d2",
    "commit": {
      "url": "https://codeberg.org/api/v1/repos/forgejo/forgejo/git/commits/1d9703c28a34dd8e35b37703cd4fa4d320da63d2",
      "author": {
        "name": "Mathieu Fenniak",
        "email": "mathieu@fenniak.net",
        "date": "2026-10-23T13:34:38+02:00"
      },
      "committer": {
        "name": "Andreas Ahlenstorf",
        "email": "aahlenst@noreply.codeberg.org",
        "date": "2026-10-23T13:34:38+02:00"
      },
      "message": "fix: when last step of an Action is skipped, post step logs aren't available (#14978)\n\nFixes https://code.forgejo.org/forgejo/runner/issues/1772.\n\nOnly the \"success\" and \"failure\" statuses were taken into account for when to start grouping together remaining logs into the \"Completed job\" logs.  This adds the skipped status for consideration, and handles the fact that skipped jobs don't have an appropriate timestamp so the last run job is still used for that.\n\n### Compliance\n\n- [x] I confirm that I make this contribution in accordance with [Forgejo's AI Agreement](https://codeberg.org/forgejo/governance/src/commit/9084720dc6a7fbf1d3f358919d46bd6adfb55287/AIAgreement.md).\n\n### Tests for Go changes\n\n- I added test coverage for Go changes...\n  - [x] in their respective `*_test.go` for unit tests.\n  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.\n- I ran...\n  - [x] `make pr-go` before pushing\n\n### Documentation\n\n- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.\n- [x] I did not document these changes and I do not expect someone else to do it.\n\n### Release notes\n\n- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.\n- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.\n\n<!--start release-notes-assistant-->\n\n## Release notes\n<!--URL:https://codeberg.org/forgejo/forgejo-->\n- Bug fixes\n  - [PR](https://codeberg.org/forgejo/forgejo/pulls/14978): <!--number 14978 --><!--line 0 --><!--description d2hlbiBsYXN0IHN0ZXAgb2YgYW4gQWN0aW9uIGlzIHNraXBwZWQsIHBvc3Qgc3RlcCBsb2dzIGFyZW4ndCBhdmFpbGFibGU=-->when last step of an Action is skipped, post step logs aren't available<!--description-->\n<!--end release-notes-assistant-->\n\nReviewed-on: https:…",
      "tree": {
        "url": "https://codeberg.org/api/v1/repos/forgejo/forgejo/git/trees/1d9703c28a34dd8e35b37703cd4fa4d320da63d2",
        "sha": "1d9703c28a34dd8e35b37703cd4fa4d320da63d2",
        "created": "2026-10-23T13:34:38+02:00"
      },
      "verification": {
        "verified": false,
        "reason": "gpg.error.not_signed_commit",
        "signature": "",
        "signer": null,
        "payload": ""
      }
    },
    "author": {
      "id": 222642,
      "login": "mfenniak",
      "login_name": "",
      "source_id": 0,
      "full_name": "Mathieu Fenniak",
      "email": "mfenniak@noreply.codeberg.org",
      "avatar_url": "https://codeberg.org/avatars/561ee781e72bbbfd2865db7b4ba4fbf50f64da3d3cb0f4e1897b6da25224a2a7",
      "html_url": "https://codeberg.org/mfenniak",
      "language": "",
      "is_admin": false,
      "last_login": "0001-01-01T00:00:00Z",
      "created": "2024-10-16T15:50:37+02:00",
      "restricted": false,
      "active": false,
      "prohibit_login": false,
      "location": "Calgary, Alberta, Canada",
      "pronouns": "he/him",
      "website": "https://mathieu.fenniak.net/",
      "description": "Open 

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Repository commits

    Use Codeberg (codeberg) from fastCRW Pergamon, capability "Repository commits" (commits). You want to see what changed recently in a repository. Example options: owner=forgejo, repo=forgejo, limit=10. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "codeberg" and capability "commits". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • File contents

    Use Codeberg (codeberg) from fastCRW Pergamon, capability "File contents" (file-contents). You need the actual text of a file rather than the repository's metadata. Example options: owner=forgejo, repo=forgejo, filepath=README.md. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "codeberg" and capability "file-contents". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Repository issues

    Use Codeberg (codeberg) from fastCRW Pergamon, capability "Repository issues" (issues). You are tracking open bugs or feature requests in a repository. Example options: owner=forgejo, repo=forgejo, state=open. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "codeberg" and capability "issues". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Organisation repositories

    Use Codeberg (codeberg) from fastCRW Pergamon, capability "Organisation repositories" (org-repos). You want everything a project organisation publishes rather than a keyword search. Example options: org=forgejo, limit=10, page=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "codeberg" and capability "org-repos". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

Codeberg does not license the API output itself; it requires every public repository to carry a free licence and says so in its Terms of Use: "§ 2 Allowed Content & Usage (1) By using Codeberg, you agree to adhere to the following rules when posting content (like repository contents, wiki articles, issue comments, etc.): 1. Public repository content shall be made available under a copyright licence which gives all natural and legal persons the following rights in the content: - the right to use the content for any purpose, including both commercial and non-commercial purposes; - the right to make unlimited copies of the content and redistribute those copies to others, with or without charge; - the right to examine the content and determine how it works and/or how it was made; - the right to make their own modifications to the content, to use the content with those modifications privately; - and the right to redistribute copies of the content which include their own modifications, with or without charge. Copyright licences of this kind are referred to as 'licences for free and open source software, free and open source hardware, or free cultural works.'" The Terms also exclude Non-Commercial and No-Derivatives Creative Commons licences from that requirement. Repository metadata (stars, counts, timestamps) is factual and carries no separate grant. Because public repository content is required to permit commercial use and redistribution, both are recorded true; the licence of any individual repository governs that repository's content and is reported by the API.

https://codeberg.org/codeberg/org/src/branch/main/TermsOfUse.md

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Codeberg e.V. (codeberg.org). Repository content is contributed by its authors and licensed per repository; check the repository's own licence before reuse.

Cache: up to 3600s