{
  "openapi": "3.0.1",
  "info": {
    "title": "Nordic Company Registry API - SE, NO, FI",
    "description": "Search and look up companies in Sweden, Norway and Finland from the official business registers. Get org number, name, legal form, status, NACE/SNI industry, address, employees and new registrations in one schema. No login, no sole traders. Export JSON/CSV/Excel or call via API.",
    "version": "1.1",
    "x-build-id": "mSuYejdSPp0xZLzah"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teddythebuilder~nordic-company-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teddythebuilder-nordic-company-registry",
        "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/teddythebuilder~nordic-company-registry/runs": {
      "post": {
        "operationId": "runs-sync-teddythebuilder-nordic-company-registry",
        "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/teddythebuilder~nordic-company-registry/run-sync": {
      "post": {
        "operationId": "run-sync-teddythebuilder-nordic-company-registry",
        "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": [
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "search = find companies matching filters (lead lists, market maps, new-company monitor). lookup = enrich a list of org numbers.",
            "default": "search"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Registries to query (search mode). In lookup mode the country is detected from each number's format.",
            "items": {
              "type": "string",
              "enum": [
                "SE",
                "NO",
                "FI"
              ],
              "enumTitles": [
                "Sweden (SCB/Bolagsverket)",
                "Norway (Brønnøysund)",
                "Finland (PRH/YTJ)"
              ]
            },
            "default": [
              "SE",
              "NO",
              "FI"
            ]
          },
          "orgNumbers": {
            "title": "Org numbers (lookup mode)",
            "type": "array",
            "description": "Swedish org.nr (556012-5790), Norwegian org.nr (923609016), Finnish Y-tunnus (0112038-9). A 'SE'/'NO'/'FI' prefix is allowed.",
            "items": {
              "type": "string"
            }
          },
          "industryCodes": {
            "title": "Industry codes (NACE / SNI / TOL prefix)",
            "type": "array",
            "description": "Match by code prefix, e.g. 62 (IT), 41 (construction of buildings), 70.22 (management consultancy), 56.1 (restaurants). Works across all three national variants of NACE.",
            "items": {
              "type": "string"
            }
          },
          "registeredWithinDays": {
            "title": "Registered within last N days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Only companies registered in the last N days (new-company leads). Ignored if 'Registered after' is set."
          },
          "registeredAfter": {
            "title": "Registered after (YYYY-MM-DD)",
            "type": "string",
            "description": "Only companies registered on or after this date."
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Case-insensitive substring of the company name."
          },
          "cities": {
            "title": "Cities / municipalities",
            "type": "array",
            "description": "Exact postal town or municipality, e.g. Stockholm, Oslo, Helsinki, Göteborg.",
            "items": {
              "type": "string"
            }
          },
          "legalFormCategories": {
            "title": "Legal form",
            "type": "array",
            "description": "Normalised legal-form categories (AB/AS/Oy = limited_company). Empty = all except sole traders, which are never included.",
            "items": {
              "type": "string",
              "enum": [
                "limited_company",
                "public_limited_company",
                "partnership",
                "cooperative",
                "housing_association",
                "association",
                "foundation",
                "public_sector",
                "foreign_branch",
                "other"
              ],
              "enumTitles": [
                "Limited company (AB/AS/Oy)",
                "Public limited company (ASA/Oyj)",
                "Partnership (HB/KB/ANS/DA/Ky)",
                "Cooperative",
                "Housing association (BRF/BRL)",
                "Association",
                "Foundation",
                "Public sector",
                "Foreign branch (NUF/filial)",
                "Other"
              ]
            },
            "default": [
              "limited_company",
              "public_limited_company"
            ]
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Skip ceased, bankrupt and liquidating companies.",
            "default": true
          },
          "excludeMarketingBlocked": {
            "title": "Exclude companies with a marketing block (SE)",
            "type": "boolean",
            "description": "Swedish companies can register a block against direct-marketing (reklamspärr). Keep this ON for sales prospecting.",
            "default": true
          },
          "onlyNew": {
            "title": "Monitor mode: only companies not seen in earlier runs",
            "type": "boolean",
            "description": "Schedule daily/weekly to receive only newly appearing companies for this search.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of this saved search for monitor mode.",
            "default": "default"
          },
          "maxResultsPerCountry": {
            "title": "Max results per country",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cap per country; each company is one billable result. Example: 20 for a quick test, 10000 for a full lead list.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}