# Lever Jobs API (`earthen_garland/lever-jobs`) Actor

Fetches published Lever job postings from the official public Postings API (api.lever.co / api.eu.lever.co). No HTML scraping. Input is one or more Lever company slugs.

- **URL**: https://apify.com/earthen_garland/lever-jobs.md
- **Developed by:** [Kobi Mozgori](https://apify.com/earthen_garland) (community)
- **Categories:** Jobs
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 job postings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Lever Jobs API

Fetch **published** job postings from [Lever](https://www.lever.co/)'s official public Postings API. This Actor calls `https://api.lever.co/v0/postings/{company}` (or `https://api.eu.lever.co/v0/postings/{company}` for EU boards). It does **not** scrape HTML career pages, does **not** use the authenticated Lever Hire API, and does **not** submit applications.

### Features

- One or more company slugs (the `{company}` in `jobs.lever.co/{company}`).
- Official JSON fields: title, team, department, location(s), commitment, country, workplace type, salary range (when present), hosted job URL, apply URL, and timestamps.
- Optional plain-text description and lists; HTML description is off by default.
- Client-side filters for team/department, location, commitment, and a keyword.
- Pagination with `skip` / `limit` as documented by Lever.
- Configurable User-Agent and a polite default request interval (0.5s, floor 0.2s), with retries and backoff on 429/5xx.
- Pay-per-event billing: a start fee plus a per-job event.

### Official API and terms

This Actor uses only the public Lever Postings API documented at:

- https://github.com/lever/postings-api/blob/master/README.md
- List endpoint (global example): https://api.lever.co/v0/postings/leverdemo?mode=json
- EU instance: https://api.eu.lever.co/v0/postings/

Lever's official README states (Introduction):

> Note that all job postings in the `published` state are publicly viewable. These jobs may be scraped by third parties. All other jobs are completely hidden from the jobs API.

The same README describes the API as designed to help create a job site, documents unauthenticated GET list/detail methods, and notes that POST applications require an API key and are rate-limited. This Actor **only** uses the public GET list method. Internal (unpublished) jobs are not available through this API.

CORS is limited to the company's own domains; server-side Actor runs are not browser CORS calls.

### Input example

```json
{
  "companies": ["leverdemo"],
  "region": "global",
  "maxJobs": 50,
  "includeDescription": true,
  "includeHtmlDescription": false,
  "userAgent": "LeverJobs/0.1 (contact: you@example.com)",
  "minRequestIntervalSeconds": 0.5
}
```

`leverdemo` is Lever's official example site in the Postings API README.

### Output example

Each dataset item is one published job:

```json
{
  "source": "lever-postings-api",
  "company": "leverdemo",
  "jobId": "ad208490-4052-4f91-a57e-433f2d1e484b",
  "title": "Customer Success Manager",
  "team": "Customer Success Team",
  "department": "Customer Success",
  "location": "Atlanta, Georgia",
  "allLocations": ["Atlanta, Georgia"],
  "commitment": "Regular Full Time (Salary)",
  "country": "US",
  "workplaceType": "hybrid",
  "hostedUrl": "https://jobs.lever.co/leverdemo/ad208490-4052-4f91-a57e-433f2d1e484b",
  "applyUrl": "https://jobs.lever.co/leverdemo/ad208490-4052-4f91-a57e-433f2d1e484b/apply",
  "createdAt": "2026-09-30T12:32:19Z",
  "salaryRange": {"min": 85000, "max": 175000, "currency": "USD", "interval": "per-year-salary"},
  "descriptionPlain": "This is a test job…",
  "fetchedAt": "2026-11-10T12:30:00Z"
}
```

`createdAt` is converted from Lever's millisecond Unix timestamp to UTC ISO-8601. The raw millisecond value is kept in `createdAtMs`.

### Pricing

Pay per event (configure the same events in Apify Console; see `PRICING.md`):

| Event | Suggested price | When it is charged |
| --- | --- | --- |
| `apify-actor-start` | $0.00005 (Apify default) | Charged automatically by the platform at run start (synthetic event, not charged by the Actor code) |
| `job` | $0.003 | Once per job written to the dataset |

You receive 80% of paid-plan user revenue minus platform usage costs, per [Apify pricing and costs](https://docs.apify.com/actors/monetize/pricing-and-costs). Free-plan users do not count toward profit.

### FAQ

**How do I find a company slug?**\
It is the path segment in the hosted board, e.g. `https://jobs.lever.co/leverdemo` → `leverdemo`. If the board is on `jobs.eu.lever.co`, set `region` to `eu`.

**Why is a company empty or 404?**\
The slug may be wrong, the company may use a different ATS, or the board may be on the EU host. This Actor does not invent or scrape missing boards.

**Does this collect applicant or employee personal data?**\
No. Output is limited to published job-posting fields returned by Lever's public API (role metadata, description, and optional salary range). Application POST is not implemented.

**Can I apply to jobs through this Actor?**\
No. Application create requests require a Lever API key, are rate-limited, and are out of scope.

### Legal note

Data comes from Lever's public Postings API for jobs already in the `published` state. Lever documents that those jobs are publicly viewable and may be scraped by third parties. Use the Actor in accordance with Lever's documentation, applicable law, and Apify's Store Publishing Terms. Do not use it to access internal postings, submit applications, or collect personal data beyond what a published posting already contains.

### Local development (no Apify login required)

```bash
cd lever-jobs
python3 -m unittest tests.test_unit tests.test_live_smoke -v
python3 -m src.main --input storage/key_value_stores/default/INPUT.json --force-local
```

Set `SKIP_LIVE=1` to skip the live smoke test.

# Changelog

This Actor's version history is a separate document: https://apify.com/earthen_garland/lever-jobs/changelog.md

# Actor input Schema

## `companies` (type: `array`):

Lever company site slugs, as they appear in jobs.lever.co/{slug} or api.lever.co/v0/postings/{slug}. Example: leverdemo. If empty, the Actor runs the leverdemo sample board.

## `region` (type: `string`):

Use eu for companies whose boards live on jobs.eu.lever.co (api.eu.lever.co). Otherwise leave global.

## `team` (type: `string`):

Keep jobs whose team or department contains this text (case-insensitive).

## `location` (type: `string`):

Keep jobs whose location, allLocations, or country contains this text.

## `commitment` (type: `string`):

Keep jobs whose commitment (e.g. Full Time) contains this text.

## `query` (type: `string`):

Keep jobs whose title, team, department, location, or description contains this text.

## `maxJobs` (type: `integer`):

Stop after this many matching jobs across all companies. 0 means no cap.

## `includeDescription` (type: `boolean`):

Add descriptionPlain and lists from the official JSON. Default true.

## `includeHtmlDescription` (type: `boolean`):

Also store the HTML description field. Off by default to keep datasets smaller.

## `userAgent` (type: `string`):

HTTP User-Agent sent to Lever. Identify your use.

## `minRequestIntervalSeconds` (type: `number`):

Polite pause between official API calls. Floor is 0.2 seconds.

## Actor input object example

```json
{
  "companies": [
    "leverdemo"
  ],
  "region": "global",
  "maxJobs": 5,
  "includeDescription": true,
  "includeHtmlDescription": false,
  "userAgent": "LeverJobs/0.4 (+https://apify.com/earthen_garland/lever-jobs)",
  "minRequestIntervalSeconds": 0.5
}
```

# Actor output Schema

## `jobs` (type: `string`):

Default dataset of published Lever job postings from the official Postings API.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "companies": [
        "leverdemo"
    ],
    "maxJobs": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("earthen_garland/lever-jobs").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "companies": ["leverdemo"],
    "maxJobs": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("earthen_garland/lever-jobs").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "companies": [
    "leverdemo"
  ],
  "maxJobs": 5
}' |
apify call earthen_garland/lever-jobs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,earthen_garland/lever-jobs"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bkNGqXClebauAis5S/builds/YckT8W24L9VKuQwY2/openapi.json
