{
  "openapi": "3.0.1",
  "info": {
    "title": "Company KYB, DNS Tech Stack & NIS2 Readiness Check",
    "description": "Verify companies and domains using open corporate registries (GLEIF, Wikidata, SEC EDGAR) and standard internet protocols (DNS, RDAP, TLS, RIPE, security.txt). Returns legal entity records, DNS SaaS stack, EU hosting status, mail security, and NIS2 readiness.",
    "version": "1.1",
    "x-build-id": "BEhFjPXvIv9JiJsis"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gutacker~company-kyb-compliance/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gutacker-company-kyb-compliance",
        "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/gutacker~company-kyb-compliance/runs": {
      "post": {
        "operationId": "runs-sync-gutacker-company-kyb-compliance",
        "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/gutacker~company-kyb-compliance/run-sync": {
      "post": {
        "operationId": "run-sync-gutacker-company-kyb-compliance",
        "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": {
          "targets": {
            "title": "Domains, Company Names, or LEI Codes",
            "type": "array",
            "description": "List of company domains (such as 'sap.com', 'stripe.com', 'hetzner.com'), 20-character LEI codes, company names, or 'domain.com | Company Name' entries. Not marked required so that the aliases below work, but the run fails immediately with a clear message when no target is given. A list item may also be an object {\"domain\": \"stripe.com\", \"company\": \"Adyen N.V.\", \"lei\": \"...\"} (same as 'domain | name'; a lei wins over a company name). Each list item is exactly one target and is never split on commas ('Smith, Jones & Partners' stays one company); only a single string is split on newlines and commas ('Stripe, Inc.' is kept together). The same domain written in different ways (with or without https://, www., a path) is checked and billed once.",
            "items": {
              "type": "string"
            }
          },
          "countryHint": {
            "title": "Country Hint (ISO-2)",
            "type": "string",
            "description": "Optional two-letter country code (for example 'DE', 'US', 'FR', 'NL') used to prioritize matching legal entities in GLEIF when multiple regional subsidiaries exist. A JSON list is accepted too; only the first entry is used.",
            "default": ""
          },
          "includeCorporateRegistries": {
            "title": "Include Corporate Registries (GLEIF, Wikidata, SEC EDGAR)",
            "type": "boolean",
            "description": "Look up LEI code, commercial register number, legal address, ultimate parent entity, founding year, employee count, ISIN, and US SEC filings from CC0 and Public Domain registries.",
            "default": true
          },
          "includeSecurityAndNis2": {
            "title": "Include TLS, HTTP Headers & NIS2 Readiness Score",
            "type": "boolean",
            "description": "Run a port 443 TLS handshake (separating X.509 certificate validation failures from unreachable ports), check HTTP security response headers, inspect /.well-known/security.txt (RFC 9116), and calculate a 0 to 100 external technical hygiene score for the root domain (not a proof of organizational NIS2 compliance).",
            "default": true
          },
          "includeCtSubdomains": {
            "title": "Include Certificate Transparency Subdomains",
            "type": "boolean",
            "description": "Query public Certificate Transparency logs (RFC 6962 via CertSpotter and crt.sh) to list subdomains from issued TLS certificates. Works independently of the TLS/NIS2 block. Billed as an optional add-on event per domain only when the CT logs actually delivered subdomains (ctSubdomainSource 'certspotter' or 'crtsh'). If the CT logs are unavailable or empty, a best-effort DNS prefix check may still list subdomains (ctSubdomainSource 'dns_guess'); those are never billed.",
            "default": false
          },
          "maxNis2ScoreFilter": {
            "title": "Max NIS2 Score Filter (Lead Qualification)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional upper bound (0 to 100). Set to 65, for example, to keep only domains that have missing mail protections, missing security headers, or TLS issues. Dossiers above the bound and dossiers without a score (no domain, or DNS unavailable) are skipped and not charged; they are listed in the RUN_SUMMARY record. Requires includeSecurityAndNis2; with it switched off the run fails immediately without charges."
          },
          "concurrency": {
            "title": "Parallel Lookups",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of targets checked in parallel.",
            "default": 6
          },
          "domain": {
            "title": "Single Domain (alias)",
            "type": "string",
            "description": "Alias for one entry of 'targets': a domain such as 'sap.com', or 'domain.com | Legal Name'. Also accepted: 'target' and 'company'. Lists are accepted as well."
          },
          "company": {
            "title": "Single Company Name (alias)",
            "type": "string",
            "description": "Alias for one entry of 'targets': a company name or a 20-character LEI code."
          },
          "target": {
            "title": "Single Target (alias)",
            "type": "string",
            "description": "Alias for one entry of 'targets': a domain, company name, LEI code, or 'domain.com | Legal Name'."
          },
          "domains": {
            "title": "Domains (alias for targets)",
            "type": "array",
            "description": "Alias for 'targets'. A comma or newline separated string is also accepted.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Company Names (alias for targets)",
            "type": "array",
            "description": "Alias for 'targets', typically company names or LEI codes. A newline separated string is also accepted.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}