# JobBasel Job Details Scraper (`jobsapi/jobbasel-jobs-details-search-scraper`) Actor

Extract detailed public job postings from JobBasel.ch, including title, company, location, dates, employment type, description, and application URL.

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

## Pricing

from $2.99 / 1,000 jobbasel 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

## Jobbasel Jobs Details Scraper

CSV rank: **4382**. Store listing: [alexist/jobbasel-jobs-details-scraper](https://apify.com/alexist/jobbasel-jobs-details-scraper).

This Actor extracts detailed public job postings from [jobbasel.ch](https://www.jobbasel.ch), the regional Basel job portal. It can discover public detail links from listing pages or fetch direct public job URLs. Each detail page is parsed from its public Schema.org `JobPosting` JSON-LD and visible page metadata; no account, login, application submission, or private candidate data is used.

### Extracted fields

Records include job ID and slug, title, canonical URL, company name/profile/website/logo/address/description, visible company-profile tabs, structured job locations, employment types, visible contract type and workload, occupational categories, work hours, applicant/location requirements, publication and validity dates, sectioned plain-text and HTML descriptions, responsibilities, qualifications, education/experience requirements, skills, benefits, salary metadata where published, public recruiter names/roles/phone numbers, source-visible employer tenure/workforce-scale text, application and employer-information URLs, public map/commute links, and source provenance. `meaningfulFieldCount` counts populated source facts and excludes run metadata and duplicate representations (for example, the same location in both `locations` and `city`, duplicate structured/visible employer-size claims, or the same apply URL in link metadata); complete records must contain more than 20. Application URLs are reported only; the Actor never follows them or submits an application.

### Input

Search the official public listing with:

```json
{
  "mode": "search",
  "startUrls": ["https://www.jobbasel.ch/job/alle-jobs"],
  "maxItems": 5,
  "requestDelayMs": 250
}
```

For one direct public detail page use `"mode": "single"` with `jobUrl` or one-item `jobUrls`. For several direct pages use `"mode": "multiple"` with `jobUrls`; numeric `jobId`/`jobIds` aliases are resolved through the public listing. `query` matches title, company, locations, description, categories, employment, requirements, and responsibilities. Requests are sequential, direct, single-attempt, and spaced by at least 250 ms. Custom user-agent, retry, concurrency, proxy, cookie, and fixture/debug input controls are not exposed.

The checked-in HTML fixtures are used only by offline parser unit tests; they cannot be selected through Actor input. If JobBasel returns HTTP 401, 403, 429, or 451, or a visible source-authored access-denial/CAPTCHA/verification/security-challenge page, the Actor stops requests, discards buffered job rows, records `SKIPPED` with the evidence and request receipts, and does not retry or follow redirects. Other HTTP, redirect, and transport failures are recorded as `DEFERRED` and are not treated as proof of a site block.

### Output

Each dataset item is a complete job row with `recordType: "job"`, `recordStatus: "complete"`, verified detail/canonical identity flags, `jobId`, `title`, `jobUrl`, rich source-backed fields, and `scrapedAt`. Request receipts and diagnostics stay in Key-Value Store artifacts; neither is written to dataset rows. `OUTPUT` and `OUTPUT_SUMMARY` use platform `status: "SUCCEEDED"|"FAILED"` and separate `resultStatus: "COMPLETE"|"LIMITED"|"SKIPPED"|"DEFERRED"|"NO_DATA"|"FAILED"`. Explicit source barriers stop requests, discard staged rows, and produce `SUCCEEDED`/`SKIPPED`; ordinary transport unavailability produces `DEFERRED`; fatal zero-row processing failures produce `FAILED`/`FAILED`. Rows successfully stored before a later non-block failure remain `SUCCEEDED`/`LIMITED`. `RUN_HEALTH` keeps diagnostics and `REQUEST_RECEIPTS` keeps per-request URLs, response statuses, content types, byte counts, hashes, durations, redirect targets, and bounded barrier evidence.

### Local development

```bash
npm ci
npm test
npm run lint
apify validate-schema
```

Before a local Actor run, choose a new actor-relative storage path and confirm it does not exist. Then run and validate that exact store (PowerShell example):

```powershell
$env:APIFY_LOCAL_STORAGE_DIR = 'storage-jobbasel-check-<unique-id>'
if (Test-Path -LiteralPath $env:APIFY_LOCAL_STORAGE_DIR) { throw 'Choose a new local storage path.' }
apify run --resurrect --input-file INPUT.json
node validate-datasets.js $env:APIFY_LOCAL_STORAGE_DIR
```

Never use `--purge` or reuse a prior dataset directory for validation. Local output is not Cloud qualification; no Cloud push or run is implied.

Deploy with `apify push`, then validate a small live input with an explicit build number, bounded memory, and timeout before increasing limits.

Job pages can change or expire. Verify important employment information on the original public listing.

# Actor input Schema

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

Search the public listing, fetch one public detail page, or fetch multiple public detail pages.

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

Public HTTPS JobBasel listing/search pages on www.jobbasel.ch from which job detail links are discovered.

## `jobUrls` (type: `array`):

Direct public HTTPS JobBasel detail URLs on www.jobbasel.ch.

## `jobUrl` (type: `string`):

Alias for one direct public JobBasel detail URL.

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

Alias for direct public JobBasel detail URLs.

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

Numeric JobBasel IDs to select from discovered listing links.

## `jobId` (type: `string`):

Alias for one numeric JobBasel ID; the public listing is used to resolve its detail URL.

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

Case-insensitive match against title, company, locations, description, categories, and employment fields.

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

Maximum detail records to fetch and store.

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

Minimum spacing between ordinary public requests. Detail requests remain sequential so a source barrier stops all later requests.

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

Timeout for each public page request.

## Actor input object example

```json
{
  "mode": "search",
  "maxItems": 10,
  "requestDelayMs": 250,
  "timeoutSecs": 30
}
```

# Actor output Schema

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

Detail-enriched public job records.

## `keyValueStore` (type: `string`):

Run status, diagnostics, and listing/detail request counts.

## `requestReceipts` (type: `string`):

Exact ordinary public requests, response statuses, redirects, hashes, and bounded access-barrier evidence.

## `runHealth` (type: `string`):

Diagnostics remain outside the job dataset in RUN_HEALTH.

# 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/jobbasel-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/jobbasel-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 '{}' |
apify call jobsapi/jobbasel-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/jobbasel-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/F7hVHkn8C3rmAQIeR/builds/ds2R6m9dVF6zlaIYD/openapi.json
