{
  "openapi": "3.0.1",
  "info": {
    "title": "Official Company Headcount: France, Norway, UK, Latvia, Estonia",
    "description": "Company name or registry number in: the registry number and the official headcount (France: INSEE band; Norway: NAV; UK: filed accounts; Latvia, Estonia: tax board quarterly figures), with reference date, source and why a figure is missing. Official filings, not a live LinkedIn count.",
    "version": "0.1",
    "x-build-id": "8sunljrdrlERnjR5s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/northbell~company-registry-headcount/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-northbell-company-registry-headcount",
        "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/northbell~company-registry-headcount/runs": {
      "post": {
        "operationId": "runs-sync-northbell-company-registry-headcount",
        "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/northbell~company-registry-headcount/run-sync": {
      "post": {
        "operationId": "run-sync-northbell-company-registry-headcount",
        "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": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Company names or registry numbers",
            "type": "array",
            "description": "One per line. Registry numbers are the sure way: a French SIREN (9 digits, or a 14-digit SIRET), a Norwegian organisation number (9 digits; the check digit tells France and Norway apart), a UK company number (8 characters, e.g. 09595646 or SC045551), a Latvian registration number (11 digits) an Estonian registry code (8 digits) or, with CZ: or SK: in front, a Czech or Slovak IČO (8 digits; Slovakia by IČO only), or a Romanian CUI as RO14399840 or RO:14399840 (by CUI only), or a Japanese corporate number (法人番号, 13 digits) or a name written in Japanese. Add FR:, NO:, UK:, LV:, EE:, CZ:, SK:, RO: or JP: in front to force a country. A name returns up to 'Max candidates per name' companies, each with why it matched and a confidence.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries for names",
            "type": "array",
            "description": "Where names are searched. Leave the default five to search each name in all of them; Czechia is searched only when you pick it here or write CZ: before a name; pick one when you know the country, so the other registries’ namesakes stay out. A UK name search reads each candidate’s accounts, so it is slower; Latvia and Estonia read the tax board’s whole quarterly file once per run (about 15 and 66 MB). Registry numbers ignore this.",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "NO",
                "UK",
                "LV",
                "EE",
                "CZ"
              ],
              "enumTitles": [
                "France",
                "Norway",
                "United Kingdom",
                "Latvia",
                "Estonia",
                "Czechia (only when picked)"
              ]
            },
            "default": [
              "FR",
              "NO",
              "UK",
              "LV",
              "EE"
            ]
          },
          "maxMatchesPerName": {
            "title": "Max candidates per name",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many companies to return for each name and country. A registry counts one legal entity, so a group's holding and its operating company are separate rows: raise this to see them side by side. Registry numbers always return one company.",
            "default": 3
          },
          "includeClosed": {
            "title": "Include closed companies",
            "type": "boolean",
            "description": "Off (default): name searches return active companies only. On: closed, deleted and bankrupt companies too (France, Norway and the UK; the Latvian and Estonian tax files list current taxpayers only, so a closed company there is not found). A registry number always returns its company, whatever its status.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only companies whose figure changed",
            "type": "boolean",
            "description": "Off (default): every company is returned, with its figure from your previous run beside it (employeesAtLastRun, changedSinceLastRun). On: a company whose figure is the same as when your runs last returned it is left out and not charged, so a scheduled run returns only what moved. A company you have not looked up before is always returned.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}