# Greenhouse API

> Returns open jobs, job descriptions, departments, offices and about text from a company's Greenhouse job board.

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

Open jobs of one Greenhouse board, without descriptions. Use job for the full text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board name, the slug in boards.greenhouse.io/{board}, such as airbnb. (e.g. airbnb) |
| `query` | string | no | Keep jobs whose title or location contains this text. |
| `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: `id` (string), `location` (string), `publishedAt` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/greenhouse/jobs?board=airbnb" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/greenhouse/job

One job of a Greenhouse board with its description as HTML. Without id it returns the newest open job of the board.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board name, such as airbnb. (e.g. airbnb) |
| `id` | string | no | Job id from jobs. Omit it for the newest open job of the board. |
| `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: `contentHtml` (string), `departments` (string[]), `id` (string), `location` (string), `publishedAt` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/greenhouse/job?board=airbnb" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/greenhouse/departments

The departments of one Greenhouse board, with their parent department id.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board name, such as airbnb. (e.g. airbnb) |
| `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: `id` (string), `name` (string), `parentId` (string)

```bash
curl "https://api.hoshime.com/v1/greenhouse/departments?board=airbnb" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/greenhouse/board

The name and the about text of one Greenhouse board.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board name, such as airbnb. (e.g. airbnb) |
| `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: `contentHtml` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/greenhouse/board?board=airbnb" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/greenhouse/offices

The offices of one Greenhouse board and the departments that work there.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `board` | string | yes | Board name, such as airbnb. (e.g. airbnb) |
| `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: `departments` (string[]), `id` (string), `location` (string), `name` (string), `parentId` (string)

```bash
curl "https://api.hoshime.com/v1/greenhouse/offices?board=airbnb" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
