# Xing Jobs Scraper: Job Postings by Keyword and City (`avakode/xing-jobs`) Actor

Collect public Xing job postings by keyword and city: title, company, location, employment type, full description and dates.

- **URL**: https://apify.com/avakode/xing-jobs.md
- **Developed by:** [Tigran Avakov](https://apify.com/avakode) (community)
- **Categories:** Jobs, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.69 / 1,000 jobs

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Xing Jobs Scraper: Job Postings by Keyword and City

Collects public job postings from Xing by title words and city and returns clean records: title, company, workplace, employment type, the full description and dates.

### Limitations

- Speed: about 1 request per second; 1,000 jobs take about 50 minutes. Besides one page per job, every run reads the sitemap files first (about 11 downloads).
- This is not XING's search: it selects jobs from XING's public sitemap by the words of the job address, so recall is lower than the site search. A word that appears only in the page title or description does not match. Most titles are German, so German words (for example `entwickler`) match more than English ones.
- Only new returns jobs this tool has not delivered before, not the newest ones. If the limit is lower than the number of matching jobs, the next run returns the next undelivered ones. Jobs are read from each sitemap file in order of their change date, newest first, and the tool never stops at the first known job, so a run with Only new reads all sitemap files. Two "only new" runs with the same input cannot work at the same time: the second one stops with a message before it reads anything.
- Postings that were removed or have expired are skipped and not delivered, so they are opened again by the next run. A third kind is opened again as well: postings whose sitemap change date passes the filter but whose publication date on the page does not. For example, a run with no new jobs reads the 12 sitemap files again (the index and 11 files) and one page for each such posting (6 pages in one live check, 18 requests in all).
- With `postedWithinDays` the tool uses the sitemap change date and skips older postings without opening them, then checks the publication date on the page.
- If XING refuses access (HTTP 403 or 429, a check page), the tool stops at once and does not try again. Jobs already delivered stay in the dataset and the run ends normally with the reason in its status message; with no jobs the run fails with that reason.
- At most one batch may be written again if a write was still on its way when the run was stopped.
- If a run is killed while it writes a batch and is not resurrected, the next "only new" run may skip that batch.
- Pages without job data are skipped with a warning; five such pages in a row end the run as "site changed".
- E-mail addresses and phone numbers inside descriptions are replaced with `[email removed]` and `[phone removed]`; recruiter contacts are not collected.
- Some postings carry a different city in the address than in the workplace field.
- No salary, apply link or recruiter contact: the public job page does not publish them in its structured data.
- Only public data; no personal profiles.

### What it does

The tool reads the public job sitemaps of xing.com and opens the matching public job pages, using the structured job data each page publishes. It does not log in, does not use Xing search pages or internal APIs, and does not visit profile or people pages. Requests are spaced one second apart (see Limitations).

This is not XING's search: it selects jobs from XING's public sitemap by the words of the job address (the city and the title words), then reads only the matching job pages. Within each sitemap file the newest changes come first.

### Use cases

- Track new openings for a role in one or several cities.
- Feed a job board or a hiring-market report with German-speaking market data.
- Watch which companies hire for a skill.

### Input

| Field | Type | Description |
|---|---|---|
| `keywords` | array | Words matched against the words of the job address (slug) in XING's sitemap: all words of any line must occur as whole words (`java` does not match `javascript`). Empty = any job. |
| `locations` | array | City names (for example `Berlin`, `München`, `Munich`), matched against the start of the job address. Empty = every city. |
| `postedWithinDays` | integer | Keep only postings published in the last N days; 0 = any age. Older postings are skipped using the sitemap change date, without opening them. |
| `onlyNew` | boolean | Only new returns jobs this tool has not delivered before, not the newest ones. If the limit is lower than the number of matching jobs, the next run returns the next undelivered ones. |
| `maxResults` | integer | Stop after this many jobs (default 100). |

Example:

```json
{ "keywords": ["entwickler", "developer"], "locations": ["Berlin"], "postedWithinDays": 30, "maxResults": 100 }
```

### Output

One record per job. Missing values are `null`, dates are ISO 8601 UTC, `url` points to the posting on Xing.

| Field | Description |
|---|---|
| `title` | Job title. |
| `company` | Hiring company. |
| `location` | City of the workplace. |
| `region` | State or region. |
| `postal_code` | Postal code, when published. |
| `country` | ISO country code. |
| `employment_type` | As published, for example `FULL_TIME`. |
| `industry` | Industry, when published. |
| `description_html` | Full description (HTML). |
| `description_text` | Description as plain text. |
| `posted_at` | Publication date. |
| `valid_through` | Last day the posting is valid. |
| `company_url` | Company page on Xing. |
| `source` | Always `xing`. |
| `source_id` | Job number on Xing. |
| `url` | Posting address. |

Example record:

```json
{ "title": "Full Stack Development Engineer (m/w/d)", "company": "empit", "location": "Berlin", "region": "Land Berlin", "postal_code": null, "country": "DE", "employment_type": "FULL_TIME", "industry": "Umweltschutz", "description_html": "<div>…</div>", "description_text": "…", "posted_at": "2026-06-25T06:15:24.000Z", "valid_through": "2026-12-24T21:10:00.000Z", "company_url": "https://www.xing.com/pages/empitgmbh", "source": "xing", "source_id": "155714859", "url": "https://www.xing.com/jobs/berlin-full-stack-development-engineer-155714859" }
```

### Pricing

Pay per result: you pay for each record in the dataset, plus a tiny start fee per run. Set "Maximum cost per run" and the tool stops cleanly when it is reached.

### Errors

- **Invalid input** — the message names the field to fix.
- **The site changed its format** — the tool needs an update; please open an issue.
- **The site blocked access** — the site refused anonymous access; this tool does not bypass protection.

### Support

Open an issue on the Actor page with the input you used and the message you saw.

# Actor input Schema

## `keywords` (type: `array`):

Words to look for in the address of the job (city and title words in XING's sitemap), one search per line. A job matches when all words of any line occur as whole words in its address; German words match best. Leave empty for any job.

## `locations` (type: `array`):

City names, one per line (for example Berlin, Munich or Bad Belzig), matched against the start of the job address. Leave empty for all cities.

## `postedWithinDays` (type: `integer`):

Keep only postings whose publication date is within the last N days. 0 means any age. The tool uses the change date in XING's sitemap to skip older postings without opening them, then checks the publication date on the job page. The sitemap files are always read in full, so this setting makes a run cheaper (fewer job pages) but not instant.

## `onlyNew` (type: `boolean`):

Only new returns jobs this tool has not delivered before, not the newest ones. If the limit is lower than the number of matching jobs, the next run returns the next undelivered ones. Jobs are read in order of their change date in XING's sitemap, newest first. Removed, expired and out-of-date postings (change date in range, publication date on the page not) are opened again each run: a run with no new jobs reads the 12 sitemap files again and one page for each such posting. The memory of delivered jobs is kept per combination of keywords, cities and Posted within days. Do not start two "only new" runs with the same input at the same time: they share one record of delivered jobs, so one run may skip or repeat jobs of the other.

## `maxResults` (type: `integer`):

Stop after this many jobs in total.

## Actor input object example

```json
{
  "keywords": [
    "python",
    "data engineer"
  ],
  "locations": [
    "Berlin",
    "München"
  ],
  "postedWithinDays": 30,
  "onlyNew": false,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

All records written by the run (the default dataset).

# 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 = {
    "keywords": [
        "python"
    ],
    "locations": [
        "Berlin"
    ],
    "postedWithinDays": 0,
    "onlyNew": false,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("avakode/xing-jobs").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 = {
    "keywords": ["python"],
    "locations": ["Berlin"],
    "postedWithinDays": 0,
    "onlyNew": False,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("avakode/xing-jobs").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 '{
  "keywords": [
    "python"
  ],
  "locations": [
    "Berlin"
  ],
  "postedWithinDays": 0,
  "onlyNew": false,
  "maxResults": 100
}' |
apify call avakode/xing-jobs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,avakode/xing-jobs"
        }
    }
}
```

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/jMvudt7wMeaM3R4MJ/builds/9zQ3NreaaNVXGd2BA/openapi.json
