{
  "openapi": "3.0.1",
  "info": {
    "title": "Jobindex.dk & IT-Jobbank [$1.5💰] Denmark Jobs Scraper",
    "description": "Scrape Jobindex.dk and IT-Jobbank.dk — Denmark's largest job board and its IT sister site. Keyword or URL in; one row per job: title, company, geocoded location, dates, apply URL, stated salary. Incremental mode returns only new or changed ads, so scheduled runs stay cheap.",
    "version": "0.1",
    "x-build-id": "V5J8KsVmG1ovmGDVo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~jobindex-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-jobindex-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/memo23~jobindex-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-jobindex-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/memo23~jobindex-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-jobindex-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on Jobindex, e.g. `ingeniør`, `sygeplejerske`, `developer`, `marketing`. Each is searched and paginated.",
            "items": {
              "type": "string"
            }
          },
          "sites": {
            "title": "Portals to search",
            "type": "array",
            "description": "Which portals the keyword searches above run against. `jobindex` = jobindex.dk (all Danish jobs); `it-jobbank` = it-jobbank.dk (the IT-only sister site on the same platform, different ad inventory). Pick both to cover both in one run — each keyword is then searched once per portal. Ignored for URLs you paste in `startUrls`, whose portal is taken from the URL itself. Example: `[\"jobindex\", \"it-jobbank\"]`. Default `[\"jobindex\"]`.",
            "items": {
              "type": "string",
              "enum": [
                "jobindex",
                "it-jobbank"
              ],
              "enumTitles": [
                "Jobindex.dk — all Danish jobs",
                "IT-Jobbank.dk — IT jobs"
              ]
            },
            "default": [
              "jobindex"
            ]
          },
          "startUrls": {
            "title": "Search & job URLs",
            "type": "array",
            "description": "Search-result URLs (`https://www.jobindex.dk/jobsoegning?...` or `https://www.it-jobbank.dk/jobsoegning?...` — with any filters you set on the site) and/or single job URLs (`https://www.jobindex.dk/vis-job/{id}`, `https://www.it-jobbank.dk/jobannonce/{id}/{slug}`). Auto-classified by kind and portal, so you can mix both sites in one list.",
            "items": {
              "type": "string"
            }
          },
          "scrapeDetails": {
            "title": "Scrape job detail pages",
            "type": "boolean",
            "description": "For each job found in search, also fetch its detail page to add the full ad body text (`fullText`) and mine it for a stated salary. Richer rows, but ~2× the requests. Off = the search-card fields (already ~30 per job, including a teaser). Job URLs you paste are always fully detailed.",
            "default": false
          },
          "incremental": {
            "title": "Only return new & changed ads",
            "type": "boolean",
            "description": "Remembers every ad it has seen (by job ID plus a fingerprint of title, company, area, deadline, salary and apply URL) in a named key-value store that persists across runs. Each row then carries `changeType` (`new`, `changed` or `unchanged`) and `firstSeenAt`. Unchanged ads are skipped: not pushed, not charged, and their detail page is never fetched — so a daily run costs a fraction of a full re-scrape. The first run has nothing to compare against, so every ad is `new`. Set `emitUnchanged` to true if you want the full list back every run. Default false (every matching ad is returned).",
            "default": false
          },
          "emitUnchanged": {
            "title": "Also return unchanged ads",
            "type": "boolean",
            "description": "Only applies when `incremental` is on. True = every matching ad is returned and charged as usual, each tagged with its `changeType`, so you get a full snapshot plus change labels. False = unchanged ads are dropped and you pay only for new and changed ones. Default false.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Only applies when `incremental` is on. Name of the named key-value store that holds the change-detection state. Use different names to track separate watchlists independently (for example `jobindex-state-nurses` and `jobindex-state-devs`), or the same name across scheduled runs that should share one memory. Example: `jobindex-state-copenhagen`. Default `jobindex-incremental-state`.",
            "default": "jobindex-incremental-state"
          },
          "stateRetentionDays": {
            "title": "State retention (days)",
            "minimum": 1,
            "maximum": 730,
            "type": "integer",
            "description": "Only applies when `incremental` is on. Forget tracked ads that haven't been seen for this many days, which keeps the state small and lets a long-expired ad count as `new` if it is ever reposted. Danish ads typically run 3–6 weeks, so 90 covers a wide margin. Example: `30`. Default 90.",
            "default": 90
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on rows across the entire run. Each row is one paid `job` event. Default 1000. Free-tier users are additionally capped at 100.",
            "default": 1000
          },
          "maxItemsPerSearch": {
            "title": "Max jobs per search",
            "minimum": 1,
            "type": "integer",
            "description": "Cap per search keyword / URL. Jobindex returns 20 jobs per page, up to 50 pages. Default 1000.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel HTTP requests. Default 6.",
            "default": 6
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Per-request retry budget on transient 403 / 429 / 5xx and network errors. Each retry rotates to a fresh Danish residential IP. Default 12.",
            "default": 12
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — the actor already routes all traffic through its own built-in residential proxy at no extra cost to you. Only set this if you want to use your own proxies."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}