# GitHub API

> Returns public GitHub users, organizations, repositories, releases, starred repositories and repository search results with their counts.

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

Public profile and counts of one GitHub user.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, @username or github.com profile URL. (e.g. torvalds) |
| `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), `bio` (string), `blog` (string), `company` (string), `createdAt` (string), `email` (string), `followers` (integer (int64)), `following` (integer (int64)), `hireable` (boolean), `id` (string), `location` (string), `login` (string), `name` (string), `publicGists` (integer (int64)), `publicRepos` (integer (int64)), `twitter` (string), `type` (string), `updatedAt` (string), `url` (string)

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

## GET /v1/github/repo

Details and counts of one public repository.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `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), `createdAt` (string), `defaultBranch` (string), `description` (string), `fork` (boolean), `forks` (integer (int64)), `fullName` (string), `homepage` (string), `id` (string), `language` (string), `license` (string), `name` (string), `openIssues` (integer (int64)), `owner` (string), `pushedAt` (string), `stars` (integer (int64)), `topics` (Term[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/repo?repo=golang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/org

Public profile and counts of one GitHub organization.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Organization name or github.com URL. (e.g. golang) |
| `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), `blog` (string), `createdAt` (string), `description` (string), `email` (string), `id` (string), `location` (string), `login` (string), `name` (string), `publicRepos` (integer (int64)), `twitter` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/org?name=golang" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/releases

Published releases of one repository, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `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), `createdAt` (string), `draft` (boolean), `id` (string), `name` (string), `prerelease` (boolean), `publishedAt` (string), `tagName` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/releases?repo=golang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/starred

Repositories one user has starred, most recent first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, @username or github.com profile URL. (e.g. torvalds) |
| `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), `createdAt` (string), `defaultBranch` (string), `description` (string), `fork` (boolean), `forks` (integer (int64)), `fullName` (string), `homepage` (string), `id` (string), `language` (string), `license` (string), `name` (string), `openIssues` (integer (int64)), `owner` (string), `pushedAt` (string), `stars` (integer (int64)), `topics` (Term[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/starred?username=torvalds" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/searchRepos

Public repositories that match a query, 30 per page, at most 1000 results.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search query, with GitHub qualifiers such as language:go. (e.g. golang) |
| `sort` | string | no | stars, forks, help-wanted-issues or updated. Omit it for best match. (one of stars, forks, help-wanted-issues, updated) |
| `order` | string | no | asc or desc, with sort. Default desc. (one of asc, desc) |
| `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), `createdAt` (string), `defaultBranch` (string), `description` (string), `fork` (boolean), `forks` (integer (int64)), `fullName` (string), `homepage` (string), `id` (string), `language` (string), `license` (string), `name` (string), `openIssues` (integer (int64)), `owner` (string), `pushedAt` (string), `stars` (integer (int64)), `topics` (Term[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/searchRepos?query=golang" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/searchUsers

Users and organizations that match a query, 30 per page, at most 1000 results.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search query, with GitHub qualifiers such as location:berlin. (e.g. torvalds) |
| `sort` | string | no | followers, repositories or joined. Omit it for best match. (one of followers, repositories, joined) |
| `order` | string | no | asc or desc, with sort. Default desc. (one of asc, desc) |
| `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), `bio` (string), `blog` (string), `company` (string), `createdAt` (string), `email` (string), `followers` (integer (int64)), `following` (integer (int64)), `hireable` (boolean), `id` (string), `location` (string), `login` (string), `name` (string), `publicGists` (integer (int64)), `publicRepos` (integer (int64)), `twitter` (string), `type` (string), `updatedAt` (string), `url` (string)

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

## GET /v1/github/codeSearch

Files on github.com whose source matches a query, 30 per page, at most 1000 results. GitHub ranks them itself; sort is not offered.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Code search query, with qualifiers such as repo:golang/go, language:go or path:src. (e.g. ParseArgs repo:golang/go) |
| `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: `name` (string), `path` (string), `repoUrl` (string), `repository` (string), `sha` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/codeSearch?query=ParseArgs+repo%3Agolang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/trendingRepos

Repositories trending on github.com, with the stars they gained in the period.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `programmingLanguage` | string | no | Programming language slug such as go or c++. Empty for all languages. |
| `since` | string | no | daily, weekly or monthly. (one of daily, weekly, monthly; default daily) |
| `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: `description` (string), `forks` (integer (int64)), `fullName` (string), `language` (string), `name` (string), `owner` (string), `stars` (integer (int64)), `starsInPeriod` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/trendingRepos" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/trendingDevelopers

Developers trending on github.com, with their most popular repository.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `programmingLanguage` | string | no | Programming language slug such as go or c++. Empty for all languages. |
| `since` | string | no | daily, weekly or monthly. (one of daily, weekly, monthly; default daily) |
| `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), `login` (string), `name` (string), `popularRepo` (string), `popularRepoDescription` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/trendingDevelopers" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/searchIssues

Issues and pull requests that match a query, 30 per page, at most 1000 results.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search query. GitHub needs an is:issue or is:pr qualifier, such as repo:golang/go is:issue. (e.g. generics repo:golang/go is:issue) |
| `sort` | string | no | comments, reactions, created or updated. Omit it for best match. (one of comments, reactions, created, updated) |
| `order` | string | no | asc or desc, with sort. Default desc. (one of asc, desc) |
| `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), `isPullRequest` (boolean), `labels` (Term[]), `labels[].name` (string), `number` (integer (int64)), `repository` (string), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/searchIssues?query=generics+repo%3Agolang%2Fgo+is%3Aissue" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/searchCommits

Commits that match a query, 30 per page, at most 1000 results.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search query, with qualifiers such as repo:golang/go, author:octocat or merge:false. (e.g. fix repo:golang/go) |
| `sort` | string | no | author-date or committer-date. Omit it for best match. (one of author-date, committer-date) |
| `order` | string | no | asc or desc, with sort. Default desc. (one of asc, desc) |
| `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), `authoredAt` (string), `message` (string), `repository` (string), `sha` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/searchCommits?query=fix+repo%3Agolang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/searchTopics

Topics that match a query, such as golang or machine-learning, 30 per page, at most 1000 results.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for in topic names and descriptions. (e.g. golang) |
| `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: `createdAt` (string), `curated` (boolean), `description` (string), `displayName` (string), `featured` (boolean), `name` (string), `shortDescription` (string), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/github/searchTopics?query=golang" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/issues

Issues of one repository, newest first. Pull requests are included and flagged, 30 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `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), `isPullRequest` (boolean), `labels` (Term[]), `labels[].name` (string), `number` (integer (int64)), `repository` (string), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/issues?repo=golang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/issue

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

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `number` | integer | yes | Issue or pull request number. (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), `isPullRequest` (boolean), `labels` (Term[]), `labels[].name` (string), `number` (integer (int64)), `repository` (string), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/issue?repo=golang%2Fgo&number=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/pulls

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

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `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), `closedAt` (string), `createdAt` (string), `draft` (boolean), `head` (string), `merged` (boolean), `mergedAt` (string), `number` (integer (int64)), `state` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/pulls?repo=golang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/commits

Commits of one 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 |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `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), `authoredAt` (string), `message` (string), `repository` (string), `sha` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/commits?repo=golang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/commit

One commit of a repository by its full or short sha, with its line counts and changed files.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `sha` | string | yes | Commit sha, 4 to 40 hex digits. (e.g. 7b27665111926fad8dce05cff90616984acf9e81) |
| `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), `authoredAt` (string), `files` (CommitFile[]), `files[].additions` (integer (int64)), `files[].deletions` (integer (int64)), `files[].filename` (string), `files[].status` (string), `message` (string), `repository` (string), `sha` (string), `stats` (CommitStats), `stats.additions` (integer (int64)), `stats.deletions` (integer (int64)), `stats.total` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/commit?repo=golang%2Fgo&sha=7b27665111926fad8dce05cff90616984acf9e81" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/tags

Git tags of one repository, 30 per page, in the order GitHub lists them.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. golang/go) |
| `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), `tarballUrl` (string), `zipballUrl` (string)

```bash
curl "https://api.hoshime.com/v1/github/tags?repo=golang%2Fgo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/latestRelease

The latest published release of one repository, which is not a draft or prerelease.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. cli/cli) |
| `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), `createdAt` (string), `draft` (boolean), `id` (string), `name` (string), `prerelease` (boolean), `publishedAt` (string), `tagName` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/latestRelease?repo=cli%2Fcli" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/languages

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

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. octocat/Hello-World) |
| `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/github/languages?repo=octocat%2FHello-World" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/contributors

Contributors of one repository by number of commits, most first, 30 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. octocat/Hello-World) |
| `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), `contributions` (integer (int64)), `id` (string), `login` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/contributors?repo=octocat%2FHello-World" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/readme

The README of one repository, with its text decoded from base64.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. octocat/Hello-World) |
| `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), `size` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/readme?repo=octocat%2FHello-World" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/contents

Entries of one folder of a 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 |
|---|---|---|---|
| `repo` | string | yes | owner/name or github.com repository URL. (e.g. octocat/Hello-World) |
| `path` | string | no | Path inside the repository, such as docs/README.md. Empty for the root. |
| `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/github/contents?repo=octocat%2FHello-World" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/userRepos

Public repositories owned by one user, 30 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, @username or github.com profile URL. (e.g. octocat) |
| `sort` | string | no | created, updated, pushed or full_name. Default full_name. (one of created, updated, pushed, full_name) |
| `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), `createdAt` (string), `defaultBranch` (string), `description` (string), `fork` (boolean), `forks` (integer (int64)), `fullName` (string), `homepage` (string), `id` (string), `language` (string), `license` (string), `name` (string), `openIssues` (integer (int64)), `owner` (string), `pushedAt` (string), `stars` (integer (int64)), `topics` (Term[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

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

## GET /v1/github/orgRepos

Public repositories of one organization, 30 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Organization name or github.com URL. (e.g. golang) |
| `type` | string | no | all, public, forks or sources. Default public. (one of all, public, forks, sources) |
| `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), `createdAt` (string), `defaultBranch` (string), `description` (string), `fork` (boolean), `forks` (integer (int64)), `fullName` (string), `homepage` (string), `id` (string), `language` (string), `license` (string), `name` (string), `openIssues` (integer (int64)), `owner` (string), `pushedAt` (string), `stars` (integer (int64)), `topics` (Term[]), `topics[].name` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/orgRepos?name=golang" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/gists

Public gists, newest first, 30 per page: those of one user when username is given, otherwise the public timeline.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | no | Username, @username or github.com profile URL. Omit it for all public gists. (e.g. octocat) |
| `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: `comments` (integer (int64)), `createdAt` (string), `description` (string), `files` (GistFile[]), `files[].content` (string), `files[].language` (string), `files[].name` (string), `files[].rawUrl` (string), `files[].size` (integer (int64)), `files[].type` (string), `id` (string), `owner` (string), `public` (boolean), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/gists?username=octocat" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/gist

One public gist by its id, with the content of each file.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Gist id, the hex string in the gist URL. (e.g. 6cad326836d38bd3a7ae) |
| `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: `comments` (integer (int64)), `createdAt` (string), `description` (string), `files` (GistFile[]), `files[].content` (string), `files[].language` (string), `files[].name` (string), `files[].rawUrl` (string), `files[].size` (integer (int64)), `files[].type` (string), `id` (string), `owner` (string), `public` (boolean), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/gist?id=6cad326836d38bd3a7ae" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/github/followers

Users who follow one user, 30 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, @username or github.com profile URL. (e.g. octocat) |
| `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), `bio` (string), `blog` (string), `company` (string), `createdAt` (string), `email` (string), `followers` (integer (int64)), `following` (integer (int64)), `hireable` (boolean), `id` (string), `location` (string), `login` (string), `name` (string), `publicGists` (integer (int64)), `publicRepos` (integer (int64)), `twitter` (string), `type` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/github/followers?username=octocat" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
