{
  "openapi": "3.0.1",
  "info": {
    "title": "Jobindex.dk Jobs Scraper",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "6M56dnasrXDEyR1hM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~jobindex-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-jobindex-jobs-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/stone_jadex~jobindex-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-jobindex-jobs-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/stone_jadex~jobindex-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-jobindex-jobs-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": {
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "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'.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "areas": {
            "title": "Areas",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "employmentTypes": {
            "title": "Employment types",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "expandAreas": {
            "title": "Fan out over areas",
            "type": "boolean",
            "description": "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).",
            "default": true
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max jobs",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many jobs (total across all searches). Each job is charged once.",
            "default": 100
          },
          "scrapeDetails": {
            "title": "Open Jobindex-hosted ad pages (full text)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "fetchCompanyProfiles": {
            "title": "Add company profile data (about, career page, social links)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "maxCompanyPages": {
            "title": "Max company pages per run",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on company-page requests when fetchCompanyProfiles is on. Companies beyond the cap keep null company-profile fields (counted in OUTPUT.companyPages.skippedLimit).",
            "default": 20
          },
          "incremental": {
            "title": "Incremental mode (only new jobs)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "incrementalStoreName": {
            "title": "Incremental store name",
            "type": "string",
            "description": "Named key-value store for incremental mode. Use a different name per saved search to track them separately.",
            "default": "jobindex-seen-jobs"
          },
          "seenJobIds": {
            "title": "Job ids to skip",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "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.",
            "default": 3600
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 500,
            "maximum": 60000,
            "type": "integer",
            "description": "Minimum pause between HTTP requests. Polite default: 1000 ms.",
            "default": 1000
          },
          "concurrency": {
            "title": "Ad-page concurrency",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Parallel ad-page requests when scrapeDetails is on (start times are still spaced by requestDelayMs).",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally; Jobindex answers plain HTTP. Enable Apify Proxy only if you see blocks.",
            "default": {
              "useApifyProxy": false
            }
          },
          "useProxyFallback": {
            "title": "Use proxy only after a block",
            "type": "boolean",
            "description": "Start without proxy and switch to the configured proxy only after a 403/429.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}