{
  "openapi": "3.0.1",
  "info": {
    "title": "Norway Company Emails & Phones: Brreg AS/ASA Leads",
    "description": "Norwegian limited companies (AS, ASA and more) from the official Brønnøysund register with website, generic company email and phone. Filter by NACE code, municipality, postcode, founding date and employees. No sole traders, no persons. $0.002 per company with a contact.",
    "version": "0.1",
    "x-build-id": "7q2I3gtQ4Idjmyl1n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datagleaner~norway-company-contacts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datagleaner-norway-company-contacts",
        "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/datagleaner~norway-company-contacts/runs": {
      "post": {
        "operationId": "runs-sync-datagleaner-norway-company-contacts",
        "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/datagleaner~norway-company-contacts/run-sync": {
      "post": {
        "operationId": "run-sync-datagleaner-norway-company-contacts",
        "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": {
          "naceCodes": {
            "title": "NACE activity codes",
            "type": "array",
            "description": "Optional. Norwegian NACE codes or prefixes, e.g. `62` (IT), `62.100` (programming), `43.2` (electrical and plumbing), `69.201` (accounting). A prefix matches every code under it; several codes are OR-ed.",
            "items": {
              "type": "string"
            }
          },
          "municipalities": {
            "title": "Municipalities",
            "type": "array",
            "description": "Optional. Municipality numbers such as `0301` (Oslo), `4601` (Bergen), `5001` (Trondheim), `1103` (Stavanger), or names such as `Oslo`. Matches the business address.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Optional. Four-digit postal codes of the business address, e.g. `0150`.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Optional. Default `AS` and `ASA`. Also accepted: `SA`, `SE`, `BA`, `STI`, `FLI`, `BBL`, `GFS`, `SPA`, `PK`, `VPFO`, `IKS`, `KF`, `FKF`, `SF`, `KOMM`, `FYLK`, `STAT`, `ORGL`, `KIRK`, `SÆR`. Sole proprietorships (`ENK`), partnerships with personally liable partners (`ANS`, `DA`, `KS`), foreign units (`NUF`) and residential owners are never returned.",
            "items": {
              "type": "string"
            }
          },
          "nameQuery": {
            "title": "Company name contains",
            "type": "string",
            "description": "Optional text the company name must contain, e.g. `regnskap`."
          },
          "foundedFrom": {
            "title": "Founded on or after",
            "type": "string",
            "description": "Optional date `YYYY-MM-DD` (stiftelsesdato)."
          },
          "foundedTo": {
            "title": "Founded on or before",
            "type": "string",
            "description": "Optional date `YYYY-MM-DD`."
          },
          "registeredFrom": {
            "title": "Registered on or after",
            "type": "string",
            "description": "Optional date `YYYY-MM-DD` of registration in Enhetsregisteret; use it to find newly registered companies."
          },
          "registeredTo": {
            "title": "Registered on or before",
            "type": "string",
            "description": "Optional date `YYYY-MM-DD`."
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. The register shows no count below 5 employees, so any value from 1 keeps only companies with a registered count at or above it."
          },
          "maxEmployees": {
            "title": "Maximum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper bound on the registered employee count (companies with no count pass)."
          },
          "requireContact": {
            "title": "Contact field required",
            "enum": [
              "any",
              "email",
              "website",
              "phone",
              "emailOrWebsite"
            ],
            "type": "string",
            "description": "Only companies with this contact field are returned, and only returned companies are billed. Companies without it are skipped for free.",
            "default": "any"
          },
          "includeInactive": {
            "title": "Include bankrupt and winding-up companies",
            "type": "boolean",
            "description": "Off by default: companies under bankruptcy, liquidation or forced dissolution are skipped.",
            "default": false
          },
          "mode": {
            "title": "Source",
            "enum": [
              "auto",
              "search",
              "bulk"
            ],
            "type": "string",
            "description": "The register's search API stops at 10,000 results per query. Auto uses it first and switches to the register's nightly bulk file (about 155 MB, streamed, about 1-3 minutes) only when a query needs more.",
            "default": "auto"
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of companies returned (and billed).",
            "default": 100
          },
          "requestDelayMs": {
            "title": "Delay between search requests (ms)",
            "minimum": 200,
            "maximum": 10000,
            "type": "integer",
            "description": "Polite pacing for the register's search API. The API publishes no rate limit; 429 answers are backed off.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}