{
  "openapi": "3.0.1",
  "info": {
    "title": "Kompass Scraper | B2B Companies & Products Directory",
    "description": "Scrape Kompass B2B companies & products across ~70 country sites. Company/product search, details, region & sector browse. Export Excel/CSV/JSON. Unofficial — not affiliated with Kompass.",
    "version": "0.1",
    "x-build-id": "dcfcnmQAMmg9h1y2E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~kompass-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-kompass-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/lentic_clockss~kompass-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-kompass-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/lentic_clockss~kompass-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-kompass-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": "Mode",
            "enum": [
              "company_search",
              "product_search",
              "company",
              "company_products",
              "product",
              "region",
              "sector"
            ],
            "type": "string",
            "description": "company_search / product_search / company / company_products / product / region / sector. Store Test default is company detail (curl_cffi), not DataDome search.",
            "default": "company"
          },
          "country": {
            "title": "Country subdomain",
            "enum": [
              "ae",
              "ar",
              "at",
              "au",
              "az",
              "be",
              "bg",
              "br",
              "ca",
              "ch",
              "cl",
              "cn",
              "co",
              "cz",
              "de",
              "dk",
              "dz",
              "ec",
              "ee",
              "eg",
              "es",
              "fi",
              "fr",
              "gb",
              "ge",
              "gr",
              "hk",
              "hr",
              "hu",
              "id",
              "ie",
              "il",
              "in",
              "it",
              "jp",
              "kr",
              "kz",
              "lb",
              "lt",
              "lu",
              "lv",
              "ma",
              "md",
              "mx",
              "my",
              "nl",
              "no",
              "nz",
              "pe",
              "ph",
              "pk",
              "pl",
              "pt",
              "ro",
              "rs",
              "ru",
              "sa",
              "se",
              "sg",
              "si",
              "sk",
              "th",
              "tn",
              "tr",
              "tw",
              "ua",
              "us",
              "uy",
              "vn",
              "za"
            ],
            "type": "string",
            "description": "Kompass country subdomain (e.g. au → au.kompass.com). Do not use www (gateway only). Store Test uses fr with the IPO detail URL.",
            "default": "fr"
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "Keyword for company_search / product_search — required for these modes (e.g. 'machinery', 'pumps'). Leave empty only for company/product/region/sector modes.",
            "default": "machinery"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Optional list of keywords (processed in order)",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum company/product rows to return (capped at 200 on free Apify plans; paying users up to 1000).",
            "default": 1
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum search/list pages to paginate (scroll) after the first page.",
            "default": 1
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-based page number to start from for search/list modes.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich list rows with detail fetch",
            "type": "boolean",
            "description": "When true, follow list company URLs and merge detail contact fields (phone, email, address, executives). Default on so dataset rows are outreach-ready.",
            "default": true
          },
          "companyUrl": {
            "title": "Company URL",
            "type": "string",
            "description": "Kompass company detail or products list URL",
            "default": "https://fr.kompass.com/c/ipo-technologie/fr8380178/"
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "Kompass product detail URL"
          },
          "regionUrl": {
            "title": "Region URL",
            "type": "string",
            "description": "Kompass region browse URL (/r/…)"
          },
          "regionCode": {
            "title": "Region code",
            "type": "string",
            "description": "Region code when regionUrl is omitted (region mode)"
          },
          "sectorUrl": {
            "title": "Sector URL",
            "type": "string",
            "description": "Kompass sector/category URL (/a/…)"
          },
          "sectorId": {
            "title": "Sector ID",
            "type": "string",
            "description": "Numeric sector ID when sectorUrl is omitted (sector mode)"
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Batch company/product/region/sector URLs",
            "items": {
              "type": "string"
            }
          },
          "workerBaseUrl": {
            "title": "Advanced endpoint override",
            "type": "string",
            "description": "Optional advanced override for the scrape endpoint (leave empty to use Actor defaults)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}