# Arch Linux API

> Returns Arch Linux package search, builds, installed files, recent updates, maintainer packages and AUR search results.

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

Arch Linux packages matching words in their name or description.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as curl. (e.g. curl) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `arch` (string), `base` (string), `builtAt` (string), `description` (string), `licenses` (License[]), `licenses[].name` (string), `maintainers` (Profile[]), `maintainers[].avatarUrl` (string), `maintainers[].bio` (string), `maintainers[].createdAt` (string), `maintainers[].followerCount` (integer (int64)), `maintainers[].followingCount` (integer (int64)), `maintainers[].id` (string), `maintainers[].name` (string), `maintainers[].postCount` (integer (int64)), `maintainers[].url` (string), `maintainers[].username` (string), `maintainers[].verified` (boolean), `name` (string), `repo` (string), `updatedAt` (string), `url` (string), `version` (string)

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

## GET /v1/archlinux/package

Every build of one Arch Linux package by its exact name, one per architecture and repository.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Exact package name, such as curl. (e.g. curl) |
| `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: `arch` (string), `base` (string), `builtAt` (string), `description` (string), `licenses` (License[]), `licenses[].name` (string), `maintainers` (Profile[]), `maintainers[].avatarUrl` (string), `maintainers[].bio` (string), `maintainers[].createdAt` (string), `maintainers[].followerCount` (integer (int64)), `maintainers[].followingCount` (integer (int64)), `maintainers[].id` (string), `maintainers[].name` (string), `maintainers[].postCount` (integer (int64)), `maintainers[].url` (string), `maintainers[].username` (string), `maintainers[].verified` (boolean), `name` (string), `repo` (string), `updatedAt` (string), `url` (string), `version` (string)

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

## GET /v1/archlinux/files

The file paths one Arch Linux package installs, one page at a time. Page with cursor.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | Repository: core, extra or multilib. (one of core, extra, multilib; e.g. core) |
| `arch` | string | yes | Architecture: x86_64 or any. (one of x86_64, any; e.g. x86_64) |
| `name` | string | yes | Exact package name, such as bash. (e.g. bash) |
| `limit` | integer | no | Number of paths, from 1 to 500. (default 100) |
| `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: `path` (string)

```bash
curl "https://api.hoshime.com/v1/archlinux/files?repo=core&arch=x86_64&name=bash" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/archlinux/updates

Recently updated Arch Linux packages in one repository and architecture, from the repository's RSS feed.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `repo` | string | yes | Repository: core, extra or multilib. (one of core, extra, multilib; e.g. core) |
| `arch` | string | yes | Architecture: x86_64 or any. (one of x86_64, any; e.g. x86_64) |
| `limit` | integer | no | Number of updates, from 1 to 100. (default 20) |
| `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), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/archlinux/updates?repo=core&arch=x86_64" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/archlinux/maintainer

Official Arch Linux packages one maintainer looks after, up to a limit.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Maintainer's Arch username, such as heftig. (e.g. heftig) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `arch` (string), `base` (string), `builtAt` (string), `description` (string), `licenses` (License[]), `licenses[].name` (string), `maintainers` (Profile[]), `maintainers[].avatarUrl` (string), `maintainers[].bio` (string), `maintainers[].createdAt` (string), `maintainers[].followerCount` (integer (int64)), `maintainers[].followingCount` (integer (int64)), `maintainers[].id` (string), `maintainers[].name` (string), `maintainers[].postCount` (integer (int64)), `maintainers[].url` (string), `maintainers[].username` (string), `maintainers[].verified` (boolean), `name` (string), `repo` (string), `updatedAt` (string), `url` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/archlinux/maintainer?name=heftig" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/archlinux/aurSearch

Arch User Repository packages whose name or description match the words.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, at least two characters, such as yay. (e.g. yay) |
| `limit` | integer | no | Number of packages, from 1 to 100. (default 20) |
| `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: `depends` (Dependency[]), `depends[].name` (string), `description` (string), `keywords` (Keyword[]), `keywords[].name` (string), `maintainer` (string), `name` (string), `outOfDate` (boolean), `packageBase` (string), `popularity` (number (double)), `updatedAt` (string), `url` (string), `version` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/archlinux/aurSearch?query=yay" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/archlinux/aurInfo

One Arch User Repository package: its version, maintainer, votes and dependencies.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Exact package name, such as yay. (e.g. yay) |
| `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: `depends` (Dependency[]), `depends[].name` (string), `description` (string), `keywords` (Keyword[]), `keywords[].name` (string), `maintainer` (string), `name` (string), `outOfDate` (boolean), `packageBase` (string), `popularity` (number (double)), `updatedAt` (string), `url` (string), `version` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/archlinux/aurInfo?name=yay" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/archlinux/aurDependents

Arch User Repository packages that depend on a package, by its exact name, such as libxml2.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Exact name of the depended-on package, such as libxml2. Names with very many dependents are refused. (e.g. libxml2) |
| `limit` | integer | no | Number of packages, from 1 to 100. (default 20; e.g. 5) |
| `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: `depends` (Dependency[]), `depends[].name` (string), `description` (string), `keywords` (Keyword[]), `keywords[].name` (string), `maintainer` (string), `name` (string), `outOfDate` (boolean), `packageBase` (string), `popularity` (number (double)), `updatedAt` (string), `url` (string), `version` (string), `votes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/archlinux/aurDependents?name=libxml2&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/archlinux/news

Arch Linux news: manual interventions, breaking changes and security notices, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Number of news items, from 1 to 100. (default 20; e.g. 5) |
| `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), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/archlinux/news?limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
