# Jobindex.dk Jobs Scraper (`stone_jadex/jobindex-jobs-scraper`) Actor

Public Jobindex.dk job postings by category, keyword and area: title, employer, location with coordinates, posted date, deadline, direct apply URL, teaser. Optional full ad text with employer contacts as printed. $1.00 per 1,000 jobs, no start fee. Respects robots.txt.

- **URL**: https://apify.com/stone_jadex/jobindex-jobs-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** Jobs, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 1,000 jobs

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Jobindex.dk Jobs Scraper

Extract public **Jobindex.dk** job postings across Denmark by category, keyword, Danish region/town, employment type, or supported Jobindex search and job URLs. Delivers structured employer metadata, workplace coordinates, posting and deadline dates, direct apply URLs, teaser text, and optional full ad text with verbatim employer contacts—all while strictly enforcing `www.jobindex.dk/robots.txt`.

***

### 1. Overview & Use Cases

**Jobindex.dk** is Denmark's leading job board, aggregating both Jobindex-hosted postings (`h...` IDs) and external employer-site listings (`r...` IDs) across IT, engineering, office, sales, finance, healthcare, and education.

Because Jobindex's `robots.txt` disallows search pagination (`page=`), sorting (`sort=`), and click-redirect trackers (`/c?`), this Actor takes a **robots-compliant geographic and category fan-out approach**: each search URL reads its first page (up to 20 postings), and by default `expandAreas: true` fans out across 36 Danish regions and major cities (`region-hovedstaden`, `aarhus`, `odense`, `aalborg`, etc.) with automatic deduplication by `jobId`.

#### Common Use Cases

- **Danish Tech & Industry Hiring Intelligence**: Monitor openings across Denmark by category (`it`, `ingenioer`, `salg`, `kontor`) and keyword (`python`, `data`, `react`), segmented across all 5 Danish regions and 31 urban hubs.
- **Incremental Daily Job Feeds**: Enable `incremental: true` to persist delivered `jobId` values in a named Key-Value Store (`SEEN_JOB_IDS`), ensuring repeat scheduled runs deliver **only newly posted jobs** without re-charging previously seen listings.
- **Employer Contact & Company Enrichment**: Turn on `scrapeDetails: true` for full Jobindex-hosted ad copy plus verbatim employer email addresses and phone numbers printed in the ad, and `fetchCompanyProfiles: true` for company overview, career page URL, parent group, employee headcount, and social links.
- **Geographic Mapping & Remote-Work Analysis**: Plot Danish job density using extracted `latitude`, `longitude`, `zipcode`, `city`, and `homeWorkplace` flags.

***

### 2. How Jobindex.dk Collection Works (Robots-Compliant First-Page Scope)

1. **Static & Live `robots.txt` Enforcement**: Input validation immediately rejects robots-disallowed URLs (`page=`, `sort=`, `jobage=`, `archive=`, `/c?`, `/api/`). At runtime, the Actor fetches `https://www.jobindex.dk/robots.txt`, parses `User-agent: *` rules, validates every request and redirect hop against both static and live rules, and treats a `5xx` `robots.txt` response as whole-site disallow (RFC 9309).
2. **Search Card Extraction (`var Stash`)**: Search pages embed structured listing JSON inside `var Stash`. Every job row includes `jobId`, canonical `/vis-job/{id}` URL, `adType` (`jobindex-ad` vs `external-site-ad`), `addresses` with coordinates, `postedDate`, `lastDate`, `applyDeadline`, `quickApply`, `homeWorkplace`, `companyRating`, and `snippetText`.
3. **Optional Detail Enrichment (`scrapeDetails: true`)**: Only ads hosted directly on Jobindex (`/jobannonce/...`, where `jobAdHostedOnJobindex === true`) are fetched for `descriptionText`, `descriptionHtml`, `contactEmails`, `contactPhones`, and `contactText`. External employer-hosted ads are never visited (`detailError` records `"ad hosted on employer site (not fetched)"`), keeping the run fast, compliant, and predictable.
4. **Optional Company Profiles (`fetchCompanyProfiles: true`)**: Requests `/virksomhed/{id}/...` once per unique company (cached in memory, capped by `maxCompanyPages`, and checked against `robots.txt`) at zero extra PPE event fee.

***

### 3. Illustrative Output JSON Examples

#### Illustrative Job Record (Matches `dataset_schema.json`)

```json
{
  "recordType": "job",
  "tier": "detail",
  "jobId": "h1710237",
  "url": "https://www.jobindex.dk/vis-job/h1710237",
  "adType": "jobindex-ad",
  "jobAdUrl": "https://www.jobindex.dk/jobannonce/h1710237/example-software-developer",
  "jobAdHostedOnJobindex": true,
  "title": "Example Software Developer",
  "companyName": "Example Company ApS",
  "companyProfileName": "Example Company",
  "companyId": "123456",
  "companyProfileUrl": "https://www.jobindex.dk/virksomhed/123456/example-company",
  "companyHomepage": "https://example.com/",
  "companyLogo": "https://example.com/logo.png",
  "companyFollowers": 42,
  "companyRating": 4,
  "companyRatingCount": 12,
  "location": "Aarhus",
  "addresses": [
    {
      "line": "Example Street 1",
      "zipcode": "8000",
      "city": "Aarhus",
      "latitude": 56.15,
      "longitude": 10.2,
      "text": "Example Street 1, 8000 Aarhus"
    }
  ],
  "zipcode": "8000",
  "city": "Aarhus",
  "latitude": 56.15,
  "longitude": 10.2,
  "postedDate": "2026-10-20",
  "lastDate": "2026-11-01",
  "applyDeadline": "2026-11-15T22:59:00Z",
  "applyDeadlineAsap": false,
  "applyUrl": "https://example.com/careers/apply",
  "quickApply": false,
  "homeWorkplace": false,
  "hasVideo": false,
  "snippetText": "Join our example team and help build public services.",
  "descriptionText": "Example ad text for an example role at Example Company.",
  "descriptionHtml": "<p>Example ad text for an example role at Example Company.</p>",
  "descriptionLayout": "standard",
  "contactEmails": ["jobs@example.com"],
  "contactPhones": ["+45 12 34 56 78"],
  "contactText": "Example Contact\nRecruiter\njobs@example.com",
  "employmentType": "Fastansættelse",
  "companyAbout": "Example Company builds example products for example customers.",
  "companyCareerPage": "https://example.com/careers",
  "companyMotherCompany": "Example Group",
  "companyEmployeeCount": 100,
  "companySocialFacebook": "https://www.facebook.com/example",
  "companySocialLinkedin": "https://www.linkedin.com/company/example",
  "companySocialLinks": [
    {
      "network": "linkedin",
      "url": "https://www.linkedin.com/company/example"
    }
  ],
  "detailError": null,
  "searchUrl": "https://www.jobindex.dk/jobsoegning/it/aarhus",
  "searchHitCount": 42,
  "scrapedAt": "2026-11-23T10:00:00.000Z"
}
```

#### Illustrative Truncation Notice Row (Uncharged)

When a run stops early (such as hitting `maxItems`, `max-charge-reached`, `run-time-limit`, or when `robots.txt` restricts searches to page 1 with `first-page-only`), one uncharged notice row (`charged: false`) is appended:

```json
{
  "recordType": "run-notice",
  "truncatedAfter": 20,
  "reason": "first-page-only",
  "charged": false,
  "detailError": null
}
```

#### Nested Array Structures (`addresses` & `companySocialLinks`)

- Each entry in `addresses[]` contains `line` (`string | null`), `zipcode` (`string | null`), `city` (`string | null`), `latitude` (`number | null`), `longitude` (`number | null`), and `text` (`string | null`).
- Each entry in `companySocialLinks[]` contains `network` (lowercase network name such as `"linkedin"`, `"facebook"`, `"instagram"`, `"twitter"`, `"youtube"`, or `"tiktok"`) and `url` (`string | null`).

***

### 4. Dataset Field Reference

All 53 top-level fields in `.actor/dataset_schema.json` are documented below. Job rows share a consistent key structure (`detailError` is `null` when no detail error occurred).

| Field | Description |
| --- | --- |
| `recordType` | `"job"` for a job posting row, or `"run-notice"` for the single uncharged notice row written when a run stops early or encounters first-page-only truncation. |
| `tier` | `"list"` when parsed from search cards only, or `"detail"` when enriched from a Jobindex-hosted `/jobannonce/...` page. Absent on `run-notice` rows. |
| `jobId` | Lowercase Jobindex job ID (`tid`) from the source URL, e.g., `h1234567` (Jobindex-placed) or `r1234567` (external-site). |
| `url` | Canonical Jobindex share page URL (`/vis-job/{id}`). |
| `adType` | Inferred from the ID prefix: `"jobindex-ad"` (`h...`) or `"external-site-ad"` (`r...`). |
| `jobAdUrl` | Direct destination URL behind the listing title (`/jobannonce/...` on Jobindex or the employer's external ad page; never a `/c?` click redirect). |
| `jobAdHostedOnJobindex` | `true` when `jobAdUrl` points to a Jobindex-hosted `/jobannonce/...` ad whose full text can be fetched with `scrapeDetails: true`. |
| `title` | Job headline as displayed on Jobindex. |
| `companyName` | Employer name shown on the search card. |
| `companyProfileName` | Attached Jobindex company profile name (may differ from `companyName` on external-site ads). |
| `companyId` | Numeric Jobindex company identifier as a string. |
| `companyProfileUrl` | Public Jobindex company profile URL (`/virksomhed/{id}/...`). |
| `companyHomepage` | Employer website URL listed on Jobindex. |
| `companyLogo` | Employer logo image URL. |
| `companyFollowers` | Number of Jobindex users following the employer profile. |
| `companyRating` | Average employer rating on Jobindex (typically `1`–`5`), when displayed. |
| `companyRatingCount` | Number of employer reviews/ratings on Jobindex, when displayed. |
| `location` | Workplace location string shown on the search card. |
| `addresses` | Array of published workplace address objects (`line`, `zipcode`, `city`, `latitude`, `longitude`, `text`). Empty array when omitted. |
| `zipcode` | Postal code from the first entry in `addresses`, or `null`. |
| `city` | City from the first entry in `addresses`, or `null`. |
| `latitude` | WGS84 latitude from the first entry in `addresses`, or `null`. |
| `longitude` | WGS84 longitude from the first entry in `addresses`, or `null`. |
| `postedDate` | First publication date in `YYYY-MM-DD` format as provided by Jobindex. |
| `lastDate` | Listing expiry / last active date in `YYYY-MM-DD` format. |
| `applyDeadline` | Application deadline as an ISO-8601 UTC timestamp with trailing `Z`, when provided. |
| `applyDeadlineAsap` | `true` when the employer marks the application deadline as "as soon as possible". |
| `applyUrl` | Direct external application URL published with the job (`null` for Jobindex quick-apply jobs whose `/api/` apply route is disallowed by `robots.txt`). |
| `quickApply` | `true` when the posting supports Jobindex Quick Apply. |
| `homeWorkplace` | `true` when flagged as remote/home-workplace (`home_workplace`) in Jobindex search data; `null` if unavailable (such as `/vis-job/` detail seeds). |
| `hasVideo` | `true` when the ad includes a video indicator. |
| `snippetText` | Short teaser text extracted from the Jobindex search card. |
| `descriptionText` | Plain-text body of the full job ad (populated at `detail` tier for Jobindex-hosted ads only). |
| `descriptionHtml` | Cleaned HTML body of the full job ad (populated at `detail` tier for Jobindex-hosted ads only). |
| `descriptionLayout` | `"standard"` for the native Jobindex `.jobtext-jobad__body` template, or `"employer-layout"` for custom employer HTML layouts (modals stripped). |
| `contactEmails` | Array of verbatim email addresses extracted from `mailto:` links and ad text (`detail` tier). |
| `contactPhones` | Array of verbatim Danish and international phone numbers printed in the ad (`detail` tier). Phones are extracted heuristically; occasional false positives/misses are possible. |
| `contactText` | Verbatim ad lines containing an extracted email or phone plus up to three short name/title lines printed directly above them (`detail` tier). |
| `employmentType` | Employment type filter label under which the job was found (for example `"Studiejob"` or `"Fastansættelse"`), or `null`. |
| `companyAbout` | Company "about" summary parsed from `/virksomhed/{id}/...` when `fetchCompanyProfiles: true`. |
| `companyCareerPage` | Employer career page URL from the Jobindex company profile (`fetchCompanyProfiles: true`). |
| `companyMotherCompany` | Parent/mother company name from the Jobindex company profile (`fetchCompanyProfiles: true`). |
| `companyEmployeeCount` | Reported employee count integer from the Jobindex company profile (`fetchCompanyProfiles: true`). |
| `companySocialFacebook` | Employer Facebook URL from the Jobindex company profile (`fetchCompanyProfiles: true`). |
| `companySocialLinkedin` | Employer LinkedIn URL from the Jobindex company profile (`fetchCompanyProfiles: true`). |
| `companySocialLinks` | Array of all supported social links (`facebook`, `linkedin`, `instagram`, `twitter`, `youtube`, `tiktok`) from the company profile. |
| `detailError` | Reason why an ad page was not enriched (e.g., `"ad hosted on employer site (not fetched)"`), or `null` when enrichment succeeded or was skipped. |
| `searchUrl` | Jobindex search URL where the listing was discovered. |
| `searchHitCount` | Total matching job count reported by Jobindex for that search URL. |
| `scrapedAt` | UTC ISO-8601 timestamp when the row was scraped. |
| `truncatedAfter` | `run-notice` only: count of charged job rows pushed before stopping. |
| `reason` | `run-notice` only: stop or truncation reason (`maxItems`, `first-page-only`, `max-charge-reached`, `run-time-limit`, `proxy-budget`, `cloudflare-challenge`, or `errors`). |
| `charged` | `run-notice` only: always `false` because notice rows are never billed. |

Phones are found as `tel:` links, numbers following Danish/English phone labels (`tlf.`, `telefon`, `mobil`, `phone`, `tel.`, `ring`, `call`), and strict Danish 8-digit / `+45` patterns while filtering out dates, CVR/SE/P-numbers, job/order IDs, postcodes, and DKK salary amounts. Phones are extracted heuristically; occasional false positives/misses are possible.

***

### 5. Pay-Per-Event Pricing & Store Tier Discounts

This Actor uses **Pay-Per-Event (PPE)** billing with **zero start fee**. Only successfully charged job rows are pushed to the dataset; skipped incremental jobs, duplicate jobs across areas, uncharged `run-notice` rows, and optional `fetchCompanyProfiles` requests incur **$0.00** in PPE charges.

- **`job` (List-tier job)**: `$0.001` per job posting (`$1.00` per 1,000 jobs) on the Free tier.
- **`job-detail` (Job with full ad text)**: `$0.001` per job posting (`$1.00` per 1,000 jobs) on the Free tier. Charged **instead of** `job`, never in addition to it. If `scrapeDetails: true` encounters an external employer-hosted ad (or an ad page failure), only the standard `job` event is charged.

#### Apify Store Subscription Tier Discounts

Paid Apify Store subscribers receive automatic tiered discounts on both `job` and `job-detail` events (Free-tier base price unchanged at `$0.001` / `$1.00` per 1,000):

| Apify Subscription Tier | Discount Multiplier | Price per `job` / `job-detail` (USD) | Cost per 1,000 Jobs (USD) |
| --- | --- | ---: | ---: |
| **Free** (`FREE`) | 1.00x (base) | `$0.00100` | `$1.00` |
| **Bronze** (`BRONZE`) | 0.95x (5% off) | `$0.00095` | `$0.95` |
| **Silver** (`SILVER`) | 0.90x (10% off) | `$0.00090` | `$0.90` |
| **Gold** (`GOLD`) | 0.85x (15% off) | `$0.00085` | `$0.85` |
| **Platinum** (`PLATINUM`) | 0.85x (15% off) | `$0.00085` | `$0.85` |
| **Diamond** (`DIAMOND`) | 0.85x (15% off) | `$0.00085` | `$0.85` |

> *Note*: PPE figures reflect Actor event billing only. Platform compute, storage, and optional proxy traffic follow standard Apify account rates. Check the live Pricing tab on Apify Store before starting high-volume runs.

***

### 6. Input Parameters & Examples

All 18 input fields defined in `.actor/input_schema.json` are listed below. When no `categories`, `keywords`, `areas`, or `startUrls` are provided, the Actor searches category `it` across 36 Danish areas up to `maxItems: 100`.

| Field | Default | What it does |
| --- | --- | --- |
| `categories` | `["it"]` (when empty input) | Jobindex category slugs from `/jobsoegning/{slug}` (e.g., `it`, `salg`, `kontor`, `ingenioer`, `undervisning`, or `it/systemudvikling`). |
| `keywords` | `[]` | Free-text search terms (`?q=`), combined with each category and area. Terms starting with `www`, `http`, or `ofir` are disallowed by `robots.txt` and rejected. |
| `areas` | `[]` | Jobindex area slugs (e.g., `region-hovedstaden`, `aarhus`, `odense`) or Danish names (`Århus` -> `aarhus`). Leave empty with `expandAreas: true` to use 36 built-in regions and towns. |
| `employmentTypes` | `[]` | Filter by employment type (`Fastansættelse`, `Tidsbegrænset`, `Studiejob`, `Elev/lærling`, `Graduate/trainee`, `Praktikplads`, `Fleksjob`, `Frivillig`, `Freelance`, `Timeansat/tilkaldevikar`, or English aliases like `permanent`, `student`, `freelance`). Keyword + employment type runs nationwide per `robots.txt`. |
| `expandAreas` | `true` | Fans out each category/keyword across 36 built-in Danish regions and towns when `areas` is empty so first-page-only searches return broader coverage. |
| `startUrls` | `[]` | Optional Jobindex search URLs (`/jobsoegning/...`) or job URLs (`/vis-job/{id}`, `/jobannonce/{id}/{slug}`). Rejects `page=`, `sort=`, `jobage=`, `/c?`, `/api/`, and other disallowed URLs. |
| `maxItems` | `100` | Maximum charged jobs to deliver across all searches (`1`–`100000`). |
| `scrapeDetails` | `false` | Fetches full text and verbatim contact lines for Jobindex-hosted `/jobannonce/...` ads (`job-detail` event, same USD price as `job`). |
| `fetchCompanyProfiles` | `false` | Requests `/virksomhed/{id}/...` once per unique company (cached, `robots.txt` checked) to populate `companyAbout`, `companyCareerPage`, `companyMotherCompany`, `companyEmployeeCount`, and social links at no extra event charge. |
| `maxCompanyPages` | `20` | Cap on unique company profile requests per run (`0`–`1000`). Companies above the cap keep `null` profile fields. |
| `incremental` | `false` | Skips job IDs already delivered in prior runs by persisting `SEEN_JOB_IDS` (capped at `500,000` IDs) in a named Key-Value Store after charge + push. |
| `incrementalStoreName` | `"jobindex-seen-jobs"` | Key-Value Store name for `incremental` mode; use separate names for separate saved searches. |
| `seenJobIds` | `[]` | Explicit array of Jobindex `jobId` strings (e.g., `["h1710237"]`) to skip without charge. |
| `maxRunSeconds` | `3600` | Graceful and hard timeout budget in seconds (`30`–`86400`), saving `OUTPUT` and a `run-notice` before exit. |
| `requestDelayMs` | `1000` | Minimum delay in milliseconds between HTTP request starts (`500`–`60000`). |
| `concurrency` | `2` | Maximum concurrent Jobindex-hosted ad requests when `scrapeDetails: true` (`1`–`4`). Start times remain globally spaced by `requestDelayMs`. |
| `proxyConfiguration` | `{ "useApifyProxy": false }` | Proxy configuration. Plain HTTP works normally; enable Apify Proxy only if encountering `403`/`429` blocks. Residential usage is internally capped at `20 MB`. |
| `useProxyFallback` | `false` | When `true` with a configured proxy, begins direct and switches to the proxy only after `403`/`429` responses. |

#### JSON Input Example 1: Danish Software Developer Jobs Across Regions

```json
{
  "categories": ["it"],
  "keywords": ["software developer"],
  "expandAreas": true,
  "maxItems": 50,
  "scrapeDetails": false,
  "fetchCompanyProfiles": false,
  "requestDelayMs": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### JSON Input Example 2: Incremental Aarhus & Copenhagen Run with Details & Company Profiles

```json
{
  "categories": ["it/systemudvikling"],
  "areas": ["storkoebenhavn", "aarhus"],
  "employmentTypes": ["Fastansættelse"],
  "expandAreas": false,
  "maxItems": 100,
  "scrapeDetails": true,
  "fetchCompanyProfiles": true,
  "maxCompanyPages": 25,
  "incremental": true,
  "incrementalStoreName": "jobindex-dk-it-daily",
  "requestDelayMs": 1200,
  "concurrency": 2
}
```

***

### 7. Quickstart: JavaScript & Python SDK

Call `Stone_JadeX/jobindex-jobs-scraper` directly from Node.js or Python with the official `apify-client` package.

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: process.env.APIFY_TOKEN,
});

const run = await client.actor('Stone_JadeX/jobindex-jobs-scraper').call({
    categories: ['it'],
    keywords: ['software developer'],
    expandAreas: true,
    maxItems: 50,
    scrapeDetails: false,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const row of items) {
    if (row.recordType !== 'job') continue;
    console.log(`${row.jobId}: ${row.title} @ ${row.companyName} (${row.location})`);
}

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
console.log('Stop reason:', summary?.value?.stopReason, 'Pushed:', summary?.value?.pushed);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("Stone_JadeX/jobindex-jobs-scraper").call(
    run_input={
        "categories": ["it"],
        "keywords": ["python"],
        "areas": ["region-hovedstaden", "aarhus"],
        "maxItems": 50,
        "scrapeDetails": True,
        "fetchCompanyProfiles": True,
        "maxCompanyPages": 15,
    }
)

rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
jobs = [r for r in rows if r.get("recordType") == "job"]
print(f"Collected {len(jobs)} Jobindex postings")

for job in jobs[:5]:
    print(job.get("jobId"), job.get("title"), job.get("city"), job.get("contactEmails"))
```

***

### 8. FAQ, Legal Notice & Limitations

#### Why does each search only return up to 20 jobs?

`www.jobindex.dk/robots.txt` explicitly disallows search pagination (`page=`), sorting (`sort=`), and age filters (`jobage=`). To respect `robots.txt`, each search URL reads only its first page (~20 results). Leave `expandAreas: true` (default) or combine multiple `categories`, `areas`, and `employmentTypes` to gather larger deduplicated sets across Denmark.

#### Why are some fields omitted or left null?

- `videoUrl`: Ad videos are linked only through Jobindex click redirects (`/c?t=...`), which `robots.txt` disallows; only `hasVideo` is output.
- `isPromoted`: Not output because the public search page has no documented promoted/sponsored flag, and undocumented `has_spo` / `top_logo` values have no published meaning.
- **External-site ads (`r...`)**: When `jobAdHostedOnJobindex` is `false`, the full ad lives on the employer's own domain. The Actor only sends requests to `www.jobindex.dk`, so `descriptionText` / `descriptionHtml` remain `null` and `detailError` explains that the ad is hosted externally.
- **Salary**: Jobindex's structured search JSON leaves salary empty across sampled listings; any salary figure mentioned by the employer appears inside `snippetText` or `descriptionText`.

#### How does incremental mode avoid charging skipped jobs?

When `incremental: true`, `SEEN_JOB_IDS` is loaded from your named Key-Value Store (`incrementalStoreName`) at start. Any listing whose `jobId` is already known is skipped **before** `Actor.charge()` and **before** `pushData()`. IDs are appended to `SEEN_JOB_IDS` (capped at `500,000` oldest-evicted entries) only after the charge and dataset push succeed.

#### Is it legal to scrape Jobindex.dk?

This Actor collects only publicly accessible job postings and company profile summaries from `www.jobindex.dk` while honoring `robots.txt` directives, request rate limits (`requestDelayMs >= 1000` ms default), and avoiding login walls or click-tracking endpoints. Employer contact lines (`contactEmails`, `contactPhones`, `contactText`) are extracted strictly as published inside public job advertisements for recruitment/research use. Users are responsible for ensuring their downstream processing complies with GDPR, Danish data-protection standards, and applicable terms of service.

***

### 9. Changelog

#### 0.1.1 (2026-11-23)

- Upgraded `README.md` with Store-grade documentation: full 18-field input table, 2 JSON input examples, illustrative output JSON and `run-notice` examples, complete 53-field dataset reference, live PPE pricing + Apify Store subscription tier discounts (`FREE` 1.0x, `BRONZE` 0.95x, `SILVER` 0.90x, `GOLD`/`PLATINUM`/`DIAMOND` 0.85x), JavaScript and Python `ApifyClient` quickstarts, and detailed FAQ/limitations.
- Added explicit `prefill` defaults and `sectionCaption` groupings in `.actor/input_schema.json` and updated `CHANGELOG.md`.
- Configured Store SEO metadata, `["JOBS", "LEAD_GENERATION"]` categories, Store tier discounts, primary `"job"` event, and Public Task `jobindex-denmark-software-developer-jobs`.

#### 0.1 (2026-10-26)

- First version: Jobindex.dk search pages (category x area x keyword fan-out, first page only per `robots.txt`), optional Jobindex-hosted ad pages with verbatim contacts, and optional company profile enrichment.
- PPE pricing: `job` / `job-detail` at `$0.001` each (`$1.00` per 1,000 jobs), zero start fee, uncharged `run-notice` row.

# Changelog

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

# Actor input Schema

## `categories` (type: `array`):

Jobindex category slugs from /jobsoegning/{slug}, e.g. it, salg, kontor, ingenioer, undervisning, or category/subcategory like it/systemudvikling. Empty + no keywords/areas/startUrls = default category 'it'.

## `keywords` (type: `array`):

Free-text searches (Jobindex ?q=), one search per keyword, combined with every category and area. Keywords starting with www/http/ofir are disallowed by robots.txt and rejected.

## `areas` (type: `array`):

Jobindex area slugs (e.g. region-hovedstaden, storkoebenhavn, aarhus, odense) or Danish names (Århus → aarhus). Leave empty to use the built-in list of regions and large towns when expandAreas is on.

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

Optional Jobindex employment-type filter, one search per type: Fastansættelse, Tidsbegrænset, Studiejob, Ungarbejder/fritidsjob, Elev/lærling, Graduate/trainee, Praktikplads, Fleksjob, Frivillig, Freelance, Timeansat/tilkaldevikar (or English: permanent, temporary, student, internship, freelance, …). Rows get employmentType. robots.txt allows a keyword + employment type only on the nationwide search (no category/area); other keyword combinations are skipped and listed in OUTPUT.skippedSeeds.

## `expandAreas` (type: `boolean`):

On by default. Jobindex robots.txt disallows pagination, so each search URL gives at most 20 jobs. When on and no areas are given, every category/keyword is also searched in 36 built-in regions and towns (de-duplicated by job id).

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

Optional Jobindex search URLs (https://www.jobindex.dk/jobsoegning/it/aarhus, ...?q=python) or job URLs (/vis-job/{id}, /jobannonce/{id}/{slug}). page=, sort=, jobage= and other robots-disallowed parameters are rejected. Only the first page of each search is read.

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

Stop after this many jobs (total across all searches). Each job is charged once.

## `scrapeDetails` (type: `boolean`):

Off by default. When on, ads hosted on Jobindex (/jobannonce/...) are opened for the full ad text and the contact lines the employer printed. Ads on employer sites are not fetched. Same price per job (job-detail instead of job), but slower.

## `fetchCompanyProfiles` (type: `boolean`):

Off by default. When on, the public Jobindex company page (/virksomhed/{id}/...) is requested once per company (cached for the run, robots.txt checked) and companyAbout, companyCareerPage, companyMotherCompany, companyEmployeeCount and social links are added. No extra charge, but each new company is one more request (about 1-1.5 s), so runs are slower.

## `maxCompanyPages` (type: `integer`):

Cap on company-page requests when fetchCompanyProfiles is on. Companies beyond the cap keep null company-profile fields (counted in OUTPUT.companyPages.skippedLimit).

## `incremental` (type: `boolean`):

Skip jobs already delivered by earlier runs. Delivered job ids are kept in a named key-value store (key SEEN_JOB_IDS); an id is written only after its row was charged and pushed. Skipped jobs are not charged and not output.

## `incrementalStoreName` (type: `string`):

Named key-value store for incremental mode. Use a different name per saved search to track them separately.

## `seenJobIds` (type: `array`):

Optional list of Jobindex job ids (e.g. h1710237) to skip without charge, e.g. ids you already have. Works with or without incremental mode.

## `maxRunSeconds` (type: `integer`):

Stops cleanly before this time and writes a run-notice row. A hard timer also fires at this limit: if a request is stuck, the run saves OUTPUT and the run-notice and is force-exited.

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

Minimum pause between HTTP requests. Polite default: 1000 ms.

## `concurrency` (type: `integer`):

Parallel ad-page requests when scrapeDetails is on (start times are still spaced by requestDelayMs).

## `proxyConfiguration` (type: `object`):

Not needed normally; Jobindex answers plain HTTP. Enable Apify Proxy only if you see blocks.

## `useProxyFallback` (type: `boolean`):

Start without proxy and switch to the configured proxy only after a 403/429.

## Actor input object example

```json
{
  "categories": [
    "it"
  ],
  "expandAreas": true,
  "maxItems": 100,
  "scrapeDetails": false,
  "fetchCompanyProfiles": false,
  "maxCompanyPages": 20,
  "incremental": false,
  "incrementalStoreName": "jobindex-seen-jobs",
  "maxRunSeconds": 3600,
  "requestDelayMs": 1000,
  "concurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": false
}
```

# Actor output Schema

## `jobs` (type: `string`):

Job rows and any uncharged run-notice row saved in the default dataset. Detail coverage depends on the input and on whether the ad is hosted on Jobindex.

## `summary` (type: `string`):

Input (normalized when parsing succeeds, raw when input validation fails), seed and request statistics, errors, robots and HTTP counters, incremental-mode statistics, pricing metadata, and the stop reason for the run.

# 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 = {
    "categories": [
        "it"
    ],
    "expandAreas": true,
    "maxItems": 100,
    "scrapeDetails": false,
    "fetchCompanyProfiles": false,
    "maxCompanyPages": 20,
    "incremental": false,
    "incrementalStoreName": "jobindex-seen-jobs",
    "maxRunSeconds": 3600,
    "requestDelayMs": 1000,
    "concurrency": 2,
    "proxyConfiguration": {
        "useApifyProxy": false
    },
    "useProxyFallback": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/jobindex-jobs-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 = {
    "categories": ["it"],
    "expandAreas": True,
    "maxItems": 100,
    "scrapeDetails": False,
    "fetchCompanyProfiles": False,
    "maxCompanyPages": 20,
    "incremental": False,
    "incrementalStoreName": "jobindex-seen-jobs",
    "maxRunSeconds": 3600,
    "requestDelayMs": 1000,
    "concurrency": 2,
    "proxyConfiguration": { "useApifyProxy": False },
    "useProxyFallback": False,
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/jobindex-jobs-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 '{
  "categories": [
    "it"
  ],
  "expandAreas": true,
  "maxItems": 100,
  "scrapeDetails": false,
  "fetchCompanyProfiles": false,
  "maxCompanyPages": 20,
  "incremental": false,
  "incrementalStoreName": "jobindex-seen-jobs",
  "maxRunSeconds": 3600,
  "requestDelayMs": 1000,
  "concurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": false
}' |
apify call stone_jadex/jobindex-jobs-scraper --silent --output-dataset

```

## MCP server setup

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