# NIJobs direct job search scraper (`jobsapi/nijobs-jobs-search-scraper`) Actor

Bounded NIJobs.com scraper that fetches official listing and detail pages directly, preserves source-backed fields, and records access diagnostics separately from the dataset.

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

## NIJobs direct job search scraper

This Apify Actor extracts complete, public job postings from the official NIJobs.com website. It requests official HTTPS listing and detail pages directly, parses server-rendered HTML and JSON-LD, and writes only detail-verified records to the dataset.

The Actor is intentionally bounded for reproducible local and cloud execution. It supports search, single-detail, multiple-detail, searchMultiple, and mixed startUrls modes. A listing is only used to discover official detail URLs; incomplete details are reported in RUN_DIAGNOSTICS and never written as dataset rows.

### Input

A simple search run:

```json
{
  "mode": "search",
  "query": "it",
  "startUrls": ["https://www.nijobs.com/jobs/it"],
  "maxItems": 3,
  "maxCandidates": 10,
  "maxPages": 1,
  "maxRequests": 8,
  "requestTimeoutSeconds": 10,
  "deadlineMs": 120000
}
```

The single mode uses url, multiple uses urls, searchMultiple uses searches, and startUrls accepts official /jobs/... or /job/... URLs. Legacy http:// NIJobs URLs are upgraded to HTTPS. Third-party mirrors, browser automation, proxies, and access-control bypasses are not used.

### Output

Dataset rows include the title, employer, location, posting date, description, optional salary and employment fields, official URLs, source record, verification flags, field coverage, and request receipts. Optional values are omitted when NIJobs does not disclose them.

Platform run `status` is only `SUCCEEDED` or `FAILED`. The separate `resultStatus` describes the dataset outcome:

- `COMPLETE` — one or more records were stored without run diagnostics.
- `LIMITED` — one or more records were stored, but a later non-blocking error or diagnostic limited the result.
- `SKIPPED` — a confirmed source access barrier stopped the run immediately; staged records are discarded.
- `DEFERRED` — source access or the HTTP response was uncertain, so no result is claimed.
- `NO_DATA` — the request completed cleanly and returned no jobs.
- `FAILED` — a fatal zero-row failure; the Actor run fails after best-effort summary persistence.

Rows are staged until source access is known. Only verified NIJobs job records are pushed to the Dataset, and the stored-record count advances only after a successful push. If a later Dataset write fails after earlier rows were stored, the outcome is `SUCCEEDED` / `LIMITED`; if no row was stored, it is `FAILED` / `FAILED`. Diagnostics and request receipts stay in the key-value store, never in the Dataset.

The following key-value records are written for every run when storage is available:

- RUN_SUMMARY — status, counts, runtime, and bounds.
- RUN_DIAGNOSTICS — source access, parse, incomplete-detail, and budget diagnostics.
- RUN_METADATA — normalized input, source policy, and request receipts.
- RUN_HEALTH — compact health state.

The existing source comparison remains **DEFERRED**: the recorded Chrome-side `ERR_HTTP2_PROTOCOL_ERROR` occurred before page content was available and does not establish that NIJobs blocked access. No source validation is claimed by this lifecycle audit. A confirmed access barrier observed during a future authorized run is reported as `SUCCEEDED` / `SKIPPED`, with staged rows discarded and the reason retained in `RUN_DIAGNOSTICS`.

### Local QA

Run from this directory:

```text
npm ci --ignore-scripts --no-audit --no-fund
npm test
npm run check
npx --yes apify-cli validate-schema .actor/input_schema.json
npx --yes apify-cli run --purge --input-file INPUT.json
npm run validate
```

Use apify run for Actor execution. Cloud runs use the same bounded input and report truthful cloud provenance.

# Changelog

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

# Actor input Schema

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

Search official listing pages, fetch exact details, run multiple searches, or process mixed start URLs.

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

Official NIJobs category/search slug. The default category is IT.

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

Optional text added to the official search query.

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

HTTPS or legacy HTTP NIJobs.com /jobs listing and /job detail URLs. HTTP URLs are upgraded to HTTPS locally.

## `url` (type: `string`):

Exact official NIJobs detail URL used by single mode.

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

Exact official NIJobs detail URLs used by multiple mode.

## `searches` (type: `array`):

Search objects used by searchMultiple mode.

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

Maximum complete detail-verified job records written to the dataset.

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

Maximum listing candidates considered for detail verification.

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

Maximum page query values attempted per official listing URL.

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

Hard upper bound on official HTTPS attempts, including redirects and failures.

## `requestTimeoutSeconds` (type: `integer`):

Maximum wait for each direct official request.

## `deadlineMs` (type: `integer`):

Hard wall-clock limit for the complete run.

## Actor input object example

```json
{
  "mode": "search",
  "query": "it",
  "location": "",
  "maxItems": 3,
  "maxCandidates": 20,
  "maxPages": 1,
  "maxRequests": 8,
  "requestTimeoutSeconds": 10,
  "deadlineMs": 120000
}
```

# Actor output Schema

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

No description

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

No description

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

```

## MCP server setup

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