# HN Who Is Hiring API

> Returns Hacker News "Ask HN: Who is hiring?" threads and their top-level hiring posts as text.

Category: Jobs & Careers. Region: global. 4 endpoints at `https://api.hoshime.com/v1/hnjobs/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/hnjobs
## GET /v1/hnjobs/thread

The newest "Ask HN: Who is hiring?" thread, with its id for jobs.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `title` (string), `url` (string)

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

## GET /v1/hnjobs/jobs

Top-level hiring posts of an "Ask HN: Who is hiring?" thread, as text, oldest first within a page. Defaults to the newest thread.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `thread` | string | no | Thread id from thread. Omit it for the newest thread. |
| `query` | string | no | Keep posts that contain this text, such as remote or golang. |
| `limit` | integer | no | Most posts to return, from 1 to 100. (default 30) |
| `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/hnjobs/jobs" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hnjobs/threads

The "Ask HN: Who is hiring?" threads, newest first. Use an id with jobs or item.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Most threads to return, from 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: `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `title` (string), `url` (string)

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

## GET /v1/hnjobs/item

One Hacker News item by id: a story such as a hiring thread, or a comment, with its direct replies as text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Item id, such as 50338728 for a hiring thread or a comment id from jobs. (e.g. 50338728) |
| `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), `parentId` (string), `points` (integer (int64)), `replies` (Reply[]), `replies[].author` (Author), `replies[].createdAt` (string), `replies[].id` (string), `replies[].likeCount` (integer (int64)), `replies[].replyCount` (integer (int64)), `replies[].text` (string), `replies[].url` (string), `text` (string), `title` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/hnjobs/item?id=50338728" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
