{
  "openapi": "3.0.1",
  "info": {
    "title": "Kompass Scraper - Global B2B Company & Supplier Leads",
    "description": "Scrape the Kompass global B2B directory (60+ countries): company name, phone, email, website, full address, VAT & registration number, legal form, employees, year founded, products & a 0–100 lead score. Filter by country, industry & company type. No login.",
    "version": "0.1",
    "x-build-id": "6gf0yYmOAytfeSTXA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~kompass-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~kompass-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~kompass-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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": {
          "searchQueries": {
            "title": "Search queries (product / service / industry)",
            "type": "array",
            "description": "Keywords searched across Kompass's global directory (60+ countries). Each term is matched against company products/activities, e.g. <code>industrial valves</code>, <code>cnc machining</code>, <code>packaging machinery</code>, <code>logistics</code>, <code>software development</code>. Results are paginated; combine with <b>Countries</b> to target a market.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Match keyword against",
            "enum": [
              "products",
              "companyName"
            ],
            "type": "string",
            "description": "<code>products</code> = match the keyword against company products & activities (broadest, default). <code>companyName</code> = match against the company name only.",
            "default": "products"
          },
          "startUrls": {
            "title": "Start URLs (auto-routed)",
            "type": "array",
            "description": "Paste any Kompass URLs — search pages (<code>.../searchCompanies?text=…</code>) or company profiles (<code>.../c/&lt;slug&gt;/&lt;id&gt;/</code>). Search-page URLs are crawled and paginated just like a search query.",
            "items": {
              "type": "string"
            }
          },
          "companyUrls": {
            "title": "Company profile URLs",
            "type": "array",
            "description": "Kompass company profile URLs (<code>https://www.kompass.com/c/&lt;slug&gt;/&lt;id&gt;/</code>). Each is fetched as a full company-lead record (phone, email, website, address, firmographics).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (filter)",
            "type": "array",
            "description": "Keep only companies in these countries. Use ISO-2 codes or names, e.g. <code>FR</code>, <code>DE</code>, <code>IT</code>, <code>US</code>, <code>India</code>. Leave empty for all countries. Tip: Kompass is strongest in Europe & Asia — when filtering to a smaller market, raise <b>Max pages per query</b> so there are enough matches to fill the cap.",
            "items": {
              "type": "string"
            }
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Keep only companies tagged as one of these roles on Kompass. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "producer",
                "distributor",
                "service",
                "importer",
                "exporter"
              ],
              "enumTitles": [
                "Producer / Manufacturer",
                "Distributor / Wholesaler",
                "Service provider",
                "Importer",
                "Exporter"
              ]
            },
            "default": []
          },
          "withEmailOnly": {
            "title": "Only companies with an email",
            "type": "boolean",
            "description": "Emit only companies that expose a contact email (requires details).",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only companies with a phone",
            "type": "boolean",
            "description": "Emit only companies that expose a phone number (requires details).",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "Only companies with a website",
            "type": "boolean",
            "description": "Emit only companies that expose their own website (requires details).",
            "default": false
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies with at least this many employees (requires details; companies that don't publish a headcount are excluded when set).",
            "default": 0
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Emit only companies with at least this 0–100 lead score (email, phone, website, verification, size, tenure, registration).",
            "default": 0
          },
          "includeDetails": {
            "title": "Fetch full company details",
            "type": "boolean",
            "description": "Open each company profile for phone, fax, email, website, socials, full address, geo, year established, legal form, corporate capital, VAT & registration number, employees and the full product list (from the page's JSON-LD). Adds one request per company and a companyDetails charge. Strongly recommended — the listing alone is thin.",
            "default": true
          },
          "maxItems": {
            "title": "Max records (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total cap on company records emitted in this run.",
            "default": 100
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many result pages to crawl per search term (each page lists ~20–40 companies). Raise it when a Countries filter is set so there are enough matches to fill the cap.",
            "default": 10
          },
          "monitorMode": {
            "title": "Monitor mode (only new companies)",
            "type": "boolean",
            "description": "Remember companies seen in previous runs (in a named key-value store) and emit only NEW ones. Pair with Apify Schedules to watch an industry or country for newly listed companies. Does not conflict with scheduling.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store holding the 'already seen' company ids for monitor mode. Use a distinct name per saved task so their histories stay separate.",
            "default": "kompass-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Maximum parallel requests.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The default Apify proxy (datacenter) is fast and reliable for Kompass; the actor automatically escalates to residential on the rare blocked request. Pick Residential here only if you see blocks.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}