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 Search Xing jobs API from PHP
GET /v1/jobs/xing/search. Save this as main.php and run php main.php. It reads the items in jobs and prints title 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/xing/search', ['query' => 'softwareentwickler', 'location' => 'Berlin']);
foreach ($data['jobs'] as $item) {
echo $item['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. The recorded page had 20 items in jobs. Live calls return current data in the same shape.
{
"total": 243,
"jobs": [
{
"id": "159256885.5977d1",
"slug": "berlin-software-entwickler-geo-netzinformationssystem-159256885",
"url": "https://www.xing.com/jobs/berlin-software-entwickler-geo-netzinformationssystem-…",
"title": "Software-Entwickler*in Geo- und Netzinformationssystem ",
"activatedAt": "2026-11-18T17:09:43Z",
"refreshedAt": "2026-11-18T17:09:43Z",
"activeUntil": "2027-01-17T17:09:48Z",
"location": {
"city": "Berlin",
"region": "Land Berlin",
"country": {
"…": "2 fields"
}
},
"locations": [
{
"…": "1 fields"
}
],
"employmentType": {
"localizationValue": "Full-time",
"id": "FULL_TIME.ef2fe9"
},
"…": "12 more fields"
},
"… 19 more"
],
"pagination": {
"has_more": true,
"next_cursor": "eyJzIjp7InF1ZXJ5Ijoic29mdHdhcmVlbnR3aWNrbGVyIiwibG9jYXRpb24iOiJCZXJsaW4ifSwibyI6…"
}
}Top-level fields
| Field | Type | Description |
|---|---|---|
total | integer | null | Matching jobs (Xing counts up to 1,000). |
jobs | XingJob[] | – |
pagination | JobsCursorPagination | – |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
query | query | string | Keywords, job title or company. Required on page 1. Example: softwareentwickler. |
location | query | string | City or country, preferably in German (Berlin, Schweiz). |
date_posted | query | "month" | "week" | "day" | Maximum age: month, week or day. One of month, week, day. |
employment_types | query | string | Semicolon or comma list of contractor, fulltime, intern, parttime, seasonal, temporary, voluntary. |
career_levels | query | string | Semicolon or comma list of student, entry, professional, manager, executive, seniorExecutive. |
remote_options | query | string | Semicolon or comma list of remote, hybrid, onSite. |
minimum_salary | query | integer | null | Minimum yearly salary; postings whose range reaches it match. |
after | query | string | Cursor: the previous page’s pagination.next_cursor. |
Pagination
Pass after for the next page: Cursor: the previous page’s pagination.next_cursor. Every page is a separate call at 2 credits per call.
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/xing/search', ['query' => 'softwareentwickler', 'location' => 'Berlin']);
} 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 | 2 credits per call |
| 1,000 calls | $2.00 on the starter pack, $0.80 at volume |
| No key (MPP or x402) | $0.02 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_xing_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 (“Search Xing job postings (Germany, Austria, Switzerland) with salary, by keywords and filters”), or call the tool directly:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "jobs_xing_search",
"arguments": {
"query": "softwareentwickler",
"location": "Berlin"
}
}
}MCP setup for Claude Desktop, Cursor, VS Code and ChatGPT.
Use Jobs xing search in a pipeline
Xing job postings (mostly Germany, Austria, Switzerland), 20 a page in Xing’s relevance order, each with title, company, location(s), employment type, career level, remote options, activatedAt and salary (the employer’s range, or Xing’s own estimate with a median). total counts matches up to 1,000.
Keep going
- This call in Python, JavaScript, TypeScript, Go, cURL.
- Search Xing jobs 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 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.
- 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 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.