# Ashby and Lever Job Board Locations (`natstandridge/ashby-lever-job-groups`) Actor

Batch Ashby and Lever careers URLs for postingKey, title, jobUrl, primaryLocation, locations and locationCount. Each employer posting appears once with every advertised location and its official role link. $0.00045 per delivered posting ($0.45 per 1,000).

- **URL**: https://apify.com/natstandridge/ashby-lever-job-groups.md
- **Developed by:** [Nathaniel Standridge](https://apify.com/natstandridge) (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

$0.45 / 1,000 delivered 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

## Ashby & Lever Job Boards — All Locations per Posting

Get `postingKey`, `title`, `primaryLocation`, `locations`, `locationCount` and `jobUrl` for a mixed batch of public Ashby and Lever boards. Each delivered posting costs **$0.00045** ($0.45 per 1,000). A posting that lists London, Dublin and Berlin uses one dataset row and one event.

Use this when your recruiting dashboard needs both a count of openings and a searchable list of eligible locations. Upsert rows using `postingKey`. It combines the provider, board and source posting UUID. Two postings with the same title and different UUIDs stay separate.

### Choose boards

```json
{
  "boards": ["https://jobs.ashbyhq.com/linear", "https://jobs.lever.co/spotify"],
  "maxJobsPerBoard": 5
}
```

Paste the employer’s official Ashby, Lever or Lever EU board URL. Short identifiers such as `ashby:linear`, `lever:spotify` and `lever-eu:company` also work. One call accepts up to six boards and up to 50 postings per board. Duplicate boards are fetched once. The example can deliver up to ten rows, for $0.0045 in posting events.

### Read a result

This sample represents a fictional employer.

```json
{
  "postingKey": "ashby:example:f9872e21-f2cd-4fb3-a625-8815c4575fc9",
  "provider": "ashby",
  "board": "example",
  "postingId": "f9872e21-f2cd-4fb3-a625-8815c4575fc9",
  "title": "Support Engineer",
  "primaryLocation": "Dublin",
  "locations": ["Dublin", "London"],
  "locationCount": 2,
  "department": "Customer Support",
  "workplaceType": "Hybrid",
  "jobUrl": "https://jobs.ashbyhq.com/example/f9872e21-f2cd-4fb3-a625-8815c4575fc9"
}
```

The Actor preserves the employer’s location labels. A label such as “United States or Canada” stays a single label. When the source provides no primary label but lists secondary locations, `primaryLocation` is null. Missing department and workplace type also appear as null. Locations on repeated observations of the same posting are combined. Conflicting titles on one UUID, missing location data, invalid IDs and unsafe links are skipped and counted in the run summary.

### Connect a workflow

**Apify MCP.** Connect the hosted server at [mcp.apify.com](https://mcp.apify.com), then give your agent this request.

> Run natstandridge/ashby-lever-job-groups with boards \["https://jobs.ashbyhq.com/linear","https://jobs.lever.co/spotify"] and maxJobsPerBoard 5. Return the postingKey and all locations for each posting.

**n8n or Make.** In n8n, add an HTTP Request node. In Make (make.com), choose HTTP → Make a request. Set the method to `POST` and use this endpoint. Set an Authorization header with a securely stored Apify bearer credential, choose JSON for the request body, and paste the example input above. The response is an array of postings.

```text
https://api.apify.com/v2/acts/natstandridge~ashby-lever-job-groups/run-sync-get-dataset-items?timeout=60&memory=256&maxTotalChargeUsd=0.0045
```

**Python SDK.** This example uses `apify-client==3.4.0` and an Apify credential supplied through the process environment.

```python
import os
from decimal import Decimal
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("natstandridge/ashby-lever-job-groups").call(
    run_input={"boards": ["https://jobs.ashbyhq.com/linear", "https://jobs.lever.co/spotify"], "maxJobsPerBoard": 5},
    max_total_charge_usd=Decimal("0.0045"),
)
if run is None:
    raise RuntimeError("Run did not finish")
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row["postingKey"], row["locations"])
```

### Check board coverage

The default dataset contains only delivered, billable postings. Open the `OUTPUT` record in the run’s key-value store for the free per-board summary. Each board lists the rows read, malformed or unlisted rows skipped, duplicates, and delivered postings. `wholeBoardDelivered` is true only when the source was exhausted and all valid postings were delivered. A normal capped sample can finish successfully with this flag false. A zero-result board can be genuinely empty. Source failures carry a separate error code.

Results follow source order. A posting absent from a capped or partial sample does not establish that a job closed. There is no search of arbitrary websites, historical archive or cross-run change tracking. A new run can return and bill previously observed postings. Resuming the same run reconciles the saved plan and dataset before any further delivery.

Source reads are bounded to 16 MiB per response and up to 75 source rows per Lever board. Large Ashby boards can exceed the response limit because Ashby returns the full jobs array in a single request. Outputs preserve up to 128 advertised labels per posting, and a malformed or oversized posting produces a coverage entry without a posting charge. [Ashby Job Postings API](https://developers.ashbyhq.com/docs/public-job-posting-api) · [Lever Postings API](https://github.com/lever/postings-api)

# Actor input Schema

## `boards` (type: `array`):

Paste one to six official HTTPS board URLs from jobs.ashbyhq.com, jobs.lever.co or jobs.eu.lever.co. Provider:board identifiers such as ashby:linear also work. A board URL and its corresponding identifier are fetched once.

## `maxJobsPerBoard` (type: `integer`):

Return up to this many distinct, listed postings from each board in source order. The free run summary reports board coverage.

## Actor input object example

```json
{
  "boards": [
    "https://jobs.ashbyhq.com/linear",
    "https://jobs.lever.co/spotify"
  ],
  "maxJobsPerBoard": 5
}
```

# Actor output Schema

## `postings` (type: `string`):

No description

## `coverage` (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 = {
    "boards": [
        "https://jobs.ashbyhq.com/linear",
        "https://jobs.lever.co/spotify"
    ],
    "maxJobsPerBoard": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("natstandridge/ashby-lever-job-groups").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 = {
    "boards": [
        "https://jobs.ashbyhq.com/linear",
        "https://jobs.lever.co/spotify",
    ],
    "maxJobsPerBoard": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("natstandridge/ashby-lever-job-groups").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 '{
  "boards": [
    "https://jobs.ashbyhq.com/linear",
    "https://jobs.lever.co/spotify"
  ],
  "maxJobsPerBoard": 5
}' |
apify call natstandridge/ashby-lever-job-groups --silent --output-dataset

```

## MCP server setup

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

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/UKERTyKlIEq0SvMbl/builds/Z1QSsUHGDClR4Utn8/openapi.json
