# Jobs SHZ Scraper (`jobsapi/jobs-sh-jobs-search-scraper`) Actor

Extract public Jobs SHZ vacancies in Schleswig-Holstein with employers, locations, work arrangements, dates, salaries, descriptions, and application links.

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

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

## Jobs SHZ Jobs Search Scraper

Inventory rank: 4204. Store listing: [khadinakbar/jobs-sh-scraper](https://apify.com/khadinakbar/jobs-sh-scraper).

Extract public vacancies from [Jobs SHZ](https://jobs.shz.de/), the regional job portal for Schleswig-Holstein. The dataset keeps source-grounded employer, location, work arrangement, compensation, description, application, and publication fields when Jobs SHZ publishes them.

### Input

The default `search` mode reads Jobs SHZ public result pages. `single` and `multiple` modes accept public `/job/` URLs in `startUrls`. `searchKeyword`, `location`, `employmentTypes`, and `workplaceTypes` are optional search or client-side filters. `maxItems`, `maxPages`, `maxRequests`, `timeoutMs`, `maxResponseBytes`, and `delayMs` bound collection.

Only `https://jobs.shz.de` start URLs are accepted. The input schema does not expose a proxy, cookie, user-agent, or request-header override. Detail verification is mandatory in every mode, so listing-only records are not emitted.

### Dataset fields

The parser reads the site's public `__NEXT_DATA__` payload and verifies each search result against its public detail page. It also keeps visible-page and JSON-LD extraction as limited fallbacks.

Records include the job's ID and title; employer profile, logo, cover, gallery, industry and public summary; readable locations, employment and remote labels; categories, experience, education and languages; structured/free-text compensation; readable description and HTML; section headings, responsibilities, qualifications, benefits, employer overview and application instructions; application URL, workflow and document requirements; public dates, status, and location coordinates. Fields the source does not publish remain omitted.

The dataset is a **closed business-only contract**: a `toBusinessRow()` allowlist is applied at the `pushData` boundary. Classification/provenance flags (`recordType`, `actorName`, `actorVersion`, `id`, `scrapedAt`, `extractionSource`, `mode`, `detailFetchStatus`, `detailVerified`, `identityVerified`, `dataQuality`), duplicate renderings (`descriptionText`, `descriptionIntro`, `descriptionParagraphs`, `descriptionBullets`) and URL aliases (`canonicalUrl`, `publicUrl`, `sourceUrl`, `regionLabels`, `administrativeAreas`) are kept in KVS, not emitted as job facts. Per-request HTTP receipts are stored in KVS, not copied into dataset rows.

Each emitted row requires at least 21 populated source-grounded facts, a readable description, a successful detail fetch, and a verified job identity. Publicly readable unpublished or expired details retain their source status rather than being labelled active.

### Access and request policy

Requests use ordinary direct HTTPS with platform-default headers, no cookies, proxy, identity changes, fingerprint changes, or retries. Same-host redirects are manual, bounded, and recorded individually. HTTP 401, 403, 429, or 451 and visible source-authored CAPTCHA, human-verification, security-challenge, or access-denial pages stop further requests. That run receives platform status `SUCCEEDED` and `resultStatus: SKIPPED`; buffered rows are discarded, and status evidence, diagnostics, and request receipts are kept in the key-value store. HTTP 407 and unverified transport failures are deferred, never source-block evidence.

Platform status is `SUCCEEDED` or `FAILED`, independently of `resultStatus` (`COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`). Complete records are counted only after successful `pushData`; a later non-block error preserves already-stored records as `SUCCEEDED/LIMITED`. Fatal non-block errors with no stored rows call `Actor.fail()` and produce `FAILED/FAILED`. Diagnostics and request receipts are KVS-only; they are not copied into new dataset rows.

### Local validation

Run checks and schema validation with:

```powershell
npm test
```

Before `apify run`, inspect the selected new storage directory and legacy `apify_storage` locations. Preserve any existing legacy contents outside the run directory; do not reuse an existing dataset folder. Then choose a fresh actor-relative path with `APIFY_LOCAL_STORAGE_DIR`, use `--resurrect`, and validate the same path:

```powershell
if (Test-Path -LiteralPath .\storage-jobs-sh-validation) { throw 'Choose a new isolated storage path.' }
$legacyStores = @('.\apify_storage', '.\storage\apify_storage', '..\apify_storage', '..\storage\apify_storage')
if ($legacyStores | Where-Object { Test-Path -LiteralPath $_ }) { throw 'Preserve the legacy store before running.' }
$env:APIFY_LOCAL_STORAGE_DIR = 'storage-jobs-sh-validation'
apify run --resurrect --input-file ./INPUT.json
npm run validate:dataset -- storage-jobs-sh-validation
```

The validation script checks every dataset row against the strict actor schema and reconciles records, meaningful-field counts, receipts, diagnostics, skips, and run status. Local validation does not push or run the Actor on Apify Cloud.

# Changelog

This Actor's version history is a separate document: https://apify.com/jobsapi/jobs-sh-jobs-search-scraper/changelog.md

# Actor input Schema

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

Search public listings, fetch one public vacancy URL, or fetch several public vacancy URLs.

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

Public Jobs SHZ search URLs or /job/ vacancy URLs. Defaults to the Jobs SHZ search page.

## `searchKeyword` (type: `string`):

Optional term added as the Jobs SHZ search parameter when a supplied URL has no search parameter.

## `location` (type: `string`):

Optional case-insensitive location filter, such as Kiel, Flensburg, or Schleswig-Holstein.

## `employmentTypes` (type: `array`):

Keep vacancies whose public employment type contains at least one selected value.

## `workplaceTypes` (type: `array`):

Keep vacancies whose public remote or workplace option contains at least one selected value.

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

Maximum unique vacancy records to emit after filters.

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

Maximum Jobs SHZ search pages per supplied search URL.

## `delayMs` (type: `integer`):

Minimum pause between public Jobs SHZ HTTP requests.

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

Maximum time allowed for each public request.

## `maxRequests` (type: `integer`):

Total bounded official listing and detail request budget.

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

Maximum accepted response body size for each official request.

## Actor input object example

```json
{
  "mode": "search",
  "startUrls": [],
  "maxItems": 25,
  "maxPages": 1,
  "delayMs": 250,
  "timeoutMs": 30000,
  "maxRequests": 60,
  "maxResponseBytes": 10000000
}
```

# Actor output Schema

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

No description

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

No description

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

No description

## `runDiagnostics` (type: `string`):

No description

## `runRequests` (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/jobs-sh-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/jobs-sh-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/jobs-sh-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

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