# ATS Job Scraper: Greenhouse, Lever & Ashby (`kizukidata/ats-jobs`) Actor

Scrape jobs from Ashby, Greenhouse, Lever, Workable, SmartRecruiters, and Recruitee boards: title, location, pay range, pay transparency rule, and apply link. Track new and closed jobs on a schedule. Not affiliated with these ATS.

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

## Pricing

from $0.48 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What does ATS Job Scraper do?

Scrape live job postings from Ashby, Greenhouse, Lever, Workable, SmartRecruiters, and Recruitee boards in one normalized schema: title, department, team, location, country, workplace/employment type, published pay range with annualized figures, `payTransparencyRule` by jurisdiction, posting date, apply link, and description.

Filter by **Title keywords**, **Location keywords**, **Countries**, **Remote jobs only**, or **Pay range only** (excluded jobs are free), and enable `onlyNewItems` or `includeClosed` on a schedule. Empty input (`{}`) returns 10 jobs from three example boards.

### What data can you get?

One row per job, 33 fields. A value the board does not give is `null`; `secondaryLocations`, `countryCodes` and `salaryRanges` are empty arrays when there is nothing to add.

| Field | Description |
|---|---|
| `source` | ATS the job comes from: `ashby`, `greenhouse`, `lever`, `workable`, `smartrecruiters` or `recruitee`. |
| `jobId` | Job ID in that ATS. |
| `companyBoard` | Board name as used in the job-page URL. |
| `companyName` | Company display name when the ATS gives one; `null` for Ashby and Lever, which do not. |
| `title`, `department`, `team` | Job title, department and team as published. |
| `location` | Primary location, as written by the company. |
| `secondaryLocations` | Other locations on the same posting, as written. |
| `country` | ISO 3166-1 alpha-2 country: the ATS's own code, else the single country the location names, else the ATS's own country text, which may be a name such as `European Union` instead of a code; `null` when the location names no country or more than one. |
| `countryCodes` | Every ISO 3166-1 alpha-2 code named in the ATS country field and in the locations, sorted; `[]` when no country is stated. A multi-country row keeps all of them. |
| `url` | Job posting URL. |
| `applyUrl` | Application page URL; `null` when the board gives none. |
| `postedAt` | Last publish time, ISO 8601 UTC; `null` when the board gives no date. |
| `scrapedAt` | Time the row was collected. |
| `isNew` | With Only new jobs or Report closed jobs: `true` when no earlier run with the same input returned the job, `false` when one did (only with Report closed jobs on and Only new jobs off). `null` when neither option is on. |

| Field | Description |
|---|---|
| `remote` | `true` when the ATS says the job is remote or hybrid; `null` when it says nothing, so an unknown job is not counted as on-site. Workable sets it only for jobs it calls fully remote. |
| `workplaceType` | `onsite`, `remote` or `hybrid` as the ATS states it, `null` when it does not. |
| `employmentType` | `full_time`, `part_time`, `internship`, `contract` or `temporary` from the ATS's field or a labelled line in the posting; `null` when neither says. |

| Field | Description |
|---|---|
| `compensationSummary` | Pay summary or pay-range title as published: Ashby, Lever and Recruitee publish structured pay, and so does a Greenhouse board that publishes a pay range (for example `Base Salary`); on other Greenhouse boards and on Workable the range is read from the posting text when the company states it there; SmartRecruiters' list carries no pay. |
| `salaryMin`, `salaryMax` | Lowest and highest amount of the published range, as published. When a job publishes more than one range, these and the other pay fields describe the first; `salaryRanges` lists the ranges. |
| `salaryCurrency` | ISO 4217 currency code of the range. |
| `salaryPeriod` | `year`, `month`, `week`, `day` or `hour`, as the source states it; `null` when neither the ATS's own fields nor the posting's pay sentence state a period. A range read from the posting text with no period is `year` when the amount is 10,000 or more. |
| `salaryAnnualMin`, `salaryAnnualMax` | The same range converted to a yearly amount in the same currency; `null` when no pay is published, or when the range came from the ATS's own fields and neither they nor the posting's pay sentence state a period. A range read from the posting text with no period and an amount of 10,000 or more is treated as yearly. |
| `hasPayRange` | `true` when both a minimum and a maximum are published or extracted. |
| `salarySource` | `structured` when the ATS publishes the range in its own fields (Ashby, Lever, Recruitee, and Greenhouse boards that publish a pay range), `description` when it was read from the posting text, `null` when no pay range is published. |
| `salaryRanges` | The pay ranges the job publishes together, in the order published: every range in a Greenhouse board's pay fields, or the ranges a posting states one after another in its pay passage, for example one for Denver and one for New York. Each range has `min`, `max`, `currency`, `period`, `annualMin`, `annualMax` and `text`: the range as written, with the place when the posting writes it right before or after the range, or the ATS's range title. The first is the row's own range. Amounts for a bonus, equity or commission are not listed as further ranges, and ranges are not merged into one. |

| Field | Description |
|---|---|
| `payTransparencyRule` | The general pay-disclosure rule in force, on the day the row was written, in the job's country (in the US, its state): `required-in-ad` (the pay or pay range must be in the job ad), `before-interview` (used for some EU countries: before the interview, not necessarily in the ad), `during-hiring` (used where a US state's law works this way: to the applicant on request, at hire or before an offer, not required in the ad), `none` (no such rule found where it was checked) or `unknown` (not in the table, not confirmed, or the place could not be determined). It describes the place, not the employer or the ad: it does not say whether a particular employer is covered by the rule or whether a particular job ad meets it. Reference information, not legal advice. |
| `payTransparencyRegion` | The place the rule comes from: an ISO 3166-1 alpha-2 country code, or `US-<state>` (for example `US-CA`). For `unknown`, the one place that is not in the table, or `null` when there are several or none. |
| `payTransparencyEffectiveFrom` | First day the rule applied (`YYYY-MM-DD`); `null` when there is no rule or no date is recorded. |

| Field | Description |
|---|---|
| `description` | Plain-text job description, cut to 4,000 characters; `null` for SmartRecruiters, whose list carries no posting text. |

**What is not returned:** applicant or candidate data of any kind; jobs from companies whose boards you did not name; a pay figure when the company publishes none, or a yearly figure when the period is missing and the range is not a text-read amount of 10,000 or more; a description longer than 4,000 characters; direct-link-only Ashby jobs, which the board keeps unlisted. There is no company search and no ATS guess from a company name. The pay transparency rule describes the place, not the employer or the ad, and `hasPayRange: false` on a `required-in-ad` row does not mean the ad has no pay.

### How to use ATS Job Scraper

1. Find the board name in the company's job-page URL: the part after the ATS host, or the subdomain on Recruitee. For example `jobs.ashbyhq.com/openai` (board `openai`), `job-boards.greenhouse.io/airbnb` (`airbnb`), `jobs.lever.co/leverdemo` (`leverdemo`), `apply.workable.com/huggingface` (`huggingface`), `jobs.smartrecruiters.com/Visa` (`Visa`) and `bunq.recruitee.com` (`bunq`).
2. Add each board to **Company job boards** as `ashby:openai`, `greenhouse:airbnb`, `lever:leverdemo`, `workable:huggingface`, `smartrecruiters:Visa` or `recruitee:bunq`, or paste the job-page URL. An entry without an ATS prefix is not guessed: it is skipped and named in the run summary.
3. Optionally add **Title keywords**, **Location keywords**, **Countries** and tick **Remote jobs only** or **Pay range only**.
4. Set **Maximum results** and run the Actor.
5. Read the dataset, or export it as JSON, CSV or Excel.

#### Input example

```json
{
    "companies": ["greenhouse:airbnb", "ashby:posthog", "lever:leverdemo"],
    "titleKeywords": ["engineer"],
    "countries": ["US"],
    "maxItems": 50
}
```

This returns up to 50 US engineering jobs from the three boards.

#### Output example (one job, shortened)

A real row from a run on 2026-11-12, with the description cut short here.

```json
{
    "source": "ashby",
    "jobId": "8101bdeb-69ff-4797-838b-7344842b85a4",
    "companyBoard": "ramp",
    "companyName": null,
    "title": "Senior Engineer, Backend, Procurement",
    "department": "Engineering",
    "team": "Engineering",
    "location": "New York, NY (HQ)",
    "secondaryLocations": [],
    "country": "US",
    "remote": true,
    "workplaceType": "hybrid",
    "employmentType": "full_time",
    "compensationSummary": "$204K - $280K",
    "salaryMin": 204000,
    "salaryMax": 280000,
    "salaryCurrency": "USD",
    "salaryPeriod": "year",
    "postedAt": "2026-11-10T21:13:22.545Z",
    "url": "https://jobs.ashbyhq.com/ramp/8101bdeb-69ff-4797-838b-7344842b85a4",
    "applyUrl": "https://jobs.ashbyhq.com/ramp/8101bdeb-69ff-4797-838b-7344842b85a4/application",
    "description": "As a Senior Backend Engineer on Procurement, you will … (cut here; the row carries up to 4,000 characters)",
    "scrapedAt": "2026-11-12T12:23:18.965Z",
    "isNew": null,
    "salaryAnnualMin": 204000,
    "salaryAnnualMax": 280000,
    "hasPayRange": true,
    "salarySource": "structured",
    "salaryRanges": [
        {
            "min": 204000,
            "max": 280000,
            "currency": "USD",
            "period": "year",
            "annualMin": 204000,
            "annualMax": 280000,
            "text": "$204K - $280K"
        }
    ],
    "countryCodes": [
        "US"
    ],
    "payTransparencyRule": "required-in-ad",
    "payTransparencyRegion": "US-NY",
    "payTransparencyEffectiveFrom": "2023-09-17"
}
```

This posting publishes a yearly range, so `salaryAnnualMin` and `salaryAnnualMax` equal the published amounts. New York's state law requires the pay or a pay range in covered job ads. The rule describes the place, not this employer: it does not say whether this employer is covered.

### New and closed jobs

Run the same input on a schedule to get only what changed.

- **Only new jobs** (`onlyNewItems: true`) returns jobs that no earlier run with the same input returned. Each row has `isNew: true`. The first run returns up to **Maximum results**, like a normal run; jobs left out by the cap come back as new on the next run.
- **Report closed jobs** (`includeClosed: true`) lists jobs that an earlier run returned but the board no longer publishes, in the run summary under `closedItems` (`status: "closed"`, `source`, `companyBoard`, `jobId`, `url`, `firstReturnedAt`, `lastSeenAt`, `closedDetectedAt`). They are not written to the dataset and not charged. Each job is reported once.
- The history is kept per input for 90 days. Changing the boards or a filter starts a new history; changing **Maximum results** does not.
- A board that cannot be read in a run closes nothing in that run.
- Do not run the same input twice at the same time: both runs read the same history and return the same jobs.

```json
{
    "companies": ["greenhouse:discord", "lever:leverdemo"],
    "onlyNewItems": true,
    "includeClosed": true,
    "maxItems": 100
}
```

Without either option, a run returns the current jobs that match the filters, up to **Maximum results**, and `isNew` is `null`.

### How much does it cost?

Launch pricing. ATS Job Scraper uses pay-per-event pricing: you pay for each job row returned, not for the time the run takes.

| Apify plan (discount tier) | Price per 1,000 rows (USD) | Price per row (USD) |
|---|---|---|
| **Free** | $0.80 | $0.00080 |
| **Starter (Bronze)** | $0.72 | $0.00072 |
| **Scale (Silver)** | $0.64 | $0.00064 |
| **Business (Gold)** | $0.48 | $0.00048 |

Apify's Free plan includes USD 5 of monthly usage, which covers about 6,250 rows at the Free tier price, run start fees aside.

- **Run start fee**: USD 0.00005 per GB of memory per run.
- Jobs removed by a filter are **not charged**.
- With **Only new jobs**, a job returned before is **not charged** again. Closed jobs are never charged.
- A board that is not found or cannot be read is not charged, and a run that returns no jobs costs only the run start fee.
- Jobs beyond **Maximum results** are not written and not charged; one run stops at 5,000 jobs.

### Limits

- **Independent tool.** It is not affiliated with, endorsed by or sponsored by Ashby, Greenhouse, Lever, Workable, SmartRecruiters or Recruitee; their names are used only to say which job boards it reads.
- **Yearly pay and transparency rules.** Hour/day/week/month amounts convert by 2,080/260/52/12 (or 13/14 monthly payments instead of 12 when stated; no FX). Ranges in text without a period >= 10,000 are treated as yearly; a range from the ATS's own fields with no period keeps the yearly fields null. `payTransparencyRule` (`required-in-ad`, `before-interview`, `during-hiring`, `none`, `unknown`) describes the jurisdiction's general rule, not the employer or ad.
- **Rows per run**: 1 to 5,000 (`maxItems`), default 10. Each board first gets an equal share of what is left, newest postings first, and room a small board leaves unused goes to the other boards' extra jobs.
- **You name the boards.** There is no search across companies and no ATS detection from a company name; an entry without an ATS prefix is skipped and named in the run summary.
- **Published jobs only.** Postings a company keeps unlisted, such as Ashby's direct-link-only jobs, are not returned.
- **Coverage differs by ATS.** Pay comes from the ATS's own fields for Ashby, Lever, Recruitee and Greenhouse boards that publish a pay range. On Greenhouse boards without one, and on Workable, the range is read from the posting text when the company states it there. Many Greenhouse ranges name no period, so `salaryMin` and `salaryMax` carry the amounts while `salaryPeriod`, `salaryAnnualMin` and `salaryAnnualMax` stay `null`. Greenhouse gives an employment type only when the board sets it in its metadata or the posting names one in a line. Ashby and Lever give no company display name. Workable gives a date without a time and sets `remote: true` and `workplaceType: "remote"` only for fully remote jobs; its other jobs get `null` for both, with no on-site or hybrid mark. SmartRecruiters' list has no posting text, so `description` is always `null` there, and no pay.
- **Description** is cut to 4,000 characters.
- **Pay transparency rule** is reference information about a place. It is not legal advice or a compliance check: it does not say whether a particular employer is covered by the rule or whether a particular job ad meets it. The rule is taken only from the places the posting names; when it names several, the strictest among them is reported, and when several are equally strict, the one with the earliest recorded effective date (a place with no recorded date comes last); `payTransparencyRegion` names that one place only. Places are read from the location text. A two-letter code after a city is read as a US state unless the posting or the ATS names another country that the Actor knows, so a location written with another country's region or country code (for example `Barcelona, CT` or `Podgorica, ME`) can get that state's rule. Five codes in the table (CA, CO, DE, IL and WA) get a stricter reading: after a city they are read as the state when the Actor knows the city as a US city, or when the posting or the ATS names the United States. A place written this way with a city the Actor does not know and no country (for example `Boulder, CO` or `Sacramento, CA`) is `unknown`, with no region.
- **What the table covers.** In the US: CA, CO, CT, DC, DE (from 2027-09-26), HI, IL, MA, MD, ME, MN, NJ, NY, RI (as `during-hiring`), VA, VT and WA, checked on 2026-11-12 against each jurisdiction's statute or regulation text or its state agency's guidance. A US state is never `none`: any other state, Delaware before 2027-09-26, and a US job that names no state are `unknown`. Outside the US the table covers some EU countries, taken on 2026-11-05 from published summaries of national law, not from the law texts; `none` there means those summaries showed no such rule in force on that date. Every other country is `unknown`. A rule applies only from its effective date, and the row uses the rule in force on the day it was written.
- **Not taken into account.** Employer-size thresholds, city ordinances, and the way some laws reach remote jobs or employers based elsewhere.
- **Pay is not the same as a pay range.** Do not read `required-in-ad` together with `hasPayRange: false` as a missing pay range: a single amount is not a range, SmartRecruiters rows carry no pay, a range written only in the posting text is not read on Ashby, Lever and Recruitee, and pay written in a form the Actor does not read is not picked up.
- **An empty dataset** means that no job matched the filters, that the boards published no jobs, that every board entry was skipped, or that nothing was new with **Only new jobs** on. The run summary names the boards that were skipped or not reached.
- **No applicant data** is collected or returned, and the Actor does not log in.

### Integrations and API

Run the Actor from your own code or an automation tool. Replace `<APIFY_TOKEN>` with your API token.

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/kizukidata~ats-jobs/runs" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"companies":["greenhouse:airbnb","ashby:posthog"],"onlyNewItems":true,"maxItems":50}'
```

Poll `GET https://api.apify.com/v2/actor-runs/<RUN_ID>` for the status, read `defaultDatasetId`, then fetch `GET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json`.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("kizukidata/ats-jobs").call(run_input={
    "companies": ["greenhouse:airbnb", "ashby:posthog"],
    "countries": ["US"],
    "maxItems": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["companyBoard"], item["title"], item["salaryAnnualMin"])
```

#### JavaScript

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

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('kizukidata/ats-jobs').call({
    companies: ['greenhouse:discord', 'lever:leverdemo'],
    onlyNewItems: true,
    maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((item) => `${item.title} at ${item.companyBoard}: ${item.url}`));
```

#### Zapier, Make and n8n

Use the Apify integration, choose **Run Actor**, and map `companies`, `countries` and `maxItems`. Add **Get dataset items** after the run and map the flat fields (`title`, `companyBoard`, `location`, `salaryAnnualMin`, `payTransparencyRule`, `url`) to a spreadsheet, ATS or notification step. A daily schedule with `onlyNewItems: true` gives one row per new job.

#### LangChain

Load the rows as documents: `title` and `companyBoard` in `page_content`, and `source`, `country`, `workplaceType`, `employmentType`, `salaryAnnualMin`, `salaryAnnualMax`, `payTransparencyRule`, `postedAt` and `url` in metadata. `ApifyDatasetLoader` from the Apify LangChain integration works with the run's dataset ID.

#### Use it from an MCP client

The Actor is a tool on the hosted Apify MCP server. MCP URL:

```text
https://mcp.apify.com?tools=kizukidata/ats-jobs
```

- **Claude Code**: `claude mcp add --transport http apify "https://mcp.apify.com?tools=kizukidata/ats-jobs"`
- **Claude Desktop / claude.ai**: Settings → Connectors → Add custom connector, and paste the URL.
- **Cursor** (`~/.cursor/mcp.json`) and other clients that read an `mcpServers` file:

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=kizukidata/ats-jobs"
        }
    }
}
```

- **n8n**: add an **MCP Client Tool** node to an AI Agent, set the endpoint to the URL above (HTTP Streamable), and use Bearer authentication with your Apify API token stored as an n8n credential.

The server signs you in to Apify with OAuth. A client that cannot use OAuth, such as the n8n node above, can send your Apify API token in an `Authorization: Bearer <APIFY_TOKEN>` header instead. An agent can ask, for example, "which jobs at Airbnb are new this week" and call the Actor with `{"companies":["greenhouse:airbnb"],"onlyNewItems":true,"maxItems":20}`, or "which US jobs at PostHog publish a pay range" with `{"companies":["ashby:posthog"],"countries":["US"],"payRangeOnly":true,"maxItems":30}`. Keep `maxItems` small so the call returns inside the MCP timeout.

### Related Kizuki Actors

- [LinkedIn Jobs Scraper](https://apify.com/kizukidata/linkedin-jobs-feed) — public LinkedIn job results with title, company, location and posted date, for the jobs company boards do not list.
- [UK Visa Sponsor Jobs](https://apify.com/kizukidata/uk-visa-sponsor-jobs) — the jobs of the companies you name on Greenhouse, Lever, Ashby or Workable, tagged with their Home Office sponsor register match.
- [Canada LMIA Employers](https://apify.com/kizukidata/canada-lmia-employers) — the Positive LMIA employer list by quarter, province and NOC code, for foreign-worker hiring leads.
- [Website Contact Scraper](https://apify.com/kizukidata/website-contact-intelligence) — the hiring company's published contact details and mail setup, one row per domain.

# Actor input Schema

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

Boards as ashby:BOARD, greenhouse:BOARD, lever:BOARD, workable:BOARD, smartrecruiters:COMPANY, recruitee:COMPANY, or URLs. Default: 3 sample boards. Entries without an ATS prefix are skipped and named in the run summary.

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

Up to 20 case-insensitive title keywords (e.g. engineer matches Engineering Manager). Empty keeps all; filtered jobs are free.

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

Up to 20 location/country keywords (<=3 chars match whole words only). Empty keeps all; filtered jobs are free.

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

ISO 3166-1 alpha-2 codes (e.g. \["IN","US"]) matched via ATS code, location text, or cities in 12 supported countries. Drops undetermined rows.

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

true keeps only fully remote jobs (workplaceType="remote"), dropping hybrid/on-site/unknown. Off by default.

## `payRangeOnly` (type: `boolean`):

true keeps only jobs with both min and max salary (hasPayRange=true); drops single-value or unstated pay. Filtered jobs are free.

## `onlyNewItems` (type: `boolean`):

true returns only jobs unseen in prior runs with identical input (90-day state); off by default. Avoid concurrent identical runs.

## `includeClosed` (type: `boolean`):

true lists jobs removed since the prior run in OUTPUT closedItems (not in dataset, free). Works with or without onlyNewItems.

## `maxItems` (type: `integer`):

Max jobs per run (1-5,000, default 10). Fairly shared across boards, newest first, reallocating unused slots. Each returned row is charged.

## `proxyConfiguration` (type: `object`):

No proxy by default, which works for these public boards. Residential proxies are not available in this Actor.

## Actor input object example

```json
{
  "companies": [
    "ashby:posthog",
    "greenhouse:discord",
    "lever:leverdemo"
  ],
  "titleKeywords": [
    "engineer",
    "data"
  ],
  "locationKeywords": [],
  "countries": [],
  "remoteOnly": true,
  "payRangeOnly": true,
  "onlyNewItems": true,
  "includeClosed": true,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Job postings returned by this run.

## `runSummary` (type: `string`):

Status code, counters, skipped input entries and, with includeClosed, closedItems (jobs no longer published; not charged) of this run.

# 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": [
        "ashby:posthog",
        "greenhouse:discord",
        "lever:leverdemo"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kizukidata/ats-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": [
        "ashby:posthog",
        "greenhouse:discord",
        "lever:leverdemo",
    ],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("kizukidata/ats-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": [
    "ashby:posthog",
    "greenhouse:discord",
    "lever:leverdemo"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call kizukidata/ats-jobs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kizukidata/ats-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/PcxnPTKJKq9cTZW4M/builds/d63mHsdqZ6J7jlJAL/openapi.json
