# Greenhouse, Lever & Ashby Job Scraper + Search (`andocaps/ats-job-postings`) Actor

Get job postings from Greenhouse, Lever, Ashby and SmartRecruiters in one clean schema. Paste a careers page URL, a company website or a board slug, or search indexed boards by title, location, remote and date. Daily new-jobs diff. $1.50 per 1,000 jobs; empty runs are free.

- **URL**: https://apify.com/andocaps/ats-job-postings.md
- **Developed by:** [Ando](https://apify.com/andocaps) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 job returneds

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

**Greenhouse, Lever & Ashby Job Scraper** gets the open job postings of any company that hires on **Greenhouse, Lever, Ashby or SmartRecruiters** and returns them in **one clean schema**: title, department, location, remote/hybrid/onsite, employment type, posting date, salary when published, job URL, apply URL and description.

Paste a **careers page URL**, a **company website** or a board slug. The Actor finds the ATS, reads its public job-board API and gives you the jobs. No login, no proxy, no browser. You pay **$1.50 per 1,000 jobs**; empty runs, errors and unknown companies cost nothing.

### What can this job scraper do?

- 🏢 **Read any company's jobs** from a careers URL (`boards.greenhouse.io/gitlab`), a website (`gitlab.com`), or `ats:slug` (`lever:leverdemo`). Many companies in one run.
- 🔎 **Search job postings across companies** by title, location, country, remote, ATS and posting date, without a company list (index of more than 12,600 active boards as of 20 November 2026, refreshed several times a day).
- 🆕 **Get only new jobs since your last run** (`onlyNewSinceLastRun` + `watchId`), with closed jobs flagged for free. Schedule it daily.
- 🧩 **One schema for four ATS**, stable `global_id` to dedupe across runs and modes.
- 🤖 **Works as a tool for AI agents** through the Apify MCP server: predictable cost, small rows with `includeDescription: false`.
- 📤 Export to JSON, CSV, Excel, or send to Google Sheets, Make, Zapier, n8n and webhooks.

### Which ATS are supported?

| ATS | Public endpoint read | Company identifier |
|---|---|---|
| Greenhouse | `boards-api.greenhouse.io/v1/boards/{board_token}/jobs` | board token (`boards.greenhouse.io/<token>`) |
| Lever | `api.lever.co/v0/postings/{site}?mode=json` (EU instance tried when the global one answers 404) | site (`jobs.lever.co/<site>`) |
| Ashby | `api.ashbyhq.com/posting-api/job-board/{name}` | job board name (`jobs.ashbyhq.com/<name>`) |
| SmartRecruiters | `api.smartrecruiters.com/v1/companies/{id}/postings` | company identifier (`jobs.smartrecruiters.com/<id>`) |
| Workable | `apply.workable.com/api/v1/widget/accounts/{subdomain}` | account subdomain (`apply.workable.com/<subdomain>`) |

Workable is read **best effort**: Workable rate-limits datacenter IPs, so Workable boards can return free `error` rows. Recruitee, Personio, Workday, LinkedIn and Indeed are not read.

No HTML scraping of protected sites, no login, no proxy: the data is what each employer publishes on its own careers board.

**Use it when you need to:** find open roles matching a title across many companies without knowing which companies ("data engineer, remote, France, posted this week"); list the open roles of specific companies; monitor a search or a set of companies and get only the postings that are **new since your last run** (and learn which ones closed); get a company's postings when you only have its **careers page URL or website**.

**Do not use it for:** job boards that are not one of these ATS (LinkedIn, Indeed, Workday, Recruitee, Personio... are not read); candidate or recruiter data (none is returned; the SmartRecruiters `creator` field is deliberately dropped); every company on earth: the index covers the boards it has discovered (a count is in the Actor's run summary), not all customers of these ATS.

### How to scrape jobs from a careers page

1. Click **Try for free**.
2. In **Companies**, paste one or more careers page URLs, websites or `ats:slug` values.
3. Optional: filter by title words, location, remote, posting date.
4. Click **Start**. Jobs appear in the **Output** tab; download them as JSON, CSV or Excel.

To search without a company list, leave **Companies** empty and fill **Search query** (for example `data engineer`) with countries or `remoteOnly`.

### How much does it cost to scrape job postings?

Pay per job returned: **$0.0015 per job** ($1.50 per 1,000). No start fee, no monthly fee.

- 3 companies × 20 jobs = 60 jobs = **$0.09**.
- A daily new-jobs watch on 50 companies usually returns a few dozen new jobs a day: **a few cents a day**.
- Empty searches, companies not found, errors and `closed` rows are **free**.

Apify's free plan monthly credit covers several thousand jobs.

The run stops cleanly at your run's *max total charge* and reports it in the status message and in `OUTPUT.stopped_at_budget`. Platform usage (compute) is included in the event price.

| Event | Price | When charged |
|---|---|---|
| `job-returned` (primary) | **$0.0015 per job** ($1.50 / 1,000) | once per job row with status `listed` or `new`, in search and live mode alike |
| empty search, company not found, unresolved, API or index error | **$0** | never |
| `closed` rows in watch mode | **$0** | never |

More cost examples: a search returning 200 jobs = $0.30. 1 company with 40 open roles = $0.06. Daily watch of a search that yields 15 new roles a day = $0.0225 per day, closed-job notices included.

### Input example

Leave `companies` empty to search; fill it to read named companies live. This is the default input: it reads three companies directly.

```json
{
  "companies": [
    "https://boards.greenhouse.io/gitlab",
    "lever:leverdemo",
    "https://jobs.ashbyhq.com/linear"
  ],
  "includeDescription": false,
  "maxJobsPerCompany": 20
}
```

| Field | Mode | Type | Default | Meaning |
|---|---|---|---|---|
| `query` | search | string | - | words that must all appear in the job title or department, e.g. `data engineer`. `\|` separates alternatives (`data engineer\|machine learning`); quote a phrase (`"product manager"`). Word-prefix matching is automatic. |
| `locationKeywords` | both | string\[] | `[]` | keep jobs whose location text / city / region / country contains any of these (search: word-prefix match in the index) |
| `countries` | search | string\[] | `[]` | ISO-2 codes, e.g. `["FR","DE"]` (from the ATS country field; Greenhouse has none, use `locationKeywords`) |
| `remoteOnly` | both | boolean | `false` | keep only `remote` or `hybrid` workplace types |
| `atsFilter` | search | string\[] | `[]` | restrict to some of `greenhouse, lever, ashby, smartrecruiters, workable` |
| `postedAfter` | both | string | - | `YYYY-MM-DD` or `Nd` (e.g. `7d`); jobs without a posting date are kept in live mode |
| `excludeKeywords` | both | string\[] | `[]` | drop jobs whose title contains any of these |
| `companyQuery` | search | string | - | words of the company name as published by the ATS |
| `maxResults` | search | integer | 500 | rows returned (and charged) by one search, newest first; max 5000 |
| `companies` | live | string\[] | - | 1 to 200 entries: a URL (ATS board, careers page or company website), `ats:slug` (`greenhouse:stripe`, `lever:netflix`, `ashby:openai`, `smartrecruiters:Bosch`, `workable:acme`) or a bare slug / company name probed on all five ATS |
| `titleKeywords` | both | string\[] | `[]` | keep jobs whose title contains any of these (live mode filter; in search mode use `query`) |
| `maxJobsPerCompany` | live | integer | 500 | cap on rows per company, after filters; max 5000 |
| `includeDescription` | both | boolean | `true` | add `description_html` / `description_text`. Live: from the API (SmartRecruiters: one extra request per job). Search: the index keeps only a short snippet, so each matching board is re-read live (one request per board, 150 boards max per run); set `false` for the fastest search |
| `onlyNewSinceLastRun` | both | boolean | `false` | **watch mode**, see below |
| `watchId` | both | string | derived | name of the watch memory; set one per distinct search |
| `resolveCareersPages` | live | boolean | `true` | fetch non-ATS URLs once (plus `/careers` and `/jobs` for a bare domain) to detect an embedded board |
| `includeRaw` | live | boolean | `false` | attach the untouched ATS JSON under `raw` |

Example - search: remote data roles in France or Germany posted in the last 14 days, titles only (fastest):

```json
{
  "query": "data engineer|data scientist|analytics engineer",
  "countries": ["FR", "DE"],
  "remoteOnly": true,
  "postedAfter": "14d",
  "maxResults": 300,
  "includeDescription": false
}
```

Example - live: everything engineering at three companies, posted in the last 30 days:

```json
{
  "companies": ["https://boards.greenhouse.io/examplecorp", "lever:exampleco", "https://www.example.com/careers"],
  "titleKeywords": ["engineer", "developer"],
  "postedAfter": "30d"
}
```

### Output example

One row per job. Every row carries every field below (null when unknown), so downstream code never needs per-ATS or per-mode branches. This row is a real GitLab job on Greenhouse, returned on 20 November 2026 with the input above:

```json
{
  "record_type": "job",
  "status": "listed",
  "ats": "greenhouse",
  "company_slug": "gitlab",
  "company_name": "GitLab",
  "company_input": "https://boards.greenhouse.io/gitlab",
  "global_id": "greenhouse:gitlab:8638232002",
  "job_id": "8638232002",
  "title": "AI Transformation Owner, CRO",
  "department": null,
  "team": null,
  "location": "Remote, United States",
  "locations": ["Remote, United States"],
  "city": null,
  "region": null,
  "country": null,
  "workplace_type": "remote",
  "employment_type": "unknown",
  "posted_at": "2026-07-22T17:38:40Z",
  "updated_at": "2026-11-06T20:25:07Z",
  "url": "https://job-boards.greenhouse.io/gitlab/jobs/8638232002",
  "apply_url": "https://job-boards.greenhouse.io/gitlab/jobs/8638232002",
  "salary": null,
  "description_html": null,
  "description_text": null,
  "source_api_url": "https://boards-api.greenhouse.io/v1/boards/gitlab/jobs",
  "fetched_at": "2026-11-20T04:18:59Z",
  "first_seen_at": null,
  "closed_detected_at": null,
  "raw": null,
  "message": null,
  "charged": true
}
```

Field notes:

- `company_input`: the `companies` entry that produced the row, or `query` in search mode.
- `workplace_type`: `remote | hybrid | on_site | unknown`. Taken from the ATS field when one exists (Lever `workplaceType`, Ashby `workplaceType`/`isRemote`, SmartRecruiters `location.remote`, Workable `workplace_type`/`telecommuting`), otherwise inferred from the word "remote"/"hybrid" in the location text; Greenhouse has no field, so it is always inferred.
- `employment_type`: `full_time | part_time | contract | intern | temporary | other | unknown`, mapped from Lever `commitment`, Ashby `employmentType`, SmartRecruiters `typeOfEmployment`, Workable `employment_type`. Greenhouse exposes none.
- `posted_at`: Greenhouse `first_published`, Lever `createdAt`, Ashby `publishedAt`, SmartRecruiters `releasedDate`, Workable `published_on`. `updated_at` only for Greenhouse.
- `salary`: only when the ATS gives **structured** compensation (Lever `salaryRange`, Ashby `compensation`, Workable `salary`). Never parsed from free text, so it is often null.
- `country`: search mode: ISO-2 when the ATS value could be normalised, else the ATS text. Live mode: as given by the ATS.
- `description_text` in search mode without `includeDescription`: a short snippet when the ATS list payload carries a description (Lever, Ashby), else null. `description_html` needs `includeDescription`.
- `first_seen_at` in search mode: when the index first saw the job (also set by watch mode).
- SmartRecruiters `url` is derived from the posting id (`https://jobs.smartrecruiters.com/<company>/<id>`); `apply_url` comes from the detail endpoint when descriptions are on.
- Greenhouse descriptions arrive HTML-entity-escaped from the API; the Actor unescapes them once.

Rows with `record_type: "company_status"` (free) explain what happened to an entry that produced no jobs: `status` is `not_found` (no such board, or no ATS detected on the page) or `error` (API unreachable after 4 attempts, HTTP 5xx, search index unavailable...), with details in `message`.

The key-value store record `OUTPUT` holds the run summary: `mode` (`search` or `live`), per-company resolution in live mode, the normalised query and the number of index rows in search mode, jobs listed, filtered out, returned, new, closed, HTTP requests made.

### Monitor new job postings (watch mode)

Set `onlyNewSinceLastRun: true` and schedule the Actor (hourly, daily...). The Actor keeps the set of jobs it has already returned in a named key-value store **in your own Apify account** (`ats-jobs-watch-state`, one record per `watchId`). It works for a search and for a company list.

- First run: every matching job is returned with `status: "new"` and charged.
- Later runs: only jobs not seen before are returned (charged). Jobs that were remembered and have disappeared (no longer listed by the company, or removed from the index because the company closed them) are returned as **free** rows with `status: "closed"`, `closed_detected_at` and `first_seen_at`, then forgotten.
- Live mode: a company whose API failed this run keeps its memory untouched, so a transient outage never produces false `closed` rows. Search mode: a remembered job that is merely outside this run's result window is not closed; the index is asked explicitly whether it still has the job.
- Only rows actually delivered are remembered: jobs cut by `maxResults`, `maxJobsPerCompany` or by the budget come back next run.
- Changing the filters while keeping the same `watchId` makes jobs that no longer match look "closed". Use a new `watchId` per search.

### Job postings for AI agents (MCP / tool calling)

Find this Actor from any MCP client with the Apify MCP server: `search-actors` "greenhouse jobs" or call `andocaps/ats-job-postings` directly.

- Purpose: *find job postings by title/location across more than 12,600 company boards on five ATS, or list/monitor the postings of named companies, in one schema*.
- Prefer **search mode** when you have a role in mind and no company list: `query` + `countries`/`locationKeywords` + `remoteOnly` + `postedAfter`. Start with `includeDescription: false` and `maxResults` around 100; ask for descriptions only for the rows you need (second call in live mode with `companies` = the `url` values, or `includeDescription: true`).
- Use **live mode** when the user names companies: pass **all companies in one call** (`companies` array) rather than one call per company. To turn a company website into postings, pass the URL as-is; check `OUTPUT.per_company[].resolved` to see which ATS and slug were found.
- Deterministic cost: `$0.0015 x rows with status listed/new`; `closed`, `not_found` and `error` rows are free, an empty search is free. Set the run's max total charge to `0.0015 x expected jobs`; `maxResults` / `maxJobsPerCompany` bound the worst case.
- To answer "what is new since yesterday", use `onlyNewSinceLastRun: true` with a stable `watchId` and run once a day; read `status` (`new` / `closed`).
- Dedupe across runs and across modes on `global_id` (identical in search and live mode).
- No personal data is returned.

### Is it legal to scrape job postings?

The five endpoints are documented by the vendors for reading **published** postings without authentication: Greenhouse Job Board API, Lever Postings API (whose README states that published postings "are publicly viewable" and "may be scraped by third parties"), Ashby Job Posting API, SmartRecruiters Posting API, Workable careers-page jobs feed (Workable Help Center). The Actor and its index send a few requests per second per host at most, identify themselves with a descriptive User-Agent, honour conditional requests, and never store or return recruiter or candidate data. Job descriptions are the employers' own text; reuse them as the law of your country allows.

Recruitee is not supported: its careers-site API requires a token for every call from 10 February 2027.

### Limits

- The search index holds more than 12,600 active boards (count read on 20 November 2026), those the index has discovered on the five ATS, refreshed several times a day (large boards once a day); a brand-new posting can take a few hours to appear. For an up-to-the-minute read of one company, use live mode.
- Boards with very large payloads (hundreds of postings with long descriptions on Lever or Ashby) may be excluded from the index; live mode reads them without limit.
- No endpoint lists the companies using an ATS: live-mode discovery works from URLs, slugs and name-derived slug guesses only. A bare name that does not match the slug returns `not_found`; give the careers URL instead.
- Careers-page detection reads the HTML of the page you give (plus `/careers` and `/jobs` for a bare domain). Boards loaded only by JavaScript from a different domain are not detected.
- `postedAfter` cannot filter live-mode jobs whose ATS gives no date (kept).
- Lever lists up to 100 postings per page and the Actor pages through them; SmartRecruiters pages by 100 with `offset`; Greenhouse, Ashby and Workable return the whole board in one response.
- If an ATS API or the index is down, the affected rows are free `error` rows; nothing is charged.

### FAQ

#### How is this different from a Greenhouse-only or Lever-only scraper?

One run covers four ATS with one schema, you do not need to know which ATS a company uses (paste its website), and search mode finds jobs across companies you did not list.

#### Can I get jobs from a company website instead of a board URL?

Yes. Give the website or careers page; the Actor detects Greenhouse, Lever, Ashby, SmartRecruiters or Workable links in the page (and `/careers`, `/jobs`). Check `OUTPUT.per_company[].resolved`.

#### Can I get only new postings every day?

Yes: `onlyNewSinceLastRun: true` with a fixed `watchId`, scheduled daily.

#### Do you return recruiter or candidate data?

No. Only what the employer publishes on its job board.

#### Something broke or a company is missing?

Open an issue in the **Issues** tab with the careers URL; it is usually fixed within a day.

# Actor input Schema

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

SEARCH MODE (used only when `companies` is empty). Words that must all appear in the job title or department, e.g. "data engineer". Use "|" for alternatives: "data engineer|machine learning". Quote a phrase to keep words together: ""product manager"". Prefix matching is automatic (engineer matches engineering). Combine with locationKeywords, countries, remoteOnly, atsFilter, postedAfter, excludeKeywords.

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

LIVE MODE. Up to 200 entries. Accepted forms: a full URL (ATS job board, careers page or company website), 'greenhouse:stripe' / 'lever:netflix' / 'ashby:openai' / 'smartrecruiters:Bosch' / 'workable:acme', or a bare word such as 'stripe' which is probed on every supported ATS. Slugs are case-sensitive for SmartRecruiters and Ashby. Leave EMPTY to search the index with `query` and the filters instead.

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

Keep a job when its title contains at least one of these words or phrases (case-insensitive). Leave empty to keep every title. Example: \["engineer", "data"].

## `excludeKeywords` (type: `array`):

Drop a job when its title contains any of these words (case-insensitive). Example: \["senior", "director"].

## `locationKeywords` (type: `array`):

Keep a job when its location text (all listed locations, city, region and country) contains at least one of these (case-insensitive). In search mode each keyword is matched as a word prefix in the index ("Lond" matches London). Example: \["London", "United Kingdom", "Remote"].

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

Keep only jobs whose workplace type is remote or hybrid, as declared by the ATS field when it exists (Lever workplaceType, Ashby isRemote/workplaceType, SmartRecruiters location.remote, Workable telecommuting) or, failing that, when the location text contains 'remote'.

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

Keep only jobs posted on or after this date. Either an ISO date (2026-11-01) or a relative number of days ("7d" = last 7 days). Uses the ATS posting date when it exists (Greenhouse first_published, Lever createdAt, Ashby publishedAt, SmartRecruiters releasedDate, Workable published_on). Jobs without any date are kept.

## `countries` (type: `array`):

SEARCH MODE. Keep jobs whose country is one of these ISO 3166-1 alpha-2 codes, e.g. \["FR", "DE"]. Country is taken from the ATS field when it gives one (Lever, Ashby, SmartRecruiters, Workable); Greenhouse jobs have no country field and are only matched through locationKeywords.

## `atsFilter` (type: `array`):

SEARCH MODE. Restrict to these ATS: greenhouse, lever, ashby, smartrecruiters, workable. Empty = all.

## `companyQuery` (type: `string`):

SEARCH MODE. Words of the company name (as published by the ATS) to restrict the search to, e.g. "example corp". Use "|" for alternatives.

## `maxResults` (type: `integer`):

SEARCH MODE. Upper bound of job rows returned (and charged) by one search, newest first. Default 500, maximum 5000.

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

Upper bound of job rows returned (and charged) per company, after filters. Default 500, maximum 5000.

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

Add description_html and description_text to every row. Live mode: included in the API responses (SmartRecruiters: one extra request per job). Search mode: the index stores only a short snippet, so the Actor re-reads each matching company board live (one request per board, max 150 boards per run); set to false for the fastest, cheapest search.

## `onlyNewSinceLastRun` (type: `boolean`):

When true, the Actor remembers the jobs it has already returned (in a named key-value store 'ats-jobs-watch-state' in your account, under the watchId key) and returns only jobs not seen before. Jobs that disappeared (no longer listed by the company, or removed from the index) are returned as free rows with status 'closed'. Works in live and search mode. The first run returns and charges everything that matches.

## `watchId` (type: `string`):

Name of the memory used by watch mode. Use a different value per distinct search (e.g. 'eng-remote-eu'). Leave empty to derive it from the companies and filters.

## `resolveCareersPages` (type: `boolean`):

When a company entry is a URL that is not on an ATS domain (e.g. https://www.acme.com/careers), fetch that page once (plus /careers and /jobs for a bare domain) and look for an embedded Greenhouse, Lever, Ashby, SmartRecruiters or Workable board. Turn off to only accept ATS URLs and slugs.

## `includeRaw` (type: `boolean`):

Attach the untouched JSON object returned by the ATS under the 'raw' field. Bigger rows; useful when you need a field the common schema does not carry.

## Actor input object example

```json
{
  "companies": [
    "https://boards.greenhouse.io/gitlab",
    "lever:leverdemo",
    "https://jobs.ashbyhq.com/linear"
  ],
  "titleKeywords": [],
  "excludeKeywords": [],
  "locationKeywords": [],
  "remoteOnly": false,
  "countries": [],
  "atsFilter": [],
  "maxResults": 20,
  "maxJobsPerCompany": 20,
  "includeDescription": false,
  "onlyNewSinceLastRun": false,
  "watchId": "",
  "resolveCareersPages": true,
  "includeRaw": false
}
```

# Actor output Schema

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

No description

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

No description

# 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://boards.greenhouse.io/gitlab",
        "lever:leverdemo",
        "https://jobs.ashbyhq.com/linear"
    ],
    "maxResults": 20,
    "maxJobsPerCompany": 20,
    "includeDescription": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("andocaps/ats-job-postings").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://boards.greenhouse.io/gitlab",
        "lever:leverdemo",
        "https://jobs.ashbyhq.com/linear",
    ],
    "maxResults": 20,
    "maxJobsPerCompany": 20,
    "includeDescription": False,
}

# Run the Actor and wait for it to finish
run = client.actor("andocaps/ats-job-postings").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://boards.greenhouse.io/gitlab",
    "lever:leverdemo",
    "https://jobs.ashbyhq.com/linear"
  ],
  "maxResults": 20,
  "maxJobsPerCompany": 20,
  "includeDescription": false
}' |
apify call andocaps/ats-job-postings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andocaps/ats-job-postings"
        }
    }
}
```

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/5lsMXeDnHZ0pasp5M/builds/chICAebN0mnhDaYIQ/openapi.json
