{
  "openapi": "3.0.1",
  "info": {
    "title": "Norway Company Registry & Changes Monitor",
    "description": "Look up Norwegian companies by name, organisation number, industry, municipality, legal form or registration date. Export registry details, addresses, contacts, status flags, and opt-in change tracking for new, amended and closed companies.",
    "version": "0.1",
    "x-build-id": "5Dge1ZLdHV6yGsJaz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~norway-company-changes-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-norway-company-changes-monitor",
        "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/automatic~norway-company-changes-monitor/runs": {
      "post": {
        "operationId": "runs-sync-automatic-norway-company-changes-monitor",
        "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/automatic~norway-company-changes-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-norway-company-changes-monitor",
        "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": {
          "orgNumbers": {
            "title": "Organisation numbers",
            "type": "array",
            "description": "Up to 2,000 nine-digit Norwegian organisation numbers to monitor as a portfolio. Leave empty to use the search filters instead.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "name": {
            "title": "Company name",
            "type": "string",
            "description": "Company name or part of a name to search for. Ignored when organisation numbers are supplied."
          },
          "naceCodes": {
            "title": "NACE industry codes",
            "type": "array",
            "description": "Up to 10 Norwegian NACE codes, for example 06.100 for oil extraction or 62.010 for computer programming. Values are combined.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "municipalityNumbers": {
            "title": "Municipality numbers",
            "type": "array",
            "description": "Up to 20 four-digit municipality numbers for the business address, for example 0301 for Oslo.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Up to 50 legal-form codes, for example ASA for a public limited company, AS for a private limited company or ENK for a sole proprietorship.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "registeredFrom": {
            "title": "Registered from",
            "type": "string",
            "description": "Earliest registration date in the register, as YYYY-MM-DD."
          },
          "registeredTo": {
            "title": "Registered to",
            "type": "string",
            "description": "Latest registration date in the register, as YYYY-MM-DD."
          },
          "bankrupt": {
            "title": "Bankrupt",
            "type": "boolean",
            "description": "Leave unset for both; true keeps bankrupt companies, false excludes them."
          },
          "underLiquidation": {
            "title": "Under liquidation",
            "type": "boolean",
            "description": "Leave unset for both; true keeps companies under liquidation, false excludes them."
          },
          "underCompulsoryLiquidation": {
            "title": "Under compulsory liquidation",
            "type": "boolean",
            "description": "Leave unset for both; true keeps companies under compulsory liquidation or compulsory winding-up."
          },
          "underBankruptcyProceedings": {
            "title": "Under bankruptcy proceedings",
            "type": "boolean",
            "description": "Leave unset for both; true keeps companies under bankruptcy, compulsory liquidation or compulsory winding-up."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "full",
              "changes"
            ],
            "type": "string",
            "description": "Full returns every matching company. Changes keeps a ledger and returns only companies that are new, amended or closed since the previous run.",
            "default": "full"
          },
          "stateKey": {
            "title": "Change-ledger name",
            "type": "string",
            "description": "Optional name for a changes-mode ledger. Use the same name on later runs to continue the same ledger. Leave empty to derive it from the portfolio or search."
          },
          "updatesSince": {
            "title": "Changes from",
            "type": "string",
            "description": "Optional ISO date or timestamp. In changes mode, the register's change notices from this time on are attached to delivered rows; by default each company's notices since it was last checked are used. The first run still reports every company as new."
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many rows across the whole run.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional connection settings. Direct connections are used by default.",
            "default": {
              "useApifyProxy": false
            }
          },
          "apifyProxyCountry": {
            "title": "Proxy country override",
            "type": "string",
            "description": "Optional two-letter country for platform connections; defaults to NO.",
            "default": "NO"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}