# Codeberg API

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

Category: Developer & Tech. Region: global. 22 endpoints at `https://api.hoshime.com/v1/codeberg/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/codeberg
## GET /v1/codeberg/search

Public Codeberg repositories matching a search.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as forgejo. (e.g. forgejo) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `archived` (boolean), `description` (string), `forks` (integer (int64)), `fullName` (string), `id` (string), `language` (string), `name` (string), `owner` (string), `stars` (integer (int64)), `topics` (Topic[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/search?query=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/repo

One public Codeberg repository by owner and name.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `archived` (boolean), `description` (string), `forks` (integer (int64)), `fullName` (string), `id` (string), `language` (string), `name` (string), `owner` (string), `stars` (integer (int64)), `topics` (Topic[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/repo?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/user

One public Codeberg user or organization by login name.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Login name, such as forgejo. (e.g. forgejo) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `avatarUrl` (string), `createdAt` (string), `description` (string), `followers` (integer (int64)), `following` (integer (int64)), `fullName` (string), `id` (string), `location` (string), `login` (string), `url` (string), `website` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/user?username=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/releases

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

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `assetCount` (integer (int64)), `author` (string), `draft` (boolean), `id` (string), `name` (string), `prerelease` (boolean), `publishedAt` (string), `tagName` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/releases?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/latestRelease

The latest published release of one Codeberg repository.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `assetCount` (integer (int64)), `author` (string), `draft` (boolean), `id` (string), `name` (string), `prerelease` (boolean), `publishedAt` (string), `tagName` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/latestRelease?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/issues

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

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `state` | string | no | open, closed or all. Default open. (one of open, closed, all) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (string), `closedAt` (string), `comments` (integer (int64)), `createdAt` (string), `id` (string), `labels` (Label[]), `labels[].name` (string), `number` (integer (int64)), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/issues?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/issue

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

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `number` | integer | yes | Issue number inside the repository. (e.g. 1) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (string), `body` (string), `closedAt` (string), `comments` (integer (int64)), `createdAt` (string), `id` (string), `labels` (Label[]), `labels[].name` (string), `number` (integer (int64)), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/issue?owner=forgejo&repo=forgejo&number=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/pulls

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

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `state` | string | no | open, closed or all. Default open. (one of open, closed, all) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (string), `base` (string), `createdAt` (string), `draft` (boolean), `head` (string), `id` (string), `merged` (boolean), `mergedAt` (string), `number` (integer (int64)), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/pulls?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## 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:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `sha` | string | no | Branch, tag or commit sha to list from. Default branch when omitted. |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `authorLogin` (string), `authorName` (string), `committedAt` (string), `message` (string), `sha` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/commits?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/commit

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

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `sha` | string | yes | Commit sha, 4 to 40 hex digits. (e.g. HEAD) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `authorLogin` (string), `authorName` (string), `committedAt` (string), `message` (string), `sha` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/commit?owner=forgejo&repo=forgejo&sha=HEAD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/tags

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

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `commitSha` (string), `createdAt` (string), `message` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/tags?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/branches

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

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `commitSha` (string), `name` (string), `protected` (boolean)

```bash
curl "https://api.hoshime.com/v1/codeberg/branches?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/languages

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

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `bytes` (integer (int64)), `name` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/languages?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/topics

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

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `name` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/topics?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## 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:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `path` | string | no | Path inside the repository, such as docs or README.md. Empty for the root. (e.g. README.md) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `downloadUrl` (string), `name` (string), `path` (string), `sha` (string), `size` (integer (int64)), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/contents?owner=forgejo&repo=forgejo&path=README.md" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## 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:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `path` | string | yes | Path of the file inside the repository, such as README.md. (e.g. README.md) |
| `ref` | string | no | Branch, tag or sha. Default branch when omitted. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `content` (string), `downloadUrl` (string), `name` (string), `path` (string), `sha` (string), `size` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/file?owner=forgejo&repo=forgejo&path=README.md" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/userRepos

Public repositories of one Codeberg user, 30 per page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Login name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `archived` (boolean), `description` (string), `forks` (integer (int64)), `fullName` (string), `id` (string), `language` (string), `name` (string), `owner` (string), `stars` (integer (int64)), `topics` (Topic[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/userRepos?username=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/orgRepos

Public repositories of one Codeberg organization, 30 per page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `org` | string | yes | Organization name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `archived` (boolean), `description` (string), `forks` (integer (int64)), `fullName` (string), `id` (string), `language` (string), `name` (string), `owner` (string), `stars` (integer (int64)), `topics` (Topic[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/orgRepos?org=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/searchUsers

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

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as forgejo. (e.g. forgejo) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `avatarUrl` (string), `createdAt` (string), `description` (string), `followers` (integer (int64)), `following` (integer (int64)), `fullName` (string), `id` (string), `location` (string), `login` (string), `url` (string), `website` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/searchUsers?query=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/issueComments

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

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `number` | integer | yes | Issue or pull request number inside the repository. (e.g. 15166) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `replyCount` (integer (int64)), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/issueComments?owner=forgejo&repo=forgejo&number=15166" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/stargazers

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

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `avatarUrl` (string), `createdAt` (string), `description` (string), `followers` (integer (int64)), `following` (integer (int64)), `fullName` (string), `id` (string), `location` (string), `login` (string), `url` (string), `website` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/stargazers?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/codeberg/forks

Forks of one public Codeberg repository, 30 per page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `owner` | string | yes | Owner name, such as forgejo. (e.g. forgejo) |
| `repo` | string | yes | Repository name, such as forgejo. (e.g. forgejo) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `archived` (boolean), `description` (string), `forks` (integer (int64)), `fullName` (string), `id` (string), `language` (string), `name` (string), `owner` (string), `stars` (integer (int64)), `topics` (Topic[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/codeberg/forks?owner=forgejo&repo=forgejo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
