{
  "openapi": "3.0.1",
  "info": {
    "title": "Willhaben Job Scraper - Austria’s Largest Job Portal",
    "description": "Scrape willhaben.at - Austria's largest job portal. Structured salary fields and Austrian VAT/UID numbers for B2B outreach. Incremental mode with NEW/UPDATED/EXPIRED/REAPPEARED + repost detection.",
    "version": "0.3",
    "x-build-id": "ZLJfydGeJzG2yzSTM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~willhaben-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-willhaben-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/blackfalcondata~willhaben-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-willhaben-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/blackfalcondata~willhaben-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-willhaben-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": {
          "query": {
            "title": "🔍 Search Term(s)",
            "type": "string",
            "description": "Job search keywords (e.g. \"developer\", \"Tischler\"). Leave empty to browse all jobs."
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "City or district name."
          },
          "region": {
            "title": "🌍 Region (Bundesland)",
            "enum": [
              "",
              "Wien",
              "Niederösterreich",
              "Oberösterreich",
              "Steiermark",
              "Tirol",
              "Salzburg",
              "Kärnten",
              "Vorarlberg",
              "Burgenland"
            ],
            "type": "string",
            "description": "Austrian federal state. Use name (e.g. \"Wien\") or code."
          },
          "operationArea": {
            "title": "📍 Field / Sector",
            "enum": [
              "",
              "12666",
              "12681",
              "12746",
              "12769",
              "17007",
              "12887",
              "12984",
              "13094",
              "13186",
              "13260",
              "13278",
              "13319",
              "13325",
              "13351",
              "13368",
              "13400",
              "13496"
            ],
            "type": "string",
            "description": "Filter by professional field (Berufsfeld)."
          },
          "employmentMode": {
            "title": "💼 Employment Type",
            "enum": [
              "",
              "110",
              "113",
              "109",
              "11796"
            ],
            "type": "string",
            "description": "Filter by employment type."
          },
          "position": {
            "title": "📌 Position Level",
            "enum": [
              "",
              "13540",
              "13541",
              "13539",
              "13542",
              "13543",
              "13544",
              "28428"
            ],
            "type": "string",
            "description": "Filter by position level."
          },
          "companyType": {
            "title": "🏢 Company Type",
            "enum": [
              "",
              "agency",
              "direct_employer"
            ],
            "type": "string",
            "description": "Filter by company type."
          },
          "timeLimit": {
            "title": "⏰ Posted Within",
            "enum": [
              "",
              "last_24_hours",
              "last_72_hours",
              "last_week"
            ],
            "type": "string",
            "description": "Filter by posting recency."
          },
          "startUrls": {
            "title": "🔗 Start URLs",
            "type": "array",
            "description": "Paste Willhaben job-search URLs directly (e.g. https://www.willhaben.at/jobs/suche?keyword=developer&region=14486). Filters in the URL override the explicit input fields where present. Each unique listing is returned only once — duplicates across pages or overlapping search URLs are removed by listing ID.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "🔀 Sort By",
            "enum": [
              "",
              "publish_date_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Sort search results."
          },
          "salaryMinFilter": {
            "title": "💰 Minimum Salary",
            "minimum": 0,
            "type": "integer",
            "description": "Drop jobs whose maximum salary is below this value (in EUR). Jobs without salary data are dropped when set."
          },
          "salaryMaxFilter": {
            "title": "💰 Maximum Salary",
            "minimum": 0,
            "type": "integer",
            "description": "Drop jobs whose minimum salary exceeds this value (in EUR)."
          },
          "whatAnd": {
            "title": "🔍 All These Words",
            "type": "string",
            "description": "Every word listed here must appear in the title or description (AND logic). E.g. \"python remote\" requires both words."
          },
          "whatExclude": {
            "title": "🚫 Exclude These Words",
            "type": "string",
            "description": "Jobs containing any of these words in title or description are excluded (NOT logic). E.g. \"senior lead\" filters out senior roles."
          },
          "maxResults": {
            "title": "💯 Max Results",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum total results across all start URLs combined (not per URL). With multiple start URLs this cap is divided across them — e.g. with 13 URLs and maxResults=25 you receive ~2 jobs per URL. Set to 0 (unlimited) or a high number (e.g. 500) to receive every available job from every URL.",
            "default": 25
          },
          "includeDetails": {
            "title": "📋 Include Full Details",
            "type": "boolean",
            "description": "Fetch full job details (contact info, company VAT/UID number, language skills, remote work, expiry date).",
            "default": true
          },
          "descriptionMaxLength": {
            "title": "✂️ Description Max Length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate description to N chars. 0 = no truncation.",
            "default": 0
          },
          "compact": {
            "title": "📦 Compact Output",
            "type": "boolean",
            "description": "Core fields only — for AI-agent/MCP workflows. Notifications always receive full records, so this only affects the dataset rows.",
            "default": false
          },
          "incrementalMode": {
            "title": "♻️ Incremental Mode",
            "type": "boolean",
            "description": "Compare against previous run state — only emit NEW, UPDATED, EXPIRED, or REAPPEARED jobs. stateKey is optional — leave empty and a stable identifier is derived from your search inputs so different searches never share state.",
            "default": false
          },
          "stateKey": {
            "title": "🔑 State Key",
            "type": "string",
            "description": "Optional. Stable identifier for the tracked search universe (e.g. \"at-software-vienna\"). Leave empty to auto-generate from search inputs — this prevents narrower runs from marking broader-run jobs as EXPIRED. Set explicitly only if you want backward compatibility with state under a specific legacy key."
          },
          "emitUnchanged": {
            "title": "♻️ Emit Unchanged",
            "type": "boolean",
            "description": "Also emit jobs that have not changed since the last run (incrementalMode only).",
            "default": false
          },
          "emitExpired": {
            "title": "⚰️ Emit Expired",
            "type": "boolean",
            "description": "Also emit jobs that have disappeared since the last run (incrementalMode only).",
            "default": false
          },
          "skipReposts": {
            "title": "🚫 Skip Reposts",
            "type": "boolean",
            "description": "When incremental, skip jobs whose content matches an expired job from a prior run (cross-run repost detection).",
            "default": false
          },
          "telegramToken": {
            "title": "🔑 Telegram Bot Token",
            "type": "string",
            "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
          },
          "telegramChatId": {
            "title": "💬 Telegram Chat ID",
            "type": "string",
            "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord Webhook URL",
            "type": "string",
            "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack Webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
          },
          "notificationLimit": {
            "title": "📊 Max Jobs Per Notification",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of jobs included in each notification message (1–20).",
            "default": 5
          },
          "notifyOnlyChanges": {
            "title": "🔄 Notify Only New/Updated",
            "type": "boolean",
            "description": "When Incremental Mode is on, only send notifications for NEW and UPDATED jobs. Has no effect outside incremental mode.",
            "default": false
          },
          "whatsappAccessToken": {
            "title": "📱 WhatsApp Access Token",
            "type": "string",
            "description": "WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024). For first-contact alerts use approved templates outside this actor."
          },
          "whatsappPhoneNumberId": {
            "title": "📞 WhatsApp Phone Number ID",
            "type": "string",
            "description": "Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
          },
          "whatsappTo": {
            "title": "📲 WhatsApp Recipient",
            "type": "string",
            "description": "Recipient phone in E.164 format without + (e.g. \"436641234567\" for an Austrian mobile). Recipient must have messaged your business number within the last 24 hours."
          },
          "phoneExtractionMode": {
            "title": "📞 Phone Extraction Mode",
            "enum": [
              "strict",
              "lenient"
            ],
            "type": "string",
            "description": "How aggressively to detect phone numbers in job descriptions. Strict: only matches with Tel:/Telefon:/Mobil: prefix or +CC international. Lenient: also matches bare 0-prefixed local numbers (more false positives possible).",
            "default": "strict"
          },
          "webhookUrl": {
            "title": "🪝 Generic Webhook URL",
            "type": "string",
            "description": "Receives a JSON POST with full {metadata, items} payload after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
          },
          "webhookHeaders": {
            "title": "📋 Webhook Headers",
            "type": "object",
            "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"}). Sent with the webhook POST in addition to Content-Type: application/json."
          },
          "descriptionFormat": {
            "title": "Description format",
            "enum": [
              "all",
              "text",
              "html",
              "markdown"
            ],
            "type": "string",
            "description": "Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.",
            "default": "all"
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields from output",
            "type": "boolean",
            "description": "Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}