Before you start
- Get an API keySign up for 100 free credits, no card. Keys start with
gs_live_. - Put it in the environmentEvery example reads it from
GROUNDSOCIAL_API_KEY:export GROUNDSOCIAL_API_KEY=gs_live_… - Set up PHP
php -m | grep curl # the curl extension ships with most PHP builds
Call Jobs on a Lever board API from PHP
GET /v1/jobs/lever/search. Save this as main.php and run php main.php. It reads the items in postings and prints text for each.
<?php
function groundsocial(string $path, array $params = []): array
{
$url = 'https://api.groundsocial.dev' . $path . ($params ? '?' . http_build_query($params) : '');
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('GROUNDSOCIAL_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
]);
$raw = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
$data = json_decode($raw, true);
if ($status !== 200) {
$e = $data['error'];
throw new RuntimeException($e['code'] . ': ' . ($e['hint'] ?? $e['message']));
}
return $data;
}
$data = groundsocial('/v1/jobs/lever/search', ['company' => 'palantir']);
foreach ($data['postings'] as $item) {
echo $item['text'] ?? '', PHP_EOL;
}The response
A real Jobs response to this call, recorded from the live API on 27 Nov 2026 and shortened for display: arrays keep their first items and … marks every cut. The recorded page had 50 items in postings. Live calls return current data in the same shape.
{
"company": "palantir",
"postings": [
{
"id": "6ed76ce8-4156-4b60-b120-403538bd66cd",
"text": "Administrative Business Partner",
"categories": {
"commitment": "Full-time",
"location": "Singapore, Singapore",
"team": "Administrative",
"allLocations": [
"Singapore, Singapore"
]
},
"country": "SG",
"workplaceType": "hybrid",
"createdAt": 1786469891368,
"hostedUrl": "https://jobs.lever.co/palantir/6ed76ce8-4156-4b60-b120-403538bd66cd",
"applyUrl": "https://jobs.lever.co/palantir/6ed76ce8-4156-4b60-b120-403538bd66cd/apply",
"descriptionPlain": "A World-Changing Company\n \nPalantir builds the world’s leading software for data-driven de…",
"description": "<div><strong><span style=\"font-size: 18px;\">A World-Changing Company</span></strong></div>…",
"lists": [
{
"text": "Administrative Business Partner (Foundry)",
"content": "\n<li>Provide administrative support to a portfolio of individuals/teams across the busines…"
},
{
"text": "What We Value",
"content": "\n<li>Ability to adjust quickly, anticipate needs, and implement autonomously, with strong …"
},
"… 1 more"
],
"additionalPlain": "Palantir is particularly interested in applicants who have a current right to work in Sing…",
"additional": "<div>Palantir is particularly interested in applicants who have a current right to work in…",
"opening": "<div><strong><span style=\"font-size: 18px;\">A World-Changing Company</span></strong></div>…",
"…": "3 more fields"
},
{
"id": "ac978161-6f46-4f6b-ad9e-a258e642751c",
"text": "Administrative Business Partner",
"categories": {
"commitment": "Full-time",
"location": "London, United Kingdom",
"team": "Administrative",
"allLocations": [
"London, United Kingdom"
]
},
"country": "GB",
"workplaceType": "onsite",
"createdAt": 1711403416463,
"hostedUrl": "https://jobs.lever.co/palantir/ac978161-6f46-4f6b-ad9e-a258e642751c",
"applyUrl": "https://jobs.lever.co/palantir/ac978161-6f46-4f6b-ad9e-a258e642751c/apply",
"descriptionPlain": "A World-Changing Company\n \nPalantir builds the world’s leading software for data-driven de…",
"description": "<div><strong><span style=\"font-size: 18px;\">A World-Changing Company</span></strong></div>…",
"lists": [
{
"text": "Administrative Business Partner (Foundry)",
"content": "\n<li>Provide administrative support to a portfolio of individuals/teams across the busines…"
},
{
"text": "What We Value",
"content": "\n<li>Ability to adjust quickly, anticipate needs, and implement autonomously, with strong …"
},
"… 1 more"
],
"additionalPlain": "Life at Palantir\n \nWe want every Palantirian to achieve their best outcomes, that’s why we…",
"additional": "<div><strong><span style=\"font-size: 18px;\">Life at Palantir</span></strong></div>\n<div>&n…",
"opening": "<div><strong><span style=\"font-size: 18px;\">A World-Changing Company</span></strong></div>…",
"…": "3 more fields"
},
"… 48 more"
],
"pagination": {
"page": 1,
"per_page": 50,
"total": null,
"has_more": true,
"next_page": 2
}
}Top-level fields
| Field | Type | Description |
|---|---|---|
company | string | – |
postings | LeverPosting[] | – |
pagination | JobsPagePagination | – |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
company | query | string | The Lever company name, e.g. palantir. Example: palantir. |
url | query | string | A jobs.lever.co (or jobs.eu.lever.co) link instead. |
page | query | integer | Page number, from 1 (default 1). pagination.next_page is the next one. |
Errors and retries
Every error is JSON with error.code (stable: branch on it), message, hint (what to do next), docs_url and retryable. A failed call is never charged. Retry only when retryable is true, after the Retry-After header.
try {
$data = groundsocial('/v1/jobs/lever/search', ['company' => 'palantir']);
} catch (RuntimeException $e) {
// "code: hint", e.g. "target_not_found: ..." (never charged).
fwrite(STDERR, $e->getMessage() . PHP_EOL);
exit(1);
}| Status | Meaning |
|---|---|
200 | A page of postings. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No such board, job posting or salary title. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Jobs is temporarily unavailable. Retryable; nothing was charged. |
Every error code and what to do about it.
Pricing
| Cost | |
|---|---|
| Per call | 1 credit per call |
| 1,000 calls | $1.00 on the starter pack, $0.40 at volume |
| No key (MPP or x402) | $0.01 per call |
| Failed call | Refunded, never charged |
Every response has x-credits-charged and x-credits-remaining headers. Credits never expire. Packs and calculator.
From an AI agent (MCP)
The same call is the jobs_lever_search tool on the hosted MCP server, so Claude, Cursor or any MCP client can make it without code. Add the server once:
claude mcp add --transport http groundsocial https://api.groundsocial.dev/mcpThen ask for it in words (“A company’s open jobs on Lever, 50 a page, with descriptions and salary ranges”), or call the tool directly:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "jobs_lever_search",
"arguments": {
"company": "palantir"
}
}
}MCP setup for Claude Desktop, Cursor, VS Code and ChatGPT.
Use Jobs lever search in a pipeline
A company’s open jobs on Lever, 50 a page, as Lever’s postings API returns them: title (text), team, department, location, commitment, workplaceType, country, createdAt (ms), hostedUrl, applyUrl, the full description (plain and HTML, lists) and salaryRange when published. Pass company (the name after jobs.lever.co/) or url; EU-hosted boards (jobs.eu.lever.co) work by url.
Keep going
- This call in Python, JavaScript, TypeScript, Go, cURL.
- Jobs on a Lever board API reference: every field and status code.
- Jobs tutorials and all PHP tutorials.
- Jobs API: every endpoint and price.
- How to scrape Jobs on a Greenhouse board with PHP: A company’s open jobs on its Greenhouse board, 50 a page.
- How to scrape Jobs on an Ashby board with PHP: A company’s open jobs on Ashby, 20 a page, with descriptions and compensation.
- How to search a Workday careers site with PHP: Search a company’s Workday careers site, 20 jobs a page.
- How to search Levels.fyi jobs with PHP: Levels.fyi jobs with pay, grouped by company, with filters for level, pay and workplace.
- How to search Xing jobs with PHP: Search Xing job postings (Germany, Austria, Switzerland) with salary, by keywords and filters.
- How to get a Greenhouse job with PHP: One Greenhouse job with its full description, departments, offices and pay ranges.
Run it on your own data
One key for Jobs and 76 more platforms, over REST or MCP. Free credits on signup, no card.
Jobs is a trademark of its owner. We are not affiliated with or endorsed by it.