# Lever API

> Returns a company's open Lever postings, full posting text and counts by team, location, commitment and workplace type.

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

Open postings of one company on Lever, newest first, without descriptions. Use posting for the full text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `company` | string | yes | Lever slug, the part of jobs.lever.co/{company}, such as palantir. (e.g. palantir) |
| `query` | string | no | Keep postings whose title, team or location contains this text. |
| `limit` | integer | no | Most postings to return, from 1 to 100. (default 50) |
| `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: `applyUrl` (string), `commitment` (string), `country` (string), `createdAt` (string), `id` (string), `location` (string), `team` (string), `title` (string), `url` (string), `workplaceType` (string)

```bash
curl "https://api.hoshime.com/v1/lever/postings?company=palantir" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/lever/posting

One posting of a company on Lever, with its description as plain text. Without id it returns the newest open posting.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `company` | string | yes | Lever slug, such as palantir. (e.g. palantir) |
| `id` | string | no | Posting id from postings. Omit it for the newest open posting. |
| `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: `applyUrl` (string), `commitment` (string), `country` (string), `createdAt` (string), `description` (string), `id` (string), `location` (string), `team` (string), `title` (string), `url` (string), `workplaceType` (string)

```bash
curl "https://api.hoshime.com/v1/lever/posting?company=palantir" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/lever/facets

Counts of the open postings of one company by team, location, commitment and workplace type.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `company` | string | yes | Lever slug, such as palantir. (e.g. palantir) |
| `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: `commitments` (Count[]), `commitments[].count` (integer (int64)), `commitments[].value` (string), `locations` (Count[]), `locations[].count` (integer (int64)), `locations[].value` (string), `teams` (Count[]), `teams[].count` (integer (int64)), `teams[].value` (string), `total` (integer (int64)), `workplaceTypes` (Count[]), `workplaceTypes[].count` (integer (int64)), `workplaceTypes[].value` (string)

```bash
curl "https://api.hoshime.com/v1/lever/facets?company=palantir" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
