{
  "openapi": "3.0.1",
  "info": {
    "title": "Danish Trade Media Job Scraper",
    "description": "Scrapes job postings from 14 Danish trade-media job boards into one normalised dataset, with CVR numbers and named contact persons where published.",
    "version": "1.0",
    "x-build-id": "gbpyWMlw3ak6wMltp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/centox~dk-job-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-centox-dk-job-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/centox~dk-job-scraper/runs": {
      "post": {
        "operationId": "runs-sync-centox-dk-job-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/centox~dk-job-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-centox-dk-job-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": {
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Which job boards to scrape. Leave empty for all of them.",
            "items": {
              "type": "string",
              "enum": [
                "licitationen",
                "soefart",
                "motormagasinet",
                "metal-supply",
                "building-supply",
                "transportmagasinet",
                "lastbilmagasinet",
                "food-supply",
                "medtechnews",
                "energy-supply",
                "electronic-supply",
                "plastforum",
                "retailnews",
                "wood-supply"
              ],
              "enumTitles": [
                "Licitationen",
                "Søfart",
                "Motor-magasinet",
                "Metal Supply",
                "Building Supply",
                "Transportmagasinet",
                "Lastbil Magasinet",
                "Food Supply",
                "MedTechNews",
                "Energy Supply",
                "Electronic Supply",
                "Plastforum",
                "RetailNews",
                "Wood Supply"
              ]
            },
            "default": []
          },
          "onlyNewJobs": {
            "title": "Only new postings",
            "type": "boolean",
            "description": "Push only postings that were not seen on a previous run. This also stops each site's pagination as soon as it reaches known postings, so scheduled runs are cheap. Turn off to get the full board every time.",
            "default": true
          },
          "since": {
            "title": "Published since",
            "type": "string",
            "description": "Ignore postings older than this. Accepts 7d, 48h, 2w, a date like 2026-08-01, or an ISO timestamp. Leave empty for no limit.",
            "default": ""
          },
          "dedupeCrossPosted": {
            "title": "Collapse cross-posted duplicates",
            "type": "boolean",
            "description": "About a third of postings appear on more than one of these boards. When on, each posting is pushed once, with the other boards listed in the also_on field.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "Open each posting to get the full description, application link, CVR number and contact person. Turning this off is much faster but returns listing data only.",
            "default": true
          },
          "maxItems": {
            "title": "Max postings",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many postings. 0 means no limit.",
            "default": 0
          },
          "maxPages": {
            "title": "Max result pages per site",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Each page holds 24 postings.",
            "default": 25
          },
          "includeHtml": {
            "title": "Include raw HTML",
            "type": "boolean",
            "description": "Add description_html and how_to_apply_html to each record. Roughly triples the dataset size; the plain-text fields are usually what you want.",
            "default": false
          },
          "requestDelaySecs": {
            "title": "Delay between requests",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Seconds to wait between requests to the same site. Lowering this scrapes faster but is less polite; 1 second is recommended.",
            "default": 1
          },
          "siteConcurrency": {
            "title": "Sites in parallel",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "Different sites are different hosts, so this does not increase the request rate against any single one.",
            "default": 4
          },
          "detailConcurrency": {
            "title": "Detail pages in parallel per site",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many posting pages to open at once per site. Bounded by the delay above.",
            "default": 3
          },
          "stateRetentionDays": {
            "title": "Remember postings for",
            "minimum": 7,
            "maximum": 3650,
            "type": "integer",
            "description": "How long a posting stays in the seen-before list. Older entries are dropped to keep the state small.",
            "default": 120
          },
          "resetState": {
            "title": "Reset seen-before list",
            "type": "boolean",
            "description": "Forget every previously seen posting for this run, so the whole board is treated as new. Use for a one-off full re-scrape.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. These sites are scraped politely and do not normally require a proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}