# Lever Jobs Scraper - Postings API & New-Job Tracking (`cedarfetch/lever-jobs-scraper`) Actor

Every open posting on any company's Lever job site, global or EU, read from the official Lever Postings API: title, team, locations, workplace type, commitment, salary where published, description and dates. Built-in change tracking reports new, updated and removed jobs.

- **URL**: https://apify.com/cedarfetch/lever-jobs-scraper.md
- **Developed by:** [Cedarfetch Labs](https://apify.com/cedarfetch) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 jobs

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 Scraper - Postings API & New-Job Tracking

Get every open posting on any company's Lever job site, straight from the **official Lever Postings API** (`api.lever.co`, and `api.eu.lever.co` for Lever's EU instance), the same public feed that powers the company's `jobs.lever.co` page. One clean row per job: title, department, team, locations, workplace type (remote, hybrid, on-site), commitment as a normalised employment type, salary range where the company publishes one, description as text and HTML, created date and links.

Turn on **change tracking** and schedule it: every row then says whether the job is `new`, `updated` (with the fields that changed), `unchanged`, or `removed` since the last run. With "Output only changes", a daily run returns just the postings that opened and closed.

No browser, no proxies, no login. Postings are read 100 per request.

### What you can use it for

- **Recruiters and sourcers**: watch the Lever sites of target companies and see new roles the day they open.
- **Job boards and aggregators**: clean, normalised postings from hundreds of Lever companies, with closed jobs flagged so you can expire them.
- **Sales and investors**: hiring as a buying or growth signal ("which accounts opened sales roles in London this month?").
- **Labour-market analysts**: remote share, team mix and published salary ranges across Lever employers.
- **AI agents and pipelines**: one stable JSON shape you can rely on.

### Why this one

- **Official API only.** Reads the documented Lever Postings API. Nothing is scraped from HTML, nothing is bypassed.
- **Global and EU instances, automatically.** A `jobs.eu.lever.co` URL goes to the EU API. A bare token is tried on the global instance first and on the EU instance when the global one has no such site, so you never need to know where a company is hosted.
- **Every input form works.** Job-site URLs, single-posting links, apply links, API URLs, or just the site token.
- **Normalised fields.** Lever's free-text commitment ("Full-time", "Permanent", "Intern"...) becomes `employmentType`; `workplaceType` comes from Lever's own field; the raw labels are kept alongside.
- **Change tracking built in.** New, updated, unchanged and removed postings, with the changed fields and their previous values. Removed postings are only reported after a complete, error-free read of the site.
- **Honest failures.** Unknown sites, empty sites and typos are reported per site in plain words, never as a silent empty dataset. If nothing at all could be read, the run fails and says why.
- **Same schema as ATS Jobs Scraper.** Datasets from this Actor, the Greenhouse and Ashby editions, and the multi-system [ATS Jobs Scraper](https://apify.com/cedarfetch/ats-jobs-scraper) combine without any mapping.

### How to find a company's Lever site token

Open the company's careers page and click any job. If it opens on `jobs.lever.co/palantir/...` (or `jobs.eu.lever.co/<token>/...`), the token is the first part of the path: `palantir`. Paste the whole URL; the Actor reads the token and the instance from it.

To check a token by hand: `https://api.lever.co/v0/postings/<token>?mode=json` returns a JSON list for a real site (an empty list when it has no open postings) and 404 otherwise. Try `api.eu.lever.co` if the global one says 404.

### Input

Only `companies` is required. One entry per line:

| You paste | Read as |
|---|---|
| `https://jobs.lever.co/palantir` | site `palantir`, global instance |
| `https://jobs.lever.co/palantir/<posting-id>` or `.../<posting-id>/apply` | site `palantir` (a single-posting link reads the whole site) |
| `https://jobs.eu.lever.co/leverdemo` | site `leverdemo`, EU instance |
| `https://api.lever.co/v0/postings/palantir?mode=json` | site `palantir`, global instance |
| `palantir` or `lever:palantir` | site `palantir`: global instance, then EU if the global one has no such site |
| `lever-eu:acme` | site `acme`, EU instance only |

Duplicate entries for the same site are merged. A URL for a different system (Greenhouse, Ashby, SmartRecruiters...) is not read; it gets a free status row that names the Actor that reads it.

#### Example: engineering roles at two companies

```json
{
    "companies": ["https://jobs.lever.co/palantir", "spotify"],
    "titleKeywords": ["engineer*"],
    "excludeTitleKeywords": ["intern"],
    "includeDescription": false
}
```

#### Example: remote full-time roles posted this week

```json
{
    "companies": ["palantir", "spotify", "zoox"],
    "remoteOnly": true,
    "employmentTypes": ["full_time"],
    "postedAfter": "7 days"
}
```

#### All options

| Field | Default | What it does |
|---|---|---|
| `companies` | (required) | Lever sites in any form above. Up to 2,000 per run. |
| `maxJobsPerCompany` | 0 (all) | Stop after this many matching postings per site. |
| `includeDescription` | true | Add `descriptionText` and `descriptionHtml` (no extra request on Lever). |
| `titleKeywords` | none | Keep titles containing these words. |
| `titleKeywordsMode` | `any` | `any` or `all` of the keywords. |
| `excludeTitleKeywords` | none | Drop titles containing any of these words. |
| `locations` | none | Keep postings whose locations or country match any of these words. |
| `departments` | none | Keep postings whose department or team matches. |
| `remoteOnly` | false | Keep only `isRemote: true`. |
| `postedAfter` | none | ISO date (`2026-11-01`) or relative (`7 days`, `24 hours`, `2 weeks`), compared with the posting's creation time. |
| `employmentTypes` | none | Any of `full_time`, `part_time`, `contract`, `temporary`, `internship`, `apprenticeship`, `volunteer`, `other`. |
| `trackChanges` | false | Compare with the previous run and label every row. |
| `changesOnly` | false | With tracking on, deliver only the selected change types. |
| `changeTypes` | `new`, `updated`, `removed` | Which changes `changesOnly` delivers. |
| `snapshotStoreName` | `lever-jobs-scraper-snapshots` | Named key-value store for snapshots. Use different names for independent feeds. |
| `concurrency` | 2 | Parallel requests per site. |
| `requestDelayMs` | 250 | Pause after each request to the same site. |
| `maxConcurrentCompanies` | 4 | Sites read at the same time. |
| `requestTimeoutSecs` | 60 | Timeout per request (Lever pages can take 20+ seconds). |
| `maxRetries` | 4 | Retries for 429, 5xx and network errors. |

**Keyword matching** (titles, locations, departments) is case- and accent-insensitive and works on whole words: `engineer` matches "Senior Engineer" but not "Engineering"; `engineer*` matches both; `US` matches "Remote (US)" but not "Austin"; phrases such as `data scientist` work. Filters run before `maxJobsPerCompany`, so the cap counts matching postings.

### Output

One row per posting in the default dataset. Download as JSON, CSV, Excel or XML from the Output tab or the API. Views: **Jobs**, **Changes**, **Job details**, **Companies that could not be read**.

A real row from a local run on 2026-11-11 (`spotify`; description shortened):

```json
{
    "recordType": "job",
    "ats": "lever",
    "companyToken": "spotify",
    "companyName": null,
    "jobId": "2a55d6c9-c564-443a-be3e-a3851db5a93b",
    "requisitionId": null,
    "title": "Account Executive - Commercial, Spotify Technology",
    "department": "Operations and Business Support",
    "team": "Platform",
    "location": "New York, NY",
    "locations": ["New York, NY"],
    "country": "US",
    "isRemote": false,
    "workplaceType": "hybrid",
    "employmentType": "full_time",
    "employmentTypeRaw": "Permanent",
    "compensation": null,
    "descriptionText": "Spotify Technology is our business-to-business software team, helping ...",
    "descriptionHtml": "<div>\n<p>Spotify Technology is our busin...",
    "postedAt": "2026-10-23T15:00:40.768Z",
    "updatedAt": null,
    "jobUrl": "https://jobs.lever.co/spotify/2a55d6c9-c564-443a-be3e-a3851db5a93b",
    "applyUrl": "https://jobs.lever.co/spotify/2a55d6c9-c564-443a-be3e-a3851db5a93b/apply",
    "changeType": null,
    "changedFields": null,
    "previous": null,
    "firstSeenAt": null,
    "removedAt": null,
    "matchedBy": "default_ats",
    "input": "spotify",
    "source": "api",
    "scrapedAt": "2026-11-12T00:41:22.791Z"
}
```

Dates are ISO 8601 in UTC; numbers are numbers; `jobId` is always a string. The schema is identical to [ATS Jobs Scraper](https://apify.com/cedarfetch/ats-jobs-scraper), which is why `ats` is a field.

#### What Lever exposes, and what it does not

| Field | On Lever |
|---|---|
| `companyName` | Not exposed by the Postings API: always `null`. Use `companyToken`. |
| `requisitionId` | Not exposed: always `null`. |
| `department`, `team` | Lever's department and team categories. |
| `location`, `locations`, `country` | Primary location, every listed location (`allLocations`), and the country code when set. Not geocoded. |
| `workplaceType`, `isRemote` | From Lever's own `workplaceType` (remote, hybrid, on-site), plus location names such as "Remote"; `null` when the company left it unspecified. In a full run of four sites, 388 of 712 postings had a known remote status. |
| `employmentType` | Mapped from the commitment label (650 of 712 postings had one); `employmentTypeRaw` keeps Lever's text. |
| `compensation` | Lever's `salaryRange` (min, max, currency, interval) and salary text, when the company publishes them. Many companies do not. |
| `postedAt` | The posting's creation time (Lever exposes no separate publish date). |
| `updatedAt` | Not exposed: always `null`. Change tracking compares content instead. |
| `descriptionText` / `descriptionHtml` | Yes: the opening, the lists (responsibilities, requirements) and the closing, included in the list at no extra cost. |

#### Sites that could not be read

A free `company_status` row is added for every entry that could not be read, with a `status` and a plain-language `message`:

| status | Meaning |
|---|---|
| `not_found` | Neither Lever instance has a public site with that token (typo, or the company uses another system). |
| `no_jobs` | The site exists but has no open postings. |
| `blocked` | Lever refused the request (401/403) or answered with a bot-protection challenge. Never worked around. |
| `rate_limited` | Still rate-limited after polite retries. Try later or lower `concurrency`. |
| `unreachable` / `error` | Network failure, timeout or an unexpected answer. |
| `invalid_input` | Not a Lever URL or token, or a board on another system (the message names the Actor that reads it). |
| `partial` | (in `OUTPUT`) Some postings were read, then the run hit an error or the charge limit. |

If a run finds postings but delivers none (all filtered out, or nothing changed in changes-only mode), one free `company_status` row per site explains it.

#### Run summary

The default key-value store record `OUTPUT` has, per site: the instance used (`region`: global or eu), how the input was resolved, status, postings found / matched / delivered, removed postings reported, requests, retries, duration, whether the site was read completely, filter counts, change counts and warnings. Use it to monitor scheduled runs.

### Change tracking

Turn on **Track changes between runs** and schedule the Actor. Each run compares every matching posting with the snapshot from the previous run of the same site and filters, and adds:

| Field | Meaning |
|---|---|
| `changeType` | `new`, `updated`, `unchanged` or `removed`. |
| `changedFields` | For `updated`: e.g. `["title", "compensation"]`. Tracked: title, department, team, locations, workplaceType, isRemote, employmentType, compensation, description. |
| `previous` | For `updated`: the previous values of the changed fields (for description only the change is detected; old text is not stored). |
| `firstSeenAt` | When the posting first appeared in this feed. |
| `removedAt` | For `removed` rows: when the removal was detected. Removed rows carry the last known title, location, department, dates and links. |

Rules you can rely on:

- **The first tracked run labels every posting `new`.** It sets the baseline.
- **`removed` needs a complete read.** Lever sites are read in pages of 100. If the site could not be read, or the read was cut short by `maxJobsPerCompany` or the charge limit before the last page, nothing is labelled removed; the next complete run reports it. Leave `maxJobsPerCompany` at 0 on tracked runs of large sites.
- **Nothing is lost on a budget stop.** The snapshot only records postings that were delivered, so a change that did not fit in this run is reported in the next one.
- **Filters define the feed.** A posting that stops matching your filters is not "removed"; only postings that disappear from the site are. Each combination of site and filters has its own snapshot.
- **Descriptions are compared by hash**, even with `includeDescription` off (Lever sends them with the list).
- Snapshots live in the named key-value store `snapshotStoreName` in your Apify account (compressed, about 60 bytes per posting). Delete it, or pick a new name, to start over.

Tested locally on 2026-11-11 with `leverdemo` and `spotify` (95 postings): run 1 = 95 `new`, run 2 = 95 `unchanged`; after editing the snapshot, a changes-only run delivered exactly the 2 `new`, 2 `updated` and 2 `removed` postings.

#### Recipe: daily new-jobs feed

1. Create a task with your sites and filters, plus:

```json
{
    "companies": ["palantir", "spotify", "zoox"],
    "titleKeywords": ["engineer*", "data"],
    "trackChanges": true,
    "changesOnly": true,
    "changeTypes": ["new"],
    "includeDescription": false
}
```

2. Run it once to set the baseline (every posting is `new` on that run).
3. Schedule it daily. From then on each run delivers only the postings that opened since the previous run, and you pay only for those. Add `"removed"` to `changeTypes` to also get closed postings.
4. Connect the dataset to Slack, email, a Google Sheet or a webhook through Apify integrations.

### Pricing

Pay per event: one `job` event per posting row delivered to the dataset (including `removed` rows), plus Apify's small run-start fee. See the Pricing tab for the current price.

- `company_status` rows are free.
- With changes-only output, unchanged postings are not delivered and not charged.
- Set **Maximum cost per run** in the run options to cap spending. The Actor stops cleanly at the cap, keeps everything delivered so far, and notes it in `OUTPUT`.

### Use from an AI agent or via API

Ready-to-run Python, Node.js and cURL examples: [github.com/cedarfetch/ats-jobs-scraper-examples](https://github.com/cedarfetch/ats-jobs-scraper-examples). The examples use the multi-system ATS Jobs Scraper; change the Actor id to this one.

Run synchronously and get the rows back in one HTTP call:

```bash
curl -X POST "https://api.apify.com/v2/acts/cedarfetch~lever-jobs-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"companies":["spotify"],"titleKeywords":["engineer*"],"maxJobsPerCompany":50,"includeDescription":false}'
```

JavaScript:

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('cedarfetch/lever-jobs-scraper').call({ companies: ['palantir'], trackChanges: true, changesOnly: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("cedarfetch/lever-jobs-scraper").call(run_input={"companies": ["palantir"]})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

The Actor is also available to agents through the Apify MCP server, which exposes Store Actors as tools. Tips for agents: pass site tokens or URLs; keep `maxJobsPerCompany` small and `includeDescription` off for exploratory calls; filter on `recordType == "job"`; read `OUTPUT` for per-site status.

### Limits and honest caveats

- **Public postings only.** It reads what the company publishes on its Lever site. Internal, confidential and unlisted postings are out of reach by design. Nothing about applicants or employees is collected; names that appear inside a description are not extracted into fields.
- **Lever is slow on large sites.** A page of 100 postings can take 3 to 27 seconds (Palantir's 303 postings took 28 s in a local run). The default timeout is 60 s per request, with retries.
- **No company name, update date or requisition code** in the Postings API (see the table above).
- **A bare token on the EU instance costs one extra request** (the global instance answers 404 first). Paste the `jobs.eu.lever.co` URL to skip it.
- **Language and location formats** are as each company writes them. Locations are not geocoded.

### FAQ

**Is this the Lever Data API?** No. Lever's Data API needs a company's private key and exposes candidates. This Actor uses only the public Postings API, which exposes published postings and nothing about candidates.

**Can I read many companies in one run?** Yes, up to 2,000 sites. Four are read at a time by default.

**Why does a company show fewer postings than its website?** Some companies run several Lever sites, or list jobs from other systems too. You get the sites you pass. Check `OUTPUT` for filters and caps.

**Do I need proxies?** No. The Postings API is meant to be read by anyone. Sites that refuse plain requests are reported, not worked around.

**What happens to a posting that is reposted?** It usually gets a new Lever id, so it appears as `new` and the old one as `removed`.

**Is this legal?** The Actor reads job postings that companies publish through a public API intended for that purpose, and collects no personal data about applicants or employees. You are responsible for how you use the data and for the source's terms. If in doubt, ask a lawyer.

Not affiliated with Lever. "Lever" is used only to describe which public API this Actor reads.

### Support

Found a site that behaves oddly? Open an issue on the Issues tab with the site token and the run ID; the `OUTPUT` record usually shows what happened.

### More Actors from Cedarfetch Labs

Built the same way: public data only, typed output, per-source error reporting, change tracking for scheduled runs.

- [ATS Jobs Scraper](https://apify.com/cedarfetch/ats-jobs-scraper): the multi-system option. Greenhouse, Lever, Ashby, SmartRecruiters, Workable, Recruitee and Personio in one run, same schema, with auto-detection of a company's system.
- [Greenhouse Jobs Scraper](https://apify.com/cedarfetch/greenhouse-jobs-scraper): every job on any Greenhouse board, with pay ranges on request, from the official Greenhouse Job Board API.
- [Ashby Jobs Scraper](https://apify.com/cedarfetch/ashby-jobs-scraper): every job on any Ashby board, with salary where published, from Ashby's public Job Posting API.
- [Remote Jobs Scraper](https://apify.com/cedarfetch/remote-jobs-scraper): remote jobs from Remote OK, We Work Remotely and five more boards in one deduplicated feed.

# Changelog

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

# Actor input Schema

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

One per line. Accepts Lever job-site URLs (https://jobs.lever.co/palantir, or https://jobs.eu.lever.co/acme for Lever's EU instance), a link to a single posting (reads the whole site), API URLs (api.lever.co/v0/postings/palantir), or the bare site token (palantir). A bare token is tried on the global instance first and on the EU instance when the global one has no such site.

## `maxJobsPerCompany` (type: `integer`):

Stop after this many matching jobs per company. 0 means all. Keeps test runs and samples cheap; a capped run never reports removed jobs.

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

Add descriptionText (plain text) and descriptionHtml. Lever returns the description with the posting list, so this costs no extra request; turn it off for smaller rows.

## `titleKeywords` (type: `array`):

Keep jobs whose title contains these words (case- and accent-insensitive, whole words). Add \* for a prefix: "engineer\*" also matches "Engineering". Phrases work: "data scientist".

## `titleKeywordsMode` (type: `string`):

"any": at least one keyword in the title. "all": every keyword in the title.

## `excludeTitleKeywords` (type: `array`):

Drop jobs whose title contains any of these words (same matching rules), for example "intern" or "senior".

## `locations` (type: `array`):

Keep jobs where any listed location (or the country code / name Lever gives) matches one of these words, for example "London", "Germany", "US" or "Remote". Whole-word matching, so "US" does not match "Austin".

## `departments` (type: `array`):

Keep jobs whose department or team matches one of these words, for example "Engineering" or "Sales".

## `remoteOnly` (type: `boolean`):

Keep only jobs with isRemote = true. On Lever this comes from the posting's workplaceType, plus location names such as "Remote" (see the README).

## `postedAfter` (type: `string`):

Keep jobs first published on or after this moment: an ISO date (2026-11-01 or 2026-11-01T12:00:00Z) or a relative value such as "7 days", "24 hours" or "2 weeks". Jobs without a publish date are dropped by this filter.

## `employmentTypes` (type: `array`):

Keep only these normalised employment types, mapped from the posting's commitment (Full-time, Part-time, Contract, Intern...). Jobs without a commitment have employmentType null and are dropped by this filter.

## `trackChanges` (type: `boolean`):

Compare every job with the previous run and add changeType (new, updated, unchanged, removed), the changed fields and their previous values, and firstSeenAt. Jobs that disappeared from the board are reported as rows with changeType "removed" and removedAt. The snapshot is kept in a named key-value store in your account, so it survives between runs. Schedule the Actor daily for a jobs feed.

## `changesOnly` (type: `boolean`):

Requires change tracking. Deliver (and pay for) only the change types selected below; unchanged jobs are skipped but the snapshot is still refreshed. The first tracked run labels every job "new".

## `changeTypes` (type: `array`):

With "Output only changes": which change types to deliver. A daily new-jobs feed uses \["new"]; new plus closed jobs uses \["new", "removed"].

## `snapshotStoreName` (type: `string`):

Name of the key-value store that holds the change-tracking snapshots. Leave empty for the default "lever-jobs-scraper-snapshots" (separate from the other Cedarfetch jobs Actors, so their tracking never mixes). Use a different name to run independent tracking jobs on the same boards (for example one per client). Lowercase letters, digits and hyphens.

## `concurrency` (type: `integer`):

How many requests run at once against one Lever site (matters for sites with more than 100 postings, which are read in pages of 100).

## `requestDelayMs` (type: `integer`):

Pause after each request to the same company's board, with small random jitter.

## `maxConcurrentCompanies` (type: `integer`):

How many different companies are read at the same time.

## `requestTimeoutSecs` (type: `integer`):

Give up on a single request after this many seconds (it is then retried). Lever can take 20+ seconds for a page of 100 postings on a large site.

## `maxRetries` (type: `integer`):

Retries for rate-limit (429), server-error (5xx) and network failures, with jittered exponential backoff that honours Retry-After. 401/403 and bot-protection answers are never retried.

## Actor input object example

```json
{
  "companies": [
    "https://jobs.lever.co/palantir",
    "spotify",
    "https://jobs.eu.lever.co/leverdemo"
  ],
  "maxJobsPerCompany": 200,
  "includeDescription": true,
  "titleKeywords": [
    "engineer*",
    "product manager"
  ],
  "titleKeywordsMode": "any",
  "excludeTitleKeywords": [
    "intern",
    "principal"
  ],
  "locations": [
    "New York",
    "Remote"
  ],
  "departments": [
    "Engineering"
  ],
  "remoteOnly": false,
  "postedAfter": "7 days",
  "trackChanges": false,
  "changesOnly": false,
  "changeTypes": [
    "new",
    "updated",
    "removed"
  ],
  "concurrency": 2,
  "requestDelayMs": 250,
  "maxConcurrentCompanies": 4,
  "requestTimeoutSecs": 60,
  "maxRetries": 4
}
```

# Actor output Schema

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

All job rows (including removed rows with change tracking), plus company_status rows for boards that could not be read.

## `changes` (type: `string`):

The same rows shown with the change-tracking columns.

## `summary` (type: `string`):

Per-board status (ok, partial, no_jobs, not_found, blocked, rate_limited, unreachable, invalid_input...), job counts, requests, duration and change counts.

# 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": [
        "https://jobs.lever.co/leverdemo"
    ],
    "maxJobsPerCompany": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("cedarfetch/lever-jobs-scraper").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": ["https://jobs.lever.co/leverdemo"],
    "maxJobsPerCompany": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("cedarfetch/lever-jobs-scraper").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": [
    "https://jobs.lever.co/leverdemo"
  ],
  "maxJobsPerCompany": 20
}' |
apify call cedarfetch/lever-jobs-scraper --silent --output-dataset

```

## MCP server setup

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

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/GTa9DdCAZoylwbSP9/builds/89m8rwxOGsDj61AGL/openapi.json
