# Job-Room Jobs Details Scraper (`jobsapi/job-room-jobs-details-search-scraper`) Actor

Extract public Swiss Job-Room job advertisements with descriptions, companies, locations, occupations, language requirements, employment details, application channels, and public contacts.

- **URL**: https://apify.com/jobsapi/job-room-jobs-details-search-scraper.md
- **Developed by:** [Jobs API](https://apify.com/jobsapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 job-room job details

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Job-Room Jobs Search Scraper

Extracts public Swiss Job-Room job advertisements and detailed fields from the same public services used by the official Job-Room search page.

Sources:

- https://www.job-room.ch/job-search
- https://www.job-room.ch/jobadservice/api/jobAdvertisements/\_search
- https://www.job-room.ch/jobadservice/api/jobAdvertisements/{jobId}

### What it collects

Search and exact-detail modes emit detail-enriched rows. Rows include the public job ID and eGov number, advertisement status, selected-language title and Markdown/plain-text description, source-authored description sections, all published language variants, company identity and address, public work location, employment conditions, occupation/education/qualification codes, language requirements, application channels, public contact details, publication dates and channel flags, source timestamps, canonical links, request receipts, and a count of populated source facts. Records with fewer than 21 meaningful source facts are deferred instead of presented as enriched output.

The Actor intentionally omits the source's owner, job-center user, and other internal fields. Requirements and qualifications remain in the full source description; `descriptionSections` only splits headings that the advertiser actually supplied. It does not follow external application URLs or submit forms.

### Input

- mode: search (default), list, or details. Search/list candidates are enriched from their public detail API before emission.
- query and/or keywords: public free-text search terms.
- jobIds or URLs: exact Job-Room UUIDs/HTTPS Job-Room URLs for mode=details.
- companyName, cantonCodes, localityIds, occupationIds, contractType, workload bounds, and onlineSinceDays: bounded public search filters.
- language: preferred description language, with fallback to the first published variant.
- page, pageSize, maxPages, and maxItems: output/request bounds.
- timeoutMs and requestDelayMs: bounded controls under Developer Options.
- includeRaw: include bounded sanitized public source fields.

Search defaults are bounded and do not request the full public result set. Results use the public API's default ordering; the UI's saved `sort` field is not sent because the API rejects it as an unknown request property. Requests are sequential, use ordinary direct HTTPS, make one attempt, and do not follow redirects or send browser-impersonation headers. Restricted-display ads, authentication, cookies, proxies, fingerprint changes, and alternate routes are not used.

### Run status and access outcomes

`OUTPUT.status` is the actual Apify platform run status (`SUCCEEDED` or `FAILED`). `OUTPUT.resultStatus` independently describes the data outcome:

- `SUCCEEDED` / `COMPLETE`: every emitted row was enriched from its exact public detail response and has more than 20 populated meaningful source facts.
- `SUCCEEDED` / `LIMITED`: one or more fully verified rows were stored before a later non-block failure. Those rows are preserved; the failure details and request receipts remain in key-value storage.
- `SUCCEEDED` / `SKIPPED`: an ordinary public API response returned HTTP 401, 403, 429, or 451, or a visible source-authored denial, CAPTCHA, human-verification, or security-challenge page. Requests stop immediately and all buffered rows are discarded.
- `SUCCEEDED` / `DEFERRED`: a redirect, other HTTP error, invalid response, timeout, or transport failure occurred without proof of a source block. Generic transport/tool failures are not treated as blocks, and the Actor does not retry, follow another route, or switch identities.
- `SUCCEEDED` / `NO_DATA`: a successful public search returned an explicitly empty recognized results array and an explicit zero-result total for the requested filters. Empty or unrecognized payloads without both signals are `DEFERRED`.
- `FAILED` / `FAILED`: invalid input or a fatal run failure occurred before any verified row could be stored. The Actor uses the failure lifecycle.

Only complete, detail-verified job rows enter the dataset. Diagnostics and request receipts are kept in `DIAGNOSTIC` and `OUTPUT` key-value records; they are never dataset rows. A source block discards all buffered rows, while a later non-block failure preserves verified rows as `SUCCEEDED` / `LIMITED`.

### Output fields

The dataset schema documents the nested company/address, employment, location, occupation, language, application, contact, publication, request-receipt, and source-fact fields. Optional source values are omitted. `sourceFactCount` excludes duplicated description representations and provenance metadata. Search rows retain `searchUrl`, page/index, the listing receipt, and the detail receipt.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Local verification

```
npm ci
npm test
npm run lint
apify validate-schema
# Use a fresh actor-relative store and preserve it with --resurrect.
$store = 'storage-job-room-validation'
if (Test-Path $store) { throw "Choose a new storage directory: $store" }
$env:APIFY_LOCAL_STORAGE_DIR = $store
apify run --resurrect --input-file .actor/input.json
npm run validate -- $store
Remove-Item Env:APIFY_LOCAL_STORAGE_DIR
```

The Actor uses only public Job-Room HTTP JSON responses. It does not log in, invoke the employer registration API, call Apify cloud services, or push an Actor remotely. Local data is not synchronized to Apify Console.

# Actor input Schema

## `mode` (type: `string`):

Browse public jobs, search public jobs, or fetch exact job IDs.

## `query` (type: `string`):

Free-text keyword sent to the public Job-Room search.

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

Additional public search keywords. Query is merged into this list.

## `jobIds` (type: `array`):

Job-Room UUIDs for mode=details.

## `urls` (type: `array`):

Public Job-Room job URLs. UUIDs in a path or id query parameter are accepted as exact IDs.

## `companyName` (type: `string`):

Public company-name filter.

## `cantonCodes` (type: `array`):

Swiss canton codes such as ZH, BE, or SO.

## `localityIds` (type: `array`):

Public Job-Room locality UUIDs when known.

## `occupationIds` (type: `array`):

Public occupation reference label IDs accepted by the Job-Room search service.

## `contractType` (type: `string`):

Optional public Job-Room contract-type code. Leave blank for all types.

## `minWorkload` (type: `integer`):

Optional minimum workload percentage filter.

## `maxWorkload` (type: `integer`):

Optional maximum workload percentage filter.

## `onlineSinceDays` (type: `integer`):

Limit results to public ads posted within 1–60 days.

## `language` (type: `string`):

Preferred language code; falls back to the first published description.

## `page` (type: `integer`):

Zero-based public search page.

## `pageSize` (type: `integer`):

Public search page size, capped at 100.

## `maxPages` (type: `integer`):

Bound on public search pages requested.

## `maxItems` (type: `integer`):

Maximum normalized public job records to emit.

## `includeRaw` (type: `boolean`):

Include sanitized public source fields while excluding owner and internal job-center data.

## `timeoutMs` (type: `integer`):

Maximum time to wait for each public Job-Room request.

## `requestDelayMs` (type: `integer`):

Minimum wait between ordinary public requests. Defaults to 300 ms; no retries are made after any response or error.

## Actor input object example

```json
{
  "mode": "details",
  "query": "Olten",
  "keywords": [
    "Automatiker"
  ],
  "jobIds": [
    "8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"
  ],
  "urls": [
    "https://www.job-room.ch/job-search/8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"
  ],
  "companyName": "Manpower",
  "contractType": "ALL",
  "language": "de",
  "page": 0,
  "pageSize": 5,
  "maxPages": 1,
  "maxItems": 3,
  "includeRaw": true,
  "timeoutMs": 30000,
  "requestDelayMs": 300
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

## `diagnostic` (type: `string`):

No description

# 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 = {
    "mode": "details",
    "query": "Olten",
    "keywords": [
        "Automatiker"
    ],
    "jobIds": [
        "8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"
    ],
    "urls": [
        "https://www.job-room.ch/job-search/8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"
    ],
    "companyName": "Manpower",
    "language": "de",
    "page": 0,
    "pageSize": 5,
    "maxPages": 1,
    "maxItems": 3,
    "includeRaw": true,
    "timeoutMs": 30000
};

// Run the Actor and wait for it to finish
const run = await client.actor("jobsapi/job-room-jobs-details-search-scraper").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 = {
    "mode": "details",
    "query": "Olten",
    "keywords": ["Automatiker"],
    "jobIds": ["8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"],
    "urls": ["https://www.job-room.ch/job-search/8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"],
    "companyName": "Manpower",
    "language": "de",
    "page": 0,
    "pageSize": 5,
    "maxPages": 1,
    "maxItems": 3,
    "includeRaw": True,
    "timeoutMs": 30000,
}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/job-room-jobs-details-search-scraper").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 '{
  "mode": "details",
  "query": "Olten",
  "keywords": [
    "Automatiker"
  ],
  "jobIds": [
    "8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"
  ],
  "urls": [
    "https://www.job-room.ch/job-search/8c598d90-19e4-40e7-a2bc-8e20e4a01ad7"
  ],
  "companyName": "Manpower",
  "language": "de",
  "page": 0,
  "pageSize": 5,
  "maxPages": 1,
  "maxItems": 3,
  "includeRaw": true,
  "timeoutMs": 30000
}' |
apify call jobsapi/job-room-jobs-details-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/job-room-jobs-details-search-scraper"
        }
    }
}
```

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/xquWGT0BsUxvIknz7/builds/75puJJrMCCfJnlOsO/openapi.json
