{
  "openapi": "3.0.1",
  "info": {
    "title": "Allabolag, Companies House, SIRENE & US Business Search",
    "description": "Official KYB business entity search & new incorporations across Sweden Allabolag, Norway Brreg, Finland PRH, UK Companies House, France SIRENE & BODACC, GLEIF LEI trees, EU VIES VAT & US SOS/SEC ($2.50/1K, Luhn/Mod-11/Mod-97 verified).",
    "version": "1.1",
    "x-build-id": "Hga1P4ADFYe5JWIYB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenonnnnnn~global-kyb-new-incorporations-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenonnnnnn-global-kyb-new-incorporations-api",
        "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/zenonnnnnn~global-kyb-new-incorporations-api/runs": {
      "post": {
        "operationId": "runs-sync-zenonnnnnn-global-kyb-new-incorporations-api",
        "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/zenonnnnnn~global-kyb-new-incorporations-api/run-sync": {
      "post": {
        "operationId": "run-sync-zenonnnnnn-global-kyb-new-incorporations-api",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "kyb_search",
              "new_incorporations"
            ],
            "type": "string",
            "description": "Select 'kyb_search' to look up and verify specific companies, LEIs, registration numbers, or VAT IDs, or 'new_incorporations' to fetch newly incorporated entities within the lookback window.",
            "default": "kyb_search"
          },
          "queries": {
            "title": "Company Names, Registration IDs, LEIs, or VAT Numbers",
            "type": "array",
            "description": "List of legal names, 20-char LEIs, BICs, Swedish Orgnr (Allabolag), Norwegian Orgnr, Finnish Y-tunnus, French SIREN/SIRET, Czech ICO, EU VAT numbers, or US state/SEC identifiers. In 'new_incorporations' mode, optional keyword filters.",
            "default": [
              "Spotify",
              "TotalEnergies SE"
            ],
            "items": {
              "type": "string"
            }
          },
          "jurisdictions": {
            "title": "Target Official Registries & Jurisdictions",
            "type": "array",
            "description": "Registries to query: SE (Sweden Allabolag), NO (Norway Brreg), FI (Finland PRH YTJ v3), GLOBAL_LEI (GLEIF v1), FR (France SIRENE), FR_BODACC (France Daily New Incorporations), CZ (Czech ARES), EU_VIES (EU Commission VAT), US_SEC (SEC EDGAR Form D), US_NY (New York SOS), US_CO (Colorado SOS), GB (UK Companies House BYOK).",
            "default": [
              "SE",
              "NO",
              "FI",
              "GLOBAL_LEI",
              "FR",
              "US_NY"
            ],
            "items": {
              "type": "string"
            }
          },
          "resolveOwnershipTree": {
            "title": "Resolve GLEIF Parent & Subsidiary Ownership Tree",
            "type": "boolean",
            "description": "When enabled, resolves direct parent, ultimate accounting parent, and direct subsidiaries for matched LEI records via official GLEIF relationship endpoints.",
            "default": true
          },
          "validateEuVatVies": {
            "title": "Live-Verify EU VAT Numbers via EC VIES",
            "type": "boolean",
            "description": "When enabled, checks supplied or mathematically derived EU VAT identifiers against the official European Commission VIES REST API.",
            "default": true
          },
          "incorporatedWithinDays": {
            "title": "Incorporated Within Days (New Incorporations Mode)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Lookback window in calendar days when fetching newly formed companies in 'new_incorporations' mode (1 to 365 days).",
            "default": 14
          },
          "maxResults": {
            "title": "Maximum Verified Records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum total number of verified KYB or new incorporation records to return across all selected registries (automatically capped at 25 for free-tier runs).",
            "default": 20
          },
          "companiesHouseApiKey": {
            "title": "UK Companies House API Key (Optional BYOK)",
            "type": "string",
            "description": "Optional free REST API key from developer.company-information.service.gov.uk to enable live UK Companies House ('GB') queries."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}