# Swiss Job Room Scraper (`real-estate-api/swiss-job-room-scraper`) Actor

Swiss Job-Room Scraper is a Python tool to extract job offer IDs, titles, employer details, canton/location metadata, occupancy rates, and publication dates from the official Swiss State Secretariat for Economic Affairs (SECO) . It exports into clean CSV or JSON format

- **URL**: https://apify.com/real-estate-api/swiss-job-room-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (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 results

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

### Swiss Job-Room Scraper — Swiss Public Job Advertisements

![Swiss Job-Room Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/swiss-job-room-scraper-cover.png)

Swiss Job-Room Scraper collects publicly available job advertisements from Switzerland's Job-Room employment portal. Choose between general job advertisement search and keyword search, set a maximum number of records, and export structured results as JSON, CSV, Excel, or other supported Apify dataset formats.

### Features

- Collect public Swiss job advertisements.
- Search recent job listings or use specific keywords.
- Support multiple keywords in a single collection.
- Extract advertisement identifiers and publication information.
- Capture job status, reference numbers, and source system details.
- Collect nested job advertisement records.
- Support paginated collection.
- Set a maximum number of records per run.
- Avoid duplicate advertisements within a collection run.

### Collection Modes

**Job Ad Search**

Collect recent publicly available job advertisements without specifying keywords.

**Keyword Search**

Find job advertisements matching supplied keywords. You can provide multiple search terms. If the keyword list is empty, the default keyword is `python`.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `search` | Collection mode: `search` or `keyword`. |
| `keywords` | Array | Empty | Keywords used in keyword search mode. |
| `language` | String | `en` | Language preference for returned content. |
| `maxItems` | Integer | `100` | Maximum number of records to save, up to 1,000. |
| `requestDelayMs` | Integer | `500` | Delay between requests in milliseconds. |

### Example Input

```json
{
  "mode": "search",
  "maxItems": 50,
  "requestDelayMs": 500
}
```

For keyword-based collection:

```json
{
  "mode": "keyword",
  "keywords": ["python", "nursing", "logistics"],
  "language": "en",
  "maxItems": 100,
  "requestDelayMs": 500
}
```

### What Data Does This Actor Extract?

| Field | Description |
|---|---|
| `jobAdId` | Unique job advertisement identifier. |
| `jobStatus` | Publication status of the advertisement. |
| `createdTime` | Date and time the advertisement was created. |
| `updatedTime` | Date and time the advertisement was last updated. |
| `sourceSystem` | System associated with the advertisement record. |
| `externalReference` | External advertisement reference number. |
| `stellennummerEgov` | Swiss government job reference number. |
| `jobAdvertisement` | Nested advertisement data containing additional available fields. |
| `favouriteItem` | Favourite-item information when available. |
| `scrapedAt` | Date and time the record was collected. |

The original advertisement identifier is stored as `jobAdId` in the dataset.

### Example Output

```json
{
  "jobAdvertisement": {
    "id": "cd65881e-aadb-4657-a08c-9efeb75bc47d",
    "createdTime": "2026-10-12T07:28:58.612",
    "updatedTime": "2026-10-12T07:28:58.614",
    "status": "PUBLISHED_PUBLIC",
    "sourceSystem": "API",
    "externalReference": "94908",
    "stellennummerEgov": "242814160"
  },
  "favouriteItem": null,
  "jobAdId": "cd65881e-aadb-4657-a08c-9efeb75bc47d",
  "jobStatus": "PUBLISHED_PUBLIC",
  "createdTime": "2026-10-12T07:28:58.612",
  "updatedTime": "2026-10-12T07:28:58.614",
  "sourceSystem": "API",
  "externalReference": "94908",
  "stellennummerEgov": "242814160",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

The nested `jobAdvertisement` object preserves additional information available in the original advertisement record.

### Use Cases

- **Swiss job market research:** Build datasets of publicly available job advertisements across Switzerland.
- **Keyword monitoring:** Track opportunities related to Python, nursing, logistics, and other professions.
- **Recruitment research:** Organize job advertisement identifiers, statuses, and reference numbers.
- **Employment market analysis:** Study job listing activity and publication trends.
- **Dataset exports:** Save structured job advertisement records for spreadsheets, reporting, and analysis.

### Working with Your Dataset

After the actor finishes running, open its dataset to review the collected job advertisements.

You can:

- Export records as JSON, CSV, or Excel.
- Filter advertisements by keyword or publication status.
- Organize records using job reference numbers.
- Analyze advertisement creation and update dates.
- Schedule recurring collections to refresh your dataset.

### FAQ

**Who is this actor for?**

Recruiters, employment researchers, analysts, and developers who need structured Swiss public job advertisements.

**What is the difference between the two modes?**

Job Ad Search collects recent public advertisements, while Keyword Search finds advertisements matching the keywords you provide.

**Can I search for multiple keywords?**

Yes. Provide multiple terms in the `keywords` array when using keyword mode.

**How many records can it collect per run?**

You can set `maxItems` to collect up to 1,000 records per run.

**What can I export?**

JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I schedule recurring collections?**

Yes. Use Apify schedules to refresh job advertisements at your preferred intervals.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or otherwise officially associated with job-room.ch, SECO, or their owners. It collects information from publicly available pages. Users are responsible for ensuring that their collection and use of the data comply with applicable laws and relevant website terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to collect. Search lists recent public job ads. Keyword filters by one or more terms.

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

Keywords for keyword mode. Ignored in search mode.

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

Accept-Language value sent with requests (for example en, de, fr, it).

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

Stop after this many successful rows. Hard max is 1000.

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

Milliseconds to wait between requests. Raise if you see 429.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "python"
  ],
  "language": "en",
  "maxItems": 100,
  "requestDelayMs": 500,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

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

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/swiss-job-room-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 = { "keywords": ["python"] }

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/swiss-job-room-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 '{
  "keywords": [
    "python"
  ]
}' |
apify call real-estate-api/swiss-job-room-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/swiss-job-room-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/4X8u6vmH2mQOtuTml/builds/KgUjY4nyLrDIdHDC4/openapi.json
