{
  "openapi": "3.0.1",
  "info": {
    "title": "Kununu Scraper - Company Ratings & Employer Reviews (DACH)",
    "description": "Scrape kununu.com across DACH - company ratings, recommendation rates, 13-factor individual reviews, and salary ranges. Incremental mode tracks changes across runs. Keyword, company-list, or dataset-enrichment input modes.",
    "version": "0.2",
    "x-build-id": "UQ4Tmae5FyOHtaThn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~kununu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-kununu-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~kununu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-kununu-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~kununu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-kununu-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": {
          "mode": {
            "title": "Input mode",
            "enum": [
              "keyword",
              "companyNames",
              "companyUrls",
              "datasetId"
            ],
            "type": "string",
            "description": "Which input to use. 'keyword' paginates search results for a query. 'companyNames' looks up a list of company names. 'companyUrls' uses direct kununu URLs. 'datasetId' reads names from an existing Apify dataset. Leave blank to auto-detect from the fields you fill in.",
            "default": "keyword"
          },
          "query": {
            "title": "Keyword search",
            "type": "string",
            "description": "Search term for keyword mode (e.g. 'software'). Required when mode=keyword. Leave blank for other modes."
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "List of company names to look up on kununu. Best match from first search page is returned.",
            "items": {
              "type": "string"
            }
          },
          "companyUrls": {
            "title": "Company URLs",
            "type": "array",
            "description": "List of kununu company URLs (e.g. https://www.kununu.com/de/bosch-gruppe). Country code and slug are parsed from each URL — URLs can mix DE/AT/CH. Skips search and matching. Incremental mode works per-slug.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID",
            "type": "string",
            "description": "ID of an existing Apify dataset. Actor reads company names from this dataset and enriches with kununu ratings."
          },
          "companyFieldName": {
            "title": "Company field name",
            "type": "string",
            "description": "Field in the dataset that contains the company name. Default: companyName.",
            "default": "companyName"
          },
          "deduplicateField": {
            "title": "Deduplicate field",
            "type": "string",
            "description": "Optional field to deduplicate by before lookup (e.g. 'companyId'). Useful when multiple jobs share the same company."
          },
          "countryCode": {
            "title": "Country code",
            "enum": [
              "de",
              "at",
              "ch"
            ],
            "type": "string",
            "description": "Kununu country: de (Germany), at (Austria), ch (Switzerland).",
            "default": "de"
          },
          "industryId": {
            "title": "Industry filter (keyword mode only)",
            "type": "string",
            "description": "Filter results by industry ID. Only applies in keyword search mode. Common IDs: 1=Banking, 2=Construction, 3=Consulting, 4=Education, 5=Publishing, 6=Finance, 7=Healthcare, 8=Insurance, 9=Pharma, 10=IT/Software, 11=Engineering, 12=Automotive, 13=Chemicals, 14=Transport, 15=Retail, 16=Telecom, 17=Energy, 18=Media, 19=Public sector, 20=NGO, 43=Hotels, 44=Gastronomy. Find other IDs by filtering on kununu.com and checking the URL."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of results to return. 0 = no limit.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages (keyword mode)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of search result pages to scrape in keyword mode. 0 = no limit.",
            "default": 10
          },
          "includeDetails": {
            "title": "Include detail page",
            "type": "boolean",
            "description": "Fetch the company detail page to extract recommendation rate and website. Doubles the number of requests.",
            "default": false
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Return only the most important fields. Useful for AI-agent workflows.",
            "default": false
          },
          "incrementalMode": {
            "title": "Incremental mode",
            "type": "boolean",
            "description": "Track changes across runs. Emits changeType (NEW/UPDATED/UNCHANGED). NOT_FOUND results are cached for 30 days.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Unique identifier for the incremental state (e.g. 'dach-companies-v1'). Required when incrementalMode is true."
          },
          "includeReviews": {
            "title": "Include individual reviews",
            "type": "boolean",
            "description": "Also scrape individual employee reviews for each matched company. Requires includeDetails=true. Each review becomes a separate dataset item with type='review'.",
            "default": false
          },
          "maxReviewPages": {
            "title": "Max review pages per company",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum review pages to scrape per company (10 reviews per page). 0 = no limit. Keep this conservative — popular companies can have hundreds of pages.",
            "default": 10
          },
          "reviewSort": {
            "title": "Review sort order",
            "enum": [
              "relevance",
              "newest",
              "oldest",
              "best",
              "worst"
            ],
            "type": "string",
            "description": "Sort order for review scraping. Default is kununu's own default (relevance), which pairs reliably with pagination.",
            "default": "relevance"
          },
          "includeFullSalary": {
            "title": "Include full salary ranges",
            "type": "boolean",
            "description": "Fetch the /gehalt page to get all salary ranges (~20 job titles) instead of the top 3 shown on the detail page. Adds one extra request per company. Requires includeDetails=true.",
            "default": false
          },
          "includeCulture": {
            "title": "Include Kulturkompass",
            "type": "boolean",
            "description": "Fetch the /kultur page to extract the Kulturkompass: profile-vs-industry compass score (0-200), MODERN/TRADITIONAL binary classification, 4 culture dimensions (leadership, strategic direction, work-life, working together), strength/weakness/most-voted factors, company statements, and culture-tagged review comments. Adds one extra request per company. Requires includeDetails=true. Returns null for companies with too few culture submissions.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}