# JobBern Switzerland Jobs Search Scraper (`jobsapi/jobbern-jobs-search-scraper`) Actor

Collect detail-verified public JobBern jobs with source-published employer, workload, locations, role sections, company benefits and employment facts.

- **URL**: https://apify.com/jobsapi/jobbern-jobs-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 jobbern switzerland job records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## JobBern Jobs Search Scraper

Collects public jobs from JobBern's default listing at [jobbern.ch/job/alle-jobs](https://www.jobbern.ch/job/alle-jobs), then verifies each emitted record against its public vacancy detail page. JobBern describes itself as a regional portal for the Canton of Bern and is a distinct local source in the broader Swiss job-board landscape.

### Public input

| Field | Default | Range | Description |
| --- | ---: | ---: | --- |
| `maxItems` | 1 | 1–10 | Maximum complete records to emit |
| `timeoutMs` | 30,000 | 5,000–60,000 | Timeout for one request |
| `delayMillis` | 750 | 500–1,500 | Minimum delay between sequential requests |
| `maxResponseBytes` | 15,000,000 | 100,000–20,000,000 | Maximum accepted response size |

The source route is fixed. The Actor makes ordinary direct GET requests without custom headers or cookies and does not accept URLs, proxies, retry settings, identity controls, or fixture/debug fields.

### Dataset

Records keep the public vacancy ID, external ID where supplied, title, employer profile and public links, location/country, first-published timestamp, the date label visible on the listing, start/updated dates, published employment and workload percentages, home-office flag, categories, source description sections, role responsibilities and requirements, company profile benefits, promotions, and public application/detail links where published. External application and employer links are retained as page data but never requested. It preserves workload values without inventing salary facts when the source does not publish pay. Missing source facts are omitted.

A record is emitted only when its numeric vacancy ID matches the listing card and its detail page and it contains at least 21 meaningful source facts.

### Access policy

An ordinary request returning HTTP 401, 403, 429, or 451, or visible source-authored denial/security-challenge content, stops collection. Buffered job rows are discarded, `resultStatus` is `SKIPPED` with platform `platformStatus` `SUCCEEDED`, and diagnostics and request receipts are preserved. HTTP 407, HTTP 5xx, malformed content, redirects, timeouts, and other unverified failures are `DEFERRED`; no request is retried and no alternate route, browser, identity, cookie, proxy, header, or fingerprint change is attempted.

The platform lifecycle is separate from the collection result: platform `platformStatus` is only `SUCCEEDED` or `FAILED`, while `resultStatus` is `COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`. `NO_DATA` requires a source-provided zero total or an explicit zero `job(s)`/`Stellenangebote` count in the listing heading; unrelated numbers are not empty-result evidence. A source barrier produces a `SKIPPED` result. A generic transport failure is `DEFERRED` unless complete rows were already stored, in which case the run is `SUCCEEDED`/`LIMITED`. Fatal zero-row processing or dataset-write errors are recorded as `FAILED`/`FAILED`. Dataset row counts advance only after `Actor.pushData()` succeeds; diagnostics, request receipts, and summaries remain in the key-value store. Finalization chooses one terminal SDK method only; a rejected exit is reconciled in KVS/process state without retrying exit or calling fail afterward.

### Local validation

```powershell
npm install
npm test
npm run check
apify validate-schema
```

Before a live local `apify run`, inspect `apify run --help`, choose a new actor-relative `APIFY_LOCAL_STORAGE_DIR`, and confirm that the path does not exist. Use that fresh path with `--resurrect`; do not pass `--purge`. The Actor has not been pushed to Apify Cloud.

# Actor input Schema

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

Maximum number of detail-verified records with at least 21 meaningful source facts.

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

Timeout for one ordinary public page request.

## `delayMillis` (type: `integer`):

Minimum spacing between sequential listing and detail requests.

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

Maximum accepted response-body size for each public page.

## Actor input object example

```json
{
  "maxItems": 1,
  "timeoutMs": 30000,
  "delayMillis": 750,
  "maxResponseBytes": 15000000
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jobsapi/jobbern-jobs-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/jobbern-jobs-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 '{}' |
apify call jobsapi/jobbern-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/jobbern-jobs-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/6o9jIMJ2gP9MYe9sg/builds/jHFPzc5SXJv219GIv/openapi.json
