如何用一個 API 擷取 Greenhouse、Lever 和 Ashby 的職位空缺
Scrape job postings from Greenhouse, Lever & Ashby with one API
這篇教學示範如何用一個 API 呼叫 Greenhouse、Lever、Ashby、SmartRecruiters 和 Recruitee 的公開 JSON API,並將職位資料整理成統一格式。
Every ATS platform — Greenhouse, Lever, Ashby, SmartRecruiters, Recruitee — exposes an official public JSON API for job postings. You don't need a browser scraper, a proxy pool, or a CAPTCHA solver for any of them. What you actually need is one integration that calls all five and returns a common schema, because every vendor's payload is shaped differently.
This tutorial walks through the pattern: the five public endpoints, the normalization gotchas per platform, and a ready-to-run implementation that turns all of it into a single API call.
Why the official APIs are the right move
Three reasons, in order of importance:
- Compliance is a non-issue. These endpoints exist specifically so job data can flow programmatically. No login walls, no robots.txt conflicts, no ToS violations — which matters if your output feeds a compliance-sensitive pipeline or gets shared with clients.
- Reliability. Vendor APIs don't break when a careers page gets redesigned. HTML scraping breaks on every CSS or markup change; a JSON endpoint is a contract.
- Cost. No rendering, no proxies, no captchas. A measured run that returned 9 jobs across three platforms used 0.0044 compute units — well under a tenth of a cent of platform usage.
The trade-off is coverage: only platforms with public endpoints are available, and some (looking at you, Workday) are not reachable at all.
The five endpoints
All of them are plain GETs:
| Platform | Endpoint | Notes |
|---|---|---|
| Greenhouse | https://boards-api.greenhouse.io/v1/boards/{slug}/jobs |
Per-job description fetch available at /jobs/{id}?questions=false
|
| Lever | https://api.lever.co/v0/postings/{slug}?mode=json |
Descriptions come back as HTML — needs stripping |
| Ashby | https://api.ashbyhq.com/posting-api/job-board/{slug} |
Structured, but location/compensation shapes differ |
| SmartRecruiters | https://api.smartrecruiters.com/v1/companies/{slug}/postings?status=PUBLISHED |
No description in the listing response |
| Recruitee | https://{slug}.recruitee.com/api/offers/ |
Public offers endpoint; Cloudflare-fronted |
The {slug} is the company identifier from the platform's own job-board URL: boards.greenhouse.io/vercel → vercel, jobs.lever.co/netflix → netflix, jobs.ashbyhq.com/notion → notion.
The normalization problem
Same job, five shapes. Greenhouse gives you {absolute_url, location: {name}, content}. Lever gives {categories: {team, location, commitment}, descriptionPlain} plus an HTML description. Ashby nests everything under jobs[].location with a different address structure. If you're building a feed, you normalize once here and never think about vendor shapes again.
Target schema — this is a real record from a recent run, not a mock:
{
"platform": "greenhouse",
"companyId": "vercel",
"jobId": "6136160004",
"title": "Account Executive, Commercial",
"location": "Hybrid - London",
"department": null,
"employmentType": null,
"description": null,
"applyUrl": "https://job-boards.greenhouse.io/vercel/jobs/6136160004",
"postedAt": null,
"updatedAt": "2026-10-20T15:50:30-04:00",
"fetchedAt": "2026-10-21T13:03:22.758Z"
}
And the same run's Lever record, where the vendor does return a department and employment type:
{
"platform": "lever",
"companyId": "leverdemo",
"jobId": "ad208490-4052-4f91-a57e-433f2d1e484b",
"title": "Customer Success Manager",
"location": "Atlanta, Georgia",
"department": "Customer Success Team",
"employmentType": "Regular Full Time (Salary)",
"applyUrl": "https://jobs.lever.co/leverdemo/ad208490-4052-4f91-a57e-433f2d1e484b",
"postedAt": "2026-08-31T18:12:19.703Z"
}
Gotchas I hit:
- Lever descriptions are HTML inside JSON. Strip tags and collapse whitespace before storing.
-
Greenhouse needs a second request per job for descriptions. It's cheap, but it multiplies requests — make it optional (
includeDescription: falsewhen you only need listings). - SmartRecruiters and Recruitee have no cheap description path. Descriptions are omitted rather than fetching N extra pages per company. The listing fields are complete.
-
HTML entities and nested locations vary per vendor — write one
stripHtml+ one location normalizer and route everything through them.
The ready-to-run version
I packaged this as an Apify Actor so it runs on managed infrastructure without you hosting anything. Input is an array of sources:
{
"sources": [
{ "platform": "greenhouse", "companyId": "vercel" },
{ "platform": "lever", "companyId": "netflix" },
{ "platform": "ashby", "companyId": "notion" }
],
"maxJobsPerCompany": 50,
"includeDescription": true
}
Call it from any pipeline:
curl -X POST "https://api.apify.com/v2/acts/gp005~multi-ats-jobs-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sources":[{"platform":"greenhouse","companyId":"vercel"}],"maxJobsPerCompany":10,"includeDescription":false}'
Each job posting comes back as one dataset record in the schema above. Invalid company IDs and zero-result companies produce an error record with a plain-English reason — no silent empty runs.
Cost
Pay-per-event: $0.005 per run + $0.003 per job fetched. Three companies × 50 jobs = 150 jobs ≈ $0.46. A 1,000-job monthly monitoring cadence ≈ $3.01. There's also a hard per-run charge cap (maxTotalChargeUsd, default $10) so a misconfigured input can't surprise you on the bill.
Automation patterns
Once you have a feed, the useful things are: schedule a daily/weekly run and diff datasets to detect new postings; push new jobs to Slack/Sheets via Make or n8n; subscribe to ACTOR_RUN_FINISHED webhooks to load results into a CRM or warehouse. The actor is also available through the Apify MCP server, so an AI assistant can query live job postings directly.
FAQ
Is scraping job postings legal?
Using a platform's official public API with its documented endpoints, honoring robots.txt and rate limits, is not scraping in the web-scraping sense — but you remain responsible for how you use the data downstream.
Which ATS platforms have public job posting APIs?
Greenhouse, Lever, Ashby, SmartRecruiters, and Recruitee all ship public endpoints. Workday does not — its bot management blocks programmatic access without a browser.
Do I need proxies or a headless browser?
No. Every supported platform is a plain JSON API call; the actor rate-limits to roughly one request per second per company.
How much does it cost to scrape 1,000 jobs?
About $3.01 — $0.005 for the run plus 1,000 × $0.003 in per-job charges.
Can I monitor new postings automatically?
Yes — schedule the actor and compare datasets across runs, or use an ACTOR_RUN_FINISHED webhook to get notified on completion.
Store page with full docs: https://apify.com/gp005/multi-ats-jobs-scraper
來源:DEV Community · dev.to