By the end of this tutorial you will have a Python script that searches public XING job listings by keyword and city, waits for the run to finish, and prints one line per job with the title, the company, the salary fields and the apply link. The output is JSON rows you can store, filter or load into a spreadsheet.
XING is a professional network with a job board across Germany, Austria and Switzerland. Searching for one role in one city means paging through result cards and copying company names and application links by hand. This guide replaces that with a single API call.
We use the XING Jobs Scraper Actor (reventadata/xing-scraper) from Python with the official apify-client package. The Actor reads public job search pages on xing.com. It needs no login and returns the public listings it finds.
Prerequisites
To follow this tutorial, you need:
- Python installed on your machine.
- The Apify API client for Python. Install or upgrade it with:
pip install -U "apify-client~=3.0" - An Apify account and your personal API token. Copy the token from API & Integrations in the Apify Console.
Set the token as an environment variable in your terminal:
export APIFY_API_TOKEN="your_apify_token_here" What you'll achieve
Each dataset row is one job posting. The fields in a row include id, title, url, company, city, cities, employmentType, salaryMin, salaryMax, salaryMedian, salaryCurrency, applicationType, applyUrl, activeUntil, refreshedAt, and the search that found the job (matchedKeyword, matchedLocation, searchPage).
Example use case: list the Python roles in Berlin with their salary fields and apply links, then save the rows to a file each morning.
Note on data: the Actor reads public pages with no login. Company names appear as the listing publishes them, and the rows are not edited.
Step 1: Open the Actor
Open the XING Jobs Scraper page on Apify Store. It lists the input fields and the output fields. You can also run the Actor from the Console, but this guide calls it from Python.
Step 2: Set the search inputs
The Actor takes its search from the run_input you pass to it. These are its input fields:
| Field | Type | Default | What it does |
|---|---|---|---|
searchQueries | array | Required | One search per entry, for example "python" or "Projektmanager". |
locations | array | Empty | City names such as "Berlin", "Wien" or "Zürich". Each city is searched with every keyword. Leave it empty to search without a location. |
maxItems | integer | 100 | Maximum jobs saved across all searches. A job found by several searches is saved once. |
maxPagesPerSearch | integer | Empty (all 50) | Pages of 20 jobs to read per keyword and city, from 1 to 50. The site shows at most 50 pages (1,000 jobs) per search. |
strictKeywordMatch | boolean | true | Keeps a job only if every word of the keyword appears in its title. Case and accents are ignored. |
includeDetails | boolean | false | Opens each job page for the full description and extra fields. The run is slower. |
proxyConfiguration | object | Optional | Leave it at its default unless you need to change it. |
In your Python script, create the client and define the input:
import os from apify_client import ApifyClient # 1. Create the client with the token from your environment client = ApifyClient(os.environ["APIFY_API_TOKEN"]) # 2. Define the search; the field names match the Actor's input schema run_input = { "searchQueries": ["python"], "locations": ["Berlin"], "maxItems": 10, "strictKeywordMatch": True, "includeDetails": False, } # 3. Start the run and wait until it finishes run = client.actor("reventadata/xing-scraper").call(run_input=run_input) if run is None or run.status != "SUCCEEDED": status = run.status if run else "unknown" raise SystemExit(f"Run did not succeed (status: {status}).") # 4. Read the rows from the run's default dataset items = client.dataset(run.default_dataset_id).list_items().items print(f"Retrieved {len(items)} listings.") Two notes on the input. searchQueries runs a separate search for each entry. With locations set, every city is searched with every keyword, so two cities double the number of searches.
Step 3: Run the Actor
The call to client.actor("reventadata/xing-scraper").call(run_input=run_input) starts the run in Apify's cloud, waits for it to finish, and returns a run object. The script checks run.status before it reads any rows. A run that does not succeed stops the script with a message.
While the run works, the Actor reads the search pages in order, keeps the jobs that pass the keyword match, skips a job it has already saved, and writes each kept job to the dataset.
Step 4: Print the results
Once the run finishes, loop over the rows in items:
for item in items: print(f"Job: {item.get('title')}") if item.get("company"): print(f" Company: {item['company']}") if item.get("city"): print(f" Location: {item['city']}") if item.get("salaryMin") is not None and item.get("salaryMax") is not None: print(f" Salary: {item['salaryMin']} - {item['salaryMax']} {item.get('salaryCurrency')}") if item.get("applyUrl"): print(f" Apply: {item['applyUrl']}") print("-" * 50) To save the rows, write items to a JSON file with json.dump(items, f, ensure_ascii=False, indent=2), or export the dataset from the Console as CSV or Excel.
Step 5: Read one row
This is one row from the 2026-11-18 run, copied as the Actor returned it. The companyLogoUrl field and the fields that are empty in this run are left out.
{ "id": "156675213.cbf7ea", "title": "Python Developer Financial Services (all genders)", "slug": "berlin-python-developer-financial-services-all-genders-156675213", "url": "https://www.xing.com/jobs/berlin-python-developer-financial-services-all-genders-156675213", "company": "Exxeta", "city": "Berlin", "cities": ["Berlin"], "employmentType": "Full-time", "salaryMin": 59000, "salaryMax": 86000, "salaryMedian": 76000, "salaryCurrency": "EUR", "applicationType": "UrlApplication", "applyUrl": "https://career.exxeta.com/Python-Developer-Financial-Services-all-genders-de-j1018.html?utm_source=xing.com", "activeUntil": "2027-01-22T21:35:50Z", "refreshedAt": "2026-11-18T03:40:17Z", "isTopJob": false, "isPaidPosting": false, "redirectsToThirdPartyUrl": false, "detailFetched": false, "matchedKeyword": "python", "matchedLocation": "Berlin", "searchPage": 1, "scrapedAt": "2026-11-18T07:17:36+00:00" } Understanding your results
The run used the inputs searchQueries: ["python"], locations: ["Berlin"], maxItems: 10, strictKeywordMatch: true and includeDetails: false. It saved 10 rows:
- Every title contains "python" (in one, "Pythonentwickler:in", as part of a longer word), and the
cityfield reads Berlin on all 10 rows. - The rows came from search pages 1 to 3: 4 rows on page 1, 5 on page 2 and 1 on page 3.
- 9 rows carry salary fields in EUR. The one
Studentrow has every salary field empty. - Employment type: 9
Full-time, 1Student. - 6 rows have
applicationTypeUrlApplicationand anapplyUrl. The 4JobXingCustomApplicationrows have an emptyapplyUrl. - The company name
Vertraulich, vermittelt von Techpunkappears on 2 rows, as published. - Every detail field (description, career level, discipline, industry, remote options, street, company size) is empty on all 10 rows, because
includeDetailswas off. - One row has a link slug that starts with
stuttgart-while itscityfield reads Berlin. The row is shown as the Actor returned it.
Pro tips and advanced usage
- Split broad searches by city. XING returns at most 50 pages (1,000 jobs) per search. To reach more jobs, add cities or keywords. A job found by two searches is saved once.
- Turn on
includeDetailsfor skill-based roles. When a title does not name the skill, the job's own XING keyword tags are checked too. WithincludeDetailson, the Actor opens one extra page for each job it checks. - Keep
strictKeywordMatchon for clean lists. Turn it off to get everything the site returns, including loosely related jobs. - Start small. Set
maxItemsto 10, as in this run, while you check the fields. Raise it once the output looks right. - Schedule the run. Save the input as a task in the Apify Console and attach a schedule.
Troubleshooting common issues
- Completed run with zero rows. The pages loaded, but no job matched the keyword. The status message says so. Check the spelling of
searchQueries, or turnstrictKeywordMatchoff to see what the site returns. - Run marked FAILED with a "0 results" message. The input is invalid, for example an empty
searchQueries, or no page could be read because the site refused the request or changed its layout. Read the message in the run log first. - A page fails after some rows were saved. That search ends, the rows already saved stay in the dataset, and the run finishes normally.
- Salary fields are empty. Some listings have no salary fields. The row keeps the fields, with empty values.
Next steps
For current pricing and details, see the Store page.
Helpful links:
Which roles and cities would you track first? Share your search in the comments.