# NiceJob.de Jobs Scraper (`jobsapi/nicejob-de-jobs-search-scraper`) Actor

Extract complete public NiceJob.de job postings through bounded listing and detail requests.

- **URL**: https://apify.com/jobsapi/nicejob-de-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 nicejob.de 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

## NiceJob.de Public Jobs Search Scraper

This Actor extracts complete public job postings from https://www.nicejob.de. It uses direct HTTPS requests, Cheerio, the public window.**PRELOADED_STATE** payload, and Schema.org JobPosting JSON-LD. It does not log in, use a proxy, launch a browser, bypass a challenge, call another Apify Actor, or bypass access controls.

### Supported inputs

The input schema supports five bounded modes:

- search: one query through NiceJob's public /job/suche-{query} route.
- searchMultiple: multiple queries, deduplicated by the public job ID while retaining matchedQueries.
- single: one official NiceJob detail URL in jobUrl.
- multiple: official detail URLs in jobUrls.
- startUrls: a list of official NiceJob listing/search or detail URLs.

All URLs must use https://nicejob.de or https://www.nicejob.de. maxItems, maxCandidates, maxPages, maxDetailRequests, maxRequests, timeouts, and retries are bounded to keep a normal run within the requested short local test window.

Example search input:

```
{
    "mode": "search",
    "query": "softwareentwickler",
    "location": "",
    "maxItems": 3,
    "maxCandidates": 12,
    "maxPages": 1,
    "maxDetailRequests": 6,
    "maxRequests": 12,
    "timeoutMs": 20000,
    "retries": 1
}
```

### Output

Complete rows have recordType "nicejob-job" and are emitted only after a public detail page provides:

- stable NiceJob job ID and official detail URL;
- title, employer, location, normalized publication date;
- long description plus HTML, sections, headings, bullets, responsibilities, qualifications, and benefits when published;
- employer metadata, categories/keywords, employment percentage, home-office flag, public application/original links, and source record;
- official canonical verification, source-state verification, HTTP status, and a SHA-256 request receipt.

Public contact blocks are intentionally excluded from sourceRecord; recruiter names, phone numbers, and email addresses are not copied into the dataset.

Only complete `nicejob-job` records are written to the Dataset. Request, parser, and lifecycle diagnostics are stored in `RUN_DIAGNOSTICS` in the key-value store; diagnostics and placeholder rows are never emitted as Dataset items. No placeholder, null, blank, or empty collection values are intentionally emitted.

The platform `status` is `SUCCEEDED` or `FAILED`; `resultStatus` separately reports `COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`. A source denial is `SKIPPED` only when an ordinary response from an official NiceJob `/job/` URL (including its final URL) returns HTTP 401, 403, 429, or 451, or the visible response contains a source-authored access challenge. HTTP 406, off-site redirects, and generic transport/controller errors are not source-denial evidence. `NO_DATA` requires a successful recognized listing state with an explicit zero total for every requested search task, no parsed jobs, and no next page; unrecognized/empty parses remain `DEFERRED`. If a later non-block failure follows successful Dataset writes, those rows are preserved as `SUCCEEDED` / `LIMITED`; a fatal zero-row run is `FAILED` / `FAILED`.

### Local checks

From this directory:

```
npm ci --ignore-scripts --no-audit --no-fund
npm test
npm run check
apify validate-schema
```

The other fixture files exercise single, multiple, searchMultiple, startUrls, and a negative detail case. Dataset validation reads local Actor storage and is intentionally not part of this offline lifecycle check. If an Actor run is separately authorized, inspect and preserve existing local stores first, then use a new unused relative `APIFY_LOCAL_STORAGE_DIR` with `--resurrect`; do not use `--purge` or reuse an existing dataset directory.

### Runtime and output contract

The Actor supports bounded local and Apify cloud runs. The default dataset contains only complete NiceJob.de job records. Request failures and diagnostics remain available in `RUN_DIAGNOSTICS` in the default key-value store. `maxRequests` caps total HTTP attempts including retries, `deadlineSeconds` caps wall-clock runtime, and raw input is not persisted in metadata.

# Changelog

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

# Actor input Schema

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

Search one query, search multiple queries, fetch one or multiple detail URLs, or process official start URLs.

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

Query used with NiceJob's public /job/suche-{query} route.

## `keywords` (type: `string`):

Alias for query.

## `keyword` (type: `string`):

Alias for query.

## `searchQueries` (type: `array`):

Queries used in searchMultiple mode. Results are deduplicated by NiceJob job ID and retain matchedQueries.

## `queries` (type: `array`):

Alias for searchQueries.

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

Optional case-insensitive substring filter applied after detail enrichment.

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

Official nicejob.de or www.nicejob.de listing/search or detail URLs only.

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

Official NiceJob detail URL for single mode.

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

Official NiceJob detail URLs for multiple mode.

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

Maximum complete job records to emit.

## `maxCandidates` (type: `integer`):

Maximum unique listing candidates to detail-fetch.

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

Maximum listing/search pages to fetch per task.

## `maxDetailRequests` (type: `integer`):

Maximum official detail pages to fetch.

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

Maximum total HTTP attempts, including retries, for the run.

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

Per-request timeout in milliseconds.

## `retries` (type: `integer`):

Retry count for transient HTTP or network failures.

## `deadlineSeconds` (type: `integer`):

Hard wall-clock limit for this bounded run.

## Actor input object example

```json
{
  "mode": "search",
  "query": "softwareentwickler",
  "location": "",
  "maxItems": 3,
  "maxCandidates": 12,
  "maxPages": 2,
  "maxDetailRequests": 6,
  "maxRequests": 24,
  "timeoutMs": 20000,
  "retries": 1,
  "deadlineSeconds": 120
}
```

# Actor output Schema

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

No description

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

Platform status and separate resultStatus, counts, and source evidence.

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

No description

## `diagnostics` (type: `string`):

Source and lifecycle diagnostics; never Dataset rows.

# 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/nicejob-de-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/nicejob-de-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/nicejob-de-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/nicejob-de-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/0O7rsbfFZaCrcBga5/builds/kPLEoOqNxv3XpQGYv/openapi.json
