# Arbeit.Swiss Scraper - Swiss Government Job Portal (`codingfrontend/arbeit-swiss-scraper`) Actor

Reads public Arbeit.Swiss pages and the linked Job-Room application shell, returning official navigation, diagnostics, and real server-rendered JobPosting JSON-LD when available.

- **URL**: https://apify.com/codingfrontend/arbeit-swiss-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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

## Arbeit.Swiss Job Listings

### What this Actor does

This Actor collects published vacancy records from Job-Room's public search API and published information from public [Arbeit.Swiss](https://www.arbeit.swiss/en/jobseekers) pages. It can inspect selected public pages and follow eligible links within a page limit. Job-ad HTML pages are not crawled; they are disallowed by the source's published robots rules. Saved vacancy records come from the public API and must pass identity checks. Fields that the source does not publish in a usable form are omitted rather than filled with guesses.

The public search API is separate from the authenticated employer Jobs API, which this Actor does not use. The HTML advert pages are not a source of records for this Actor. A returned API row is saved only when it has the required identity fields and passes record checks; a run can still produce an empty Dataset when no rows qualify.

### Start a run

All ten input fields are optional. If `startUrls` is omitted, the Actor uses the two defaults below. An explicitly empty list, `null`, a non-URL item, an unknown field, or a wrong JSON type is rejected. Starting URLs must be unique HTTPS URLs on `arbeit.swiss` or `job-room.ch`; credentials and explicit ports are not accepted.

| Input | Type | Required | Default | Accepted values and effect |
| --- | --- | --- | --- | --- |
| startUrls | Array of strings | Optional | `https://www.arbeit.swiss/en/jobseekers` and `https://www.job-room.ch/home/job-seeker` | 1–10 unique public HTTPS URLs on either official domain; each is at most 2,000 characters. |
| maxPages | Integer | Optional | `2` | 1–20 public HTML pages to inspect, including start pages and discovered links. This does not limit public API pagination. |
| maxJobs | Integer | Optional | `50` | 1–200 valid, deduplicated vacancy records to save. |
| followJobRoom | Boolean | Optional | `true` | Follow public Job-Room pages and links within the HTML page limit. Job-ad HTML pages are not crawled. |
| usePublicJobApi | Boolean | Optional | `true` | Retrieve source-published vacancies through Job-Room's public search API. Set `false` to disable it explicitly. |
| timeoutSecs | Integer | Optional | `45` | 5–120 seconds for a complete request, including redirects and response-body reading. |
| maxRetries | Integer | Optional | `1` | 0–2 retries for transient transport failures. Access-control responses are not retried or bypassed. |
| requestDelayMs | Integer | Optional | `250` | 0–5,000 ms of additional delay between requests to the same origin. A zero value does not remove a source-policy minimum delay. |
| maxResponseBytes | Integer | Optional | `6,000,000` | 100,000–20,000,000 bytes accepted per HTTP response body. |
| proxyConfiguration | Object | Optional | `{"useApifyProxy":false}` | Native Apify Proxy settings or custom proxy URLs. Direct requests are used by default. |

#### Copyable input examples

This complete example uses the current input defaults, including the public Job-Room search API.

```json
{
  "startUrls": [
    "https://www.arbeit.swiss/en/jobseekers",
    "https://www.job-room.ch/home/job-seeker"
  ],
  "maxPages": 2,
  "maxJobs": 50,
  "followJobRoom": true,
  "usePublicJobApi": true,
  "timeoutSecs": 45,
  "maxRetries": 1,
  "requestDelayMs": 250,
  "maxResponseBytes": 6000000,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

This example inspects only the public Arbeit.Swiss jobseeker page, disables Job-Room following and the API option, and limits HTML inspection to one page.

```json
{
  "startUrls": ["https://www.arbeit.swiss/en/jobseekers"],
  "maxPages": 1,
  "maxJobs": 25,
  "followJobRoom": false,
  "usePublicJobApi": false,
  "timeoutSecs": 45,
  "maxRetries": 1,
  "requestDelayMs": 250,
  "maxResponseBytes": 6000000,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

This example demonstrates an Apify Proxy configuration. Proxy availability depends on the account and any configured proxy groups or country.

```json
{
  "startUrls": ["https://www.job-room.ch/home/job-seeker"],
  "maxPages": 1,
  "maxJobs": 50,
  "followJobRoom": true,
  "usePublicJobApi": false,
  "timeoutSecs": 60,
  "maxRetries": 1,
  "requestDelayMs": 500,
  "maxResponseBytes": 6000000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "CH"
  }
}
```

#### Proxy options

The native proxy editor defaults to `{"useApifyProxy": false}`, which means direct requests. It accepts a plain object with the fields below. Unknown keys are rejected. Configure either Apify Proxy or custom proxy URLs, not both.

| Proxy field | Type | Use |
| --- | --- | --- |
| useApifyProxy | Boolean | Set to `true` to enable Apify Proxy; it defaults to `false`. |
| apifyProxyGroups | Array of 1–20 strings | Optional Apify Proxy group names; requires `useApifyProxy: true`. Names are normalized to uppercase. |
| apifyProxyCountry | Two-letter ISO country code | Optional country for Apify Proxy; requires `useApifyProxy: true`. The Actor normalizes the code to uppercase. |
| proxyUrls | Array of 1–20 strings | Optional custom HTTP, HTTPS, or SOCKS5 proxy origins, with an optional port and credentials. The URL may not include a path beyond `/`, a query, or a fragment. This option cannot be combined with Apify Proxy settings. |

Proxy settings change the network path only. They do not change which source routes are permitted or relax their request delays.

### Output

The default Dataset contains validated vacancy records only. Request and parsing problems appear in the run log, not as Dataset rows. A record is saved only when it has the required source identity fields, and the Actor omits optional fields that the public API did not publish in a usable form. The populated example below comes from a real public API response; the Actor does not collect job-ad HTML pages.

The complete record below was parsed from a saved public Job-Room API detail response. It contains source-published values; fields absent from this record are not inferred.

```json
[
  {
    "jobId": "ad53b8ff-7c9f-4a31-acd4-90de4a1b39c7",
    "externalReference": "securitasag-9660-2820",
    "eGovReference": "242821648",
    "externalUrl": "https://securijob.securitas.ch/sicherheitsmitarbeiter-data-center-100-mwd-securitas-zueri-de-j2820.html?agid=30",
    "numberOfJobs": "1",
    "jobTitle": "Sicherheitsmitarbeiter Data Center 100% (m/w/d) Securitas Zürich",
    "jobDescription": "Sie sind eine verantwortungsbewusste und kommunikative Person, die bereit ist, in einem sensiblen Rechenzentrum und im Schichtmodell zu arbeiten? Zeichnen Sie sich überdies durch Ihre Selbstständigkeit und Ihr technisches Verständnis aus? Falls ja, dann lesen Sie unbedingt weiter:\n\nWas Sie bewegen können:\n-----------------------\n\n* Betreuung und Überwachung von einem Rechenzentrum\n* Durchführung von Kontroll-/Sicherheitsrundgängen im gesamten Objekt\n* Handhabung von technischen Apparaten und Anlagen\n* Erkennen und Beheben von Gefahrenquellen inkl. elektronischer Datenerfassung\n* Alarminterventionen vor Ort und Umsetzung erforderlicher Massnahmen\n* Unterstützung von Einsatzkräften in Notfallsituationen\n\nWas Sie mitbringen:\n-------------------\n\n* Ausgeprägte Selbstständigkeit, Leistungsfähigkeit und ein hohes Verantwortungsbewusstsein\n* Professionelles Erscheinungsbild, ausgezeichnete Kommunikationsfähigkeiten und ein hohes Mass an Diskretion\n* Sehr gute Deutsch- und Englischkenntnisse in Wort und Schrift (C1-Niveau)\n* Versierte PC-Anwenderkenntnisse und starkes technisches Verständnis\n* Abgeschlossene Berufslehre oder gleichwertige Ausbildung\n* Einsatzbereitschaft für den Spät- und Nachtdienst\n* Einwandfreier Leumund (Kontrolle Betreibungsregister- und Strafregisterauszug)\n* Schweizer Staatsangehörigkeit oder Besitz eine Bewilligung C oder EU/EFTA B\n* Mobilität (Führerschein und eigenes Fahrzeug von Vorteil)\n\nWas wir bieten:\n---------------\n\n* **Startgehalt mind. CHF 5'032 pro Monat**\n* **13. Monatsgehalt**\n* 25 Tage Ferien\n* Bezahlte Aus- und Weiterbildungen und Möglichkeit zur Erlangung des eidg. Fachausweises\n* Vielseitige Partnervergünstigungen (Flottenrabatt, Brack.ch Plus, Brands for Employees etc.) und Tagestickets für verschiedene Attraktionen der Schweiz\n* Diverse Lohnzulagen\n* Eine sichere Dauerstelle mit vielseitigen Entwicklungsmöglichkeiten\n* Möglichkeit zur Nutzung verschiedener Räumlichkeiten und Infrastruktur (Fitnessraum, Ferienwohnungsvergünstigungen etc.)\n* Eine nicht alltägliche, abwechslungsreiche Tätigkeit mit hoher Eigenverantwortung\n* Möglichkeit für unbezahlten Urlaub\n* Diverse Mitarbeiterevents\n* Weiterbeschäftigungsmöglichkeiten nach Pensionsalter",
    "jobDescriptions": [
      {
        "languageIsoCode": "de",
        "title": "Sicherheitsmitarbeiter Data Center 100% (m/w/d) Securitas Zürich",
        "description": "Sie sind eine verantwortungsbewusste und kommunikative Person, die bereit ist, in einem sensiblen Rechenzentrum und im Schichtmodell zu arbeiten? Zeichnen Sie sich überdies durch Ihre Selbstständigkeit und Ihr technisches Verständnis aus? Falls ja, dann lesen Sie unbedingt weiter:\n\nWas Sie bewegen können:\n-----------------------\n\n* Betreuung und Überwachung von einem Rechenzentrum\n* Durchführung von Kontroll-/Sicherheitsrundgängen im gesamten Objekt\n* Handhabung von technischen Apparaten und Anlagen\n* Erkennen und Beheben von Gefahrenquellen inkl. elektronischer Datenerfassung\n* Alarminterventionen vor Ort und Umsetzung erforderlicher Massnahmen\n* Unterstützung von Einsatzkräften in Notfallsituationen\n\nWas Sie mitbringen:\n-------------------\n\n* Ausgeprägte Selbstständigkeit, Leistungsfähigkeit und ein hohes Verantwortungsbewusstsein\n* Professionelles Erscheinungsbild, ausgezeichnete Kommunikationsfähigkeiten und ein hohes Mass an Diskretion\n* Sehr gute Deutsch- und Englischkenntnisse in Wort und Schrift (C1-Niveau)\n* Versierte PC-Anwenderkenntnisse und starkes technisches Verständnis\n* Abgeschlossene Berufslehre oder gleichwertige Ausbildung\n* Einsatzbereitschaft für den Spät- und Nachtdienst\n* Einwandfreier Leumund (Kontrolle Betreibungsregister- und Strafregisterauszug)\n* Schweizer Staatsangehörigkeit oder Besitz eine Bewilligung C oder EU/EFTA B\n* Mobilität (Führerschein und eigenes Fahrzeug von Vorteil)\n\nWas wir bieten:\n---------------\n\n* **Startgehalt mind. CHF 5'032 pro Monat**\n* **13. Monatsgehalt**\n* 25 Tage Ferien\n* Bezahlte Aus- und Weiterbildungen und Möglichkeit zur Erlangung des eidg. Fachausweises\n* Vielseitige Partnervergünstigungen (Flottenrabatt, Brack.ch Plus, Brands for Employees etc.) und Tagestickets für verschiedene Attraktionen der Schweiz\n* Diverse Lohnzulagen\n* Eine sichere Dauerstelle mit vielseitigen Entwicklungsmöglichkeiten\n* Möglichkeit zur Nutzung verschiedener Räumlichkeiten und Infrastruktur (Fitnessraum, Ferienwohnungsvergünstigungen etc.)\n* Eine nicht alltägliche, abwechslungsreiche Tätigkeit mit hoher Eigenverantwortung\n* Möglichkeit für unbezahlten Urlaub\n* Diverse Mitarbeiterevents\n* Weiterbeschäftigungsmöglichkeiten nach Pensionsalter"
      }
    ],
    "datePosted": "2026-10-14",
    "validThrough": "2026-10-31",
    "employmentType": "PERMANENT",
    "employment": {
      "startDate": "2026-10-14",
      "shortEmployment": false,
      "immediately": false,
      "permanent": true,
      "workloadPercentageMin": "100",
      "workloadPercentageMax": "100",
      "workForms": []
    },
    "occupations": [
      {
        "avamOccupationCode": "101942"
      }
    ],
    "languageSkills": [
      {
        "languageIsoCode": "de",
        "spokenLevel": "INTERMEDIATE",
        "writtenLevel": "INTERMEDIATE"
      }
    ],
    "hiringOrganization": "Securitas AG Region 5",
    "hiringOrganizationDetails": {
      "name": "Securitas AG Region 5",
      "surrogate": false,
      "telephone": "+41589103838",
      "email": "zuerich@securitas.ch",
      "url": "https://www.securitas.ch/",
      "address": {
        "streetAddress": "Kalkbreitestrasse 51",
        "addressLocality": "Zürich",
        "postalCode": "8036",
        "addressCountry": "CH"
      }
    },
    "jobLocation": "Zürich, ZH, CH",
    "jobLocations": [
      {
        "name": "Zürich",
        "description": "ZUTAS",
        "address": {
          "addressLocality": "Zürich",
          "addressRegion": "ZH",
          "postalCode": "8003",
          "addressCountry": "CH",
          "communalCode": "261",
          "regionCode": "ZH12",
          "cantonCode": "ZH"
        },
        "geo": {
          "latitude": 47.373,
          "longitude": 8.516
        }
      }
    ],
    "workloadPercentageMin": "100",
    "workloadPercentageMax": "100",
    "applicationUrl": "https://securijob.securitas.ch/sicherheitsmitarbeiter-data-center-100-mwd-securitas-zueri-de-f2820.html?agid=30",
    "applicationDetails": {
      "formUrl": "https://securijob.securitas.ch/sicherheitsmitarbeiter-data-center-100-mwd-securitas-zueri-de-f2820.html?agid=30"
    },
    "jobUrl": "https://www.job-room.ch/job-search/ad53b8ff-7c9f-4a31-acd4-90de4a1b39c7",
    "publicationStatus": "PUBLISHED_PUBLIC"
  }
]
```

A run with no valid records has this Dataset output:

```json
[]
```

#### Dataset fields

The output contract contains 41 top-level fields. `jobId`, `jobTitle`, and `jobUrl` are required; every other field is optional and appears only when supported by source data. The two description fields serve different source shapes: `jobDescription` is the general description, while `jobDescriptions` retains language-specific title and description entries. Organization and application details are included only when the source publishes them.

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| jobId | String | Required | Source-published vacancy ID; it matches the final path segment of `jobUrl`. |
| externalReference | String | Optional | External vacancy reference published by the source. |
| eGovReference | String | Optional | Swiss e-government vacancy reference published by the source. |
| externalUrl | URI string | Optional | Source-published public link to the original vacancy. |
| numberOfJobs | String | Optional | Source-published count of identical positions. |
| jobTitle | String | Required | Source-published vacancy title. |
| jobDescription | String | Optional | General source-published vacancy description with paragraph breaks preserved. |
| jobDescriptions | Array of objects | Optional | Language-specific titles and descriptions; see nested fields below. |
| datePosted | ISO date or date-time string | Optional | Source-published posting date or timestamp. |
| validThrough | ISO date or date-time string | Optional | Source-published final date or timestamp. |
| employmentType | String or array of strings | Optional | Source-published employment arrangement. |
| employment | Object | Optional | Source-published employment dates, conditions, workload, and work forms. |
| occupations | Array of objects | Optional | Source-published AVAM occupation and education codes, plus work experience. |
| languageSkills | Array of objects | Optional | Source-published language and spoken or written proficiency. |
| hiringOrganization | String | Optional | Source-published organization name. |
| hiringOrganizationDetails | Object or array of objects | Optional | Structured employer data, including published website, public contact details, address, and surrogate status. |
| jobLocation | String | Optional | Readable location summary derived from source-published place/address data. |
| jobLocations | Array of Place objects | Optional | Structured source-published work locations. |
| applicantLocationRequirements | Array of Place objects | Optional | Geographic eligibility requirements published for applicants. |
| jobLocationType | String | Optional | Source-published location arrangement, such as remote or on-site. |
| workloadPercentageMin | Number from 0–100 or string | Optional | Source-published lower workload percentage. |
| workloadPercentageMax | Number from 0–100 or string | Optional | Source-published upper workload percentage. |
| salaryText | String | Optional | Salary wording stated directly by the source. |
| baseSalary | Object | Optional | Structured salary details; nested fields are listed below. |
| jobBenefits | Text/entity value or array | Optional | Source-published job benefits. |
| responsibilities | Text/entity value or array | Optional | Source-published responsibilities. |
| skills | Text/entity value or array | Optional | Source-published skills or competencies. |
| qualifications | Text/entity value or array | Optional | Source-published qualifications. |
| experienceRequirements | Text/entity value or array | Optional | Source-published experience requirements. |
| educationRequirements | Text/entity value or array | Optional | Source-published education or credential requirements. |
| industry | Text/entity value or array | Optional | Source-published industry classification. |
| occupationalCategory | Text/entity value or array | Optional | Source-published occupational classification. |
| workHours | Text/entity value or array | Optional | Source-published work hours or schedule. |
| incentiveCompensation | Text/entity value or array | Optional | Source-published incentive compensation details. |
| postingLanguage | Text/entity value or array | Optional | Source-published language metadata. |
| directApply | Boolean | Optional | Whether the source marks the vacancy for direct application. |
| applicationUrl | URI string | Optional | Source-published public application form URL. |
| applicationDetails | Object | Optional | Source-published application methods and instructions. |
| publicContact | Object | Optional | Source-published public contact for applying to the vacancy. |
| jobUrl | HTTPS URI string | Required | Official public vacancy URL on `arbeit.swiss` or `job-room.ch`. |
| publicationStatus | String | Optional | Publication status stated by the source. |

All nested properties are optional. The same Address structure is used under locations and organization details.

| Parent path | Nested field | Type |
| --- | --- | --- |
| `jobDescriptions[]` | `languageIsoCode`, `title`, `description` | String |
| `employment` | `startDate`, `endDate` | ISO date or date-time string |
| `employment` | `shortEmployment`, `immediately`, `permanent` | Boolean |
| `employment` | `workloadPercentageMin`, `workloadPercentageMax` | Number from 0–100 or numeric string from 0–100 |
| `employment` | `workForms` | Array of strings |
| `occupations[]` | `avamOccupationCode`, `educationCode`, `workExperience` | String |
| `languageSkills[]` | `languageIsoCode`, `spokenLevel`, `writtenLevel` | String |
| `jobLocations[]`, `applicantLocationRequirements[]` | `name` | String |
| `jobLocations[]`, `applicantLocationRequirements[]` | `identifier`, `description` | String |
| `jobLocations[]`, `applicantLocationRequirements[]` | `address` | String or Address object |
| `jobLocations[]`, `applicantLocationRequirements[]` | `geo` | Geo object |
| `hiringOrganizationDetails[]` | `name`, `legalName`, `alternateName`, `description`, `identifier` | String |
| `hiringOrganizationDetails[]` | `surrogate` | Boolean |
| `hiringOrganizationDetails[]` | `url`, `logoUrl` | URI string |
| `hiringOrganizationDetails[]` | `telephone` | String |
| `hiringOrganizationDetails[]` | `email` | Email string |
| `hiringOrganizationDetails[]` | `sameAs` | Array of URI strings |
| `hiringOrganizationDetails[]` | `address` | Address object |
| `Address` | `streetAddress`, `addressLocality`, `addressRegion`, `postalCode`, `addressCountry`, `postOfficeBoxNumber`, `postOfficeBoxPostalCode`, `postOfficeBoxCity`, `communalCode`, `regionCode`, `cantonCode` | String |
| `Geo` | `latitude` | Number from −90 to 90 |
| `Geo` | `longitude` | Number from −180 to 180 |
| `baseSalary` | `currency`, `description`, `unitText`, `unitCode` | String |
| `baseSalary` | `value`, `minValue`, `maxValue` | Nonnegative number or string |
| `applicationDetails` | `formUrl` | URI string |
| `applicationDetails` | `emailAddress` | Email string |
| `applicationDetails` | `phoneNumber`, `additionalInfo` | String |
| `applicationDetails` | `postAddress` | String or Address object |
| `publicContact` | `salutation`, `firstName`, `lastName`, `phone` | String |
| `publicContact` | `email` | Email string |
| Each text/entity field | Value itself | String, number, boolean, object, or array of these |
| Text/entity object | `name`, `description`, `credentialCategory`, `educationalLevel`, `occupationalCategory`, `unitText`, `unitCode`, `currency` | String |
| Text/entity object | `value` | String or number |
| Text/entity object | `monthsOfExperience` | Nonnegative number or string |
| Text/entity object | `experienceInPlaceOfEducation` | Boolean |
| Text/entity object | `minValue`, `maxValue` | Nonnegative number or string |
| Text/entity object | `url` | URI string |
| Text/entity object | `sameAs` | Array of URI strings |

The Actor preserves supported source values and does not add missing values.

### Run summary

The Actor stores one separate JSON summary in the default Key-value store under `OUTPUT_SUMMARY`. Its shape is always limited to these three fields:

| Field | Type | Meaning |
| --- | --- | --- |
| status | String: `SUCCEEDED` or `FAILED` | A run is successful when at least one valid dataset record is saved. |
| itemsStored | Nonnegative integer | Number of acknowledged dataset records. |
| isPartial | Boolean | `true` when a failure interrupted collection after one or more records were saved. |

The separate Key-value store summary for the one-record example above is:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 1,
  "isPartial": false
}
```

For a run with no saved records, the summary is:

```json
{
  "status": "FAILED",
  "itemsStored": 0,
  "isPartial": false
}
```

### Access, cost, and help

The Actor uses public search data and pages; it does not log in or submit applications. It respects source restrictions and reports blocked or unusable responses in run logs. Proxy settings cannot override robots rules or source permissions. Source availability and published policies can change, so review the run log and current source terms when a run returns no records.

The pricing configuration checked on October 14, 2026 charges $3.99 per 1,000 saved results and $0.001 per Actor Start event, plus platform usage costs. Start events depend on memory: one event per GB, with a minimum of one event. Startup, resource, and proxy costs can apply when a run saves no records. Check the current price on the [Actor page](https://apify.com/codingfrontend/arbeit-swiss-scraper) before starting. For help, provide the run ID and relevant log message through the Actor's Issues page.

# Actor input Schema

## `startUrls` (type: `array`):

Public HTTPS pages on arbeit.swiss or job-room.ch to inspect. If omitted, the Actor starts at the public Arbeit.Swiss jobseeker page and Job-Room home page.

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

Maximum total number of public HTML pages to inspect, including start URLs and pages discovered from them. Public Job-Room API pagination is controlled separately.

## `maxJobs` (type: `integer`):

Maximum number of valid, deduplicated job records to save.

## `followJobRoom` (type: `boolean`):

Follow discovered public Job-Room pages and links within the HTML page limit. Job-ad HTML pages are not crawled.

## `usePublicJobApi` (type: `boolean`):

Retrieve source-published vacancies through Job-Room's public search API. Job-ad HTML pages are not crawled.

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

Maximum duration for each source request, including redirects and response-body reading.

## `maxRetries` (type: `integer`):

Retry count for transient transport failures. Access-control responses are not retried or bypassed.

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

Additional delay between requests to the same source origin. A zero value does not disable the Actor's source-policy minimum delay.

## `maxResponseBytes` (type: `integer`):

Maximum bytes accepted for each HTTP response body.

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

Optional native Apify proxy settings. By default, the Actor makes requests directly. Configure either Apify Proxy or custom proxy URLs, not both.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.arbeit.swiss/en/jobseekers",
    "https://www.job-room.ch/home/job-seeker"
  ],
  "maxPages": 2,
  "maxJobs": 50,
  "followJobRoom": true,
  "usePublicJobApi": true,
  "timeoutSecs": 45,
  "maxRetries": 1,
  "requestDelayMs": 250,
  "maxResponseBytes": 6000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing validated public job records.

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

OUTPUT_SUMMARY record in the run's default key-value store.

# 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 = {
    "startUrls": [
        "https://www.arbeit.swiss/en/jobseekers",
        "https://www.job-room.ch/home/job-seeker"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/arbeit-swiss-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 = { "startUrls": [
        "https://www.arbeit.swiss/en/jobseekers",
        "https://www.job-room.ch/home/job-seeker",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/arbeit-swiss-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 '{
  "startUrls": [
    "https://www.arbeit.swiss/en/jobseekers",
    "https://www.job-room.ch/home/job-seeker"
  ]
}' |
apify call codingfrontend/arbeit-swiss-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/arbeit-swiss-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/BKczaaLaSRLfSzVQb/builds/lBNF8azWfmEhm93xo/openapi.json
