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 Get a Greenhouse job API from PHP
GET /v1/jobs/greenhouse/job. Save this as main.php and run php main.php. It prints job.title.
<?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/greenhouse/job', ['board' => 'discord', 'id' => '8945798002']);
echo $data['job']['title'], PHP_EOL;The response
A real Jobs response to this call, recorded from the live source and shortened for display: arrays keep their first items and … marks every cut. Live calls return current data in the same shape.
{
"board": "discord",
"job": {
"id": 8945798002,
"internal_job_id": 6585097002,
"title": "Account Executive, Media & Entertainment",
"absolute_url": "https://job-boards.greenhouse.io/discord/jobs/8945798002",
"company_name": "Discord",
"location": {
"name": "Los Angeles Metropolitan Area or New York City Metropolitan Area"
},
"updated_at": "2026-11-19T21:12:00-05:00",
"first_published": "2026-11-19T21:12:00-05:00",
"requisition_id": "R-107498",
"language": "en",
"metadata": [
{
"id": 4105571002,
"name": "Featured on Website",
"value": [],
"value_type": "multi_select"
},
{
"id": 96196709002,
"name": "Careers Site Department",
"value": null,
"value_type": "single_select"
}
],
"application_deadline": null,
"content": "<div class=\"content-intro\"><p>Discord has a highly engaged community of millions of daily active users who use the platf…",
"departments": [
{
"id": 4099568002,
"name": "Advertising Solutions",
"parent_id": 4109059002,
"child_ids": []
}
],
"offices": [
{
"id": 4105189002,
"name": "Los Angeles, CA",
"location": "Los Angeles, California, United States",
"parent_id": null,
"child_ids": []
},
{
"id": 4105187002,
"name": "New York, NY",
"location": "New York, New York, United States",
"parent_id": null,
"child_ids": []
}
],
"pay_input_ranges": [
{
"min_cents": 27200000,
"max_cents": 30600000,
"currency_type": "USD",
"title": "On Target Earnings",
"blurb": "<p><em>This position is commission-based and is eligible for variable incentive. The On Target Earnings (OTE) range for …"
}
],
"data_compliance": [
{
"type": "gdpr",
"requires_consent": false,
"requires_processing_consent": false,
"requires_retention_consent": false,
"retention_period": null,
"demographic_data_consent_applies": true
}
],
"education": "education_optional",
"ai_disclaimer": null,
"include_ai_disclaimer": false,
"ai_opt_out_request_url": "http://app2.greenhouse.io/ai_opt_out_request/job_post/8945798002/ai_opt_out"
}
}Top-level fields
| Field | Type | Description |
|---|---|---|
board | string | – |
job | GreenhouseJobDetail | – |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | query | integer | The job id, e.g. 8172510. Needs board. Example: 8172510. |
board | query | string | The board token, e.g. stripe. Example: stripe. |
url | query | string | A job link instead of id and board. |
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/greenhouse/job', ['board' => 'discord', 'id' => '8945798002']);
} catch (RuntimeException $e) {
// "code: hint", e.g. "target_not_found: ..." (never charged).
fwrite(STDERR, $e->getMessage() . PHP_EOL);
exit(1);
}| Status | Meaning |
|---|---|
200 | The job. |
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_greenhouse_get 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 (“One Greenhouse job with its full description, departments, offices and pay ranges”), or call the tool directly:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "jobs_greenhouse_get",
"arguments": {
"board": "discord",
"id": "8945798002"
}
}
}MCP setup for Claude Desktop, Cursor, VS Code and ChatGPT.
Use Jobs greenhouse get in a pipeline
One Greenhouse job with its full description (HTML), departments, offices and published pay ranges (pay_input_ranges, in cents). Pass id and board, or the job link (job-boards.greenhouse.io/<board>/jobs/<id>).
Keep going
- This call in Python, JavaScript, TypeScript, Go, cURL.
- Get a Greenhouse job API reference: every field and status code.
- Jobs tutorials and all PHP tutorials.
- Jobs API: every endpoint and price.
- How to get a Xing job posting with PHP: One Xing job posting with its full description, salary, company and how to apply.
- How to scrape salary for a job title in a country with PHP: Salary distribution for a job title in a country: median, percentiles, hourly, by region.
- 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 a Lever board with PHP: A company’s open jobs on Lever, 50 a page, with descriptions and salary ranges.
- 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.
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.