# Get indexed company

Read a Norwegian company's registry details, board and management roles, annual financial figures and known websites.

POST https://api.brigg.app/v1/operations/customers.GetIndexedCompany

## Access & visibility

Allow `customers.GetIndexedCompany` on your API key.

**Workspace access by default.** Private member data requires [approved member delegation](https://developer.brigg.app/authentication#member-delegation) through `Brigg-Act-As`; the key supplies permissions while private ownership and project boundaries remain enforced.

[Set up authentication](https://developer.brigg.app/authentication) · [Choose permissions](https://developer.brigg.app/permissions)

## Request fields

Send a JSON object with the following fields. Required fields must be included; omit optional fields you do not need.
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `org_number` | string | Yes | Nine-digit Norwegian organisation number. Pattern: `^\d{9}$`. |

## Response

Returns **200 OK** with a JSON body.
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `company` | [object](#response-company) | Yes | Company-register information for the requested company. |
| `nace_labels` | array of string | Yes | Human-readable labels for the industry's classification codes. |
| `kommune_name` | null or string | Yes | Municipality display name. |
| `roles` | array of [object](#response-roles) | Yes | Roles recorded by the company register for this person or organization. |
| `financials` | array of [object](#response-financials) | Yes | Financial reports returned for this company. |
| `domains` | array of [object](#response-domains) | Yes | Web domains associated with the company. |
| `chunks` | array of [object](#response-chunks) | Yes | Number or collection of indexed source chunks returned for this source. |
| `underenheter` | array of [object](#response-underenheter) | Yes | Registered business units belonging to the company. |
| `events` | array of [object](#response-events) | Yes | Recorded changes or source events associated with the company. |

### response.company

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Display name. |
| `raw` | JSON value | Yes | Original company-register facts. Prefer the named, normalised fields for portable integrations. |
| `created_at` | number | Yes | Creation time in Unix milliseconds. |
| `org_number` | string | Yes | Nine-digit Norwegian organisation number. |
| `updated_at` | number | Yes | Last update time in Unix milliseconds. |
| `entity_kind` | string | Yes | Whether this entry represents a main entity or business unit. |
| `parent_org_number` | null or string | Yes | Organization number of the parent entity. |
| `name_key` | string | Yes | Normalized lookup key used for this person's name; not a unique person ID. |
| `org_form` | null or string | Yes | Legal organization form code used by the register. |
| `nace_codes` | JSON value | Yes | Industry classification codes recorded by the company register. |
| `employees` | null or number | Yes | Employee count reported by the source. |
| `has_registered_employees` | null or boolean | Yes | Whether the register reports employees for this company. |
| `kommune_number` | null or string | Yes | Norwegian municipality code used to filter companies. |
| `postal_code` | null or string | Yes | Postal code as text, preserving leading zeros. |
| `city` | null or string | Yes | Postal town or city. |
| `address_json` | JSON value | Yes | Structured address supplied by the company register; keys vary by register. |
| `founded_date` | null or string | Yes | Company founding date from the register. |
| `registered_date` | null or string | Yes | Date the company was registered. |
| `website_raw` | null or string | Yes | Website value as supplied by the original source. |
| `email` | null or string | Yes | Email address. |
| `phone` | null or string | Yes | Phone number including its country calling code. |
| `linkedin_url` | null or string | Yes | Public LinkedIn profile URL for the person or company. |
| `share_capital` | null or number | Yes | Share capital reported by the company register. |
| `in_konsern` | null or boolean | Yes | Whether the company belongs to a corporate group. |
| `bankrupt` | boolean | Yes | Whether the register marks the company as bankrupt. Allowed: `false`, `true`. |
| `winding_down` | boolean | Yes | Whether the register marks the company as winding down. Allowed: `false`, `true`. |
| `forced_liquidation` | boolean | Yes | Whether the register marks the company for compulsory liquidation. Allowed: `false`, `true`. |
| `vat_registered` | null or boolean | Yes | Whether the company is registered for VAT. |
| `in_foretaksregisteret` | null or boolean | Yes | Whether the company is registered in Norway's Register of Business Enterprises. |
| `registry_deleted_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `registry_updated_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `profile_text` | null or string | Yes | Text representation of the company profile used for discovery. |
| `profile_embedded_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `profile_embed_attempts` | number | Yes | Number of recorded attempts for this background activity. |
| `profile_embed_next_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `financials_fetched_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `financials_attempts` | number | Yes | Number of recorded attempts for this background activity. |
| `financials_next_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `latest_revenue` | null or number | Yes | Revenue from the latest available financial report. |
| `roles_synced_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `discovery_status` | string | Yes | Current state of company website discovery. |
| `discovery_attempts` | number | Yes | Number of recorded attempts for this background activity. |
| `discovery_next_at` | null or number | Yes | Recorded event time in Unix milliseconds. |

### response.roles[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ord` | number | Yes | Ordering value of this item within the returned collection. |
| `role_group` | string | Yes | Norwegian register role group, for example STYR (board) or DAGL (general management). Preserve unknown source codes. |
| `role_code` | string | Yes | Norwegian register role code, for example LEDE (board chair), MEDL (board member), VARA (deputy board member) or DAGL (general manager). This response does not include a separate display label; preserve unknown codes. |
| `holder_key` | string | Yes | Register's identifier for the role holder. |
| `holder_name` | null or string | Yes | Name of the person or organization holding the role. |
| `birth_date` | null or string | Yes | Birth date in YYYY-MM-DD format, or null when the source register does not supply one. A name match alone does not establish identity. |
| `rank` | null or number | Yes | Relative rank within these search results, not a percentage. |
| `resigned` | boolean | Yes | Whether the register reports this role as resigned. Allowed: `false`, `true`. |
| `last_changed` | null or string | Yes | Last change timestamp supplied by the role register. |

### response.financials[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `fiscal_year` | number | Yes | Fiscal year to which these financial figures apply. |
| `accounting_type` | null or string | Yes | Accounting/report category used by the source. |
| `currency` | null or string | Yes | Three-letter currency code, such as NOK, SEK or EUR. |
| `revenue` | null or number | Yes | Revenue in the source financial report's units. |
| `operating_result` | null or number | Yes | Operating profit or loss in the source financial report's units. |
| `result_before_tax` | null or number | Yes | Profit or loss before tax in the source financial report's units. |
| `net_result` | null or number | Yes | Net profit or loss in the source financial report's units. |
| `equity` | null or number | Yes | Total equity in the source financial report's units. |
| `debt_short` | null or number | Yes | Short-term debt in the source financial report's units. |
| `debt_long` | null or number | Yes | Long-term debt in the source financial report's units. |
| `assets_total` | null or number | Yes | Total assets in the source financial report's units. |
| `fetched_at` | number | Yes | Recorded event time in Unix milliseconds. |

### response.domains[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | Website hostname, without a scheme or path. |
| `link_source` | string | Yes | Source of the association between the company and website. |
| `link_confidence` | string | Yes | Confidence assigned to the company-to-website association; not a percentage unless the source specifies one. |
| `is_primary` | boolean | Yes | Whether this is the primary website associated with the company. Allowed: `false`, `true`. |
| `scrape_status` | null or string | Yes | Most recently recorded website-fetch status. |
| `last_scraped_at` | null or number | Yes | Recorded event time in Unix milliseconds. |
| `favicon_url` | string | Yes | Website icon URL discovered for the company. |
| `emails` | array of string | Yes | Additional email addresses. |
| `phones` | array of string | Yes | Phone numbers discovered for the company. |
| `social_links` | map of string | Yes | Public social-profile links discovered for the company. |
| `title` | null or string | Yes | Display title. |
| `description` | null or string | Yes | Descriptive text. |
| `orgnrs_on_site` | array of string | Yes | Organization numbers found on the company's website. |
| `last_error` | null or string | Yes | Most recent website-fetch failure, or null when none is recorded. |
| `snapshot` | null or [object](#response-domains-snapshot) | Yes | Source facts captured for this result. |

### response.domains[].snapshot

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `scraped_at` | number | Yes | Recorded event time in Unix milliseconds. |
| `formats` | array of string | Yes | Supported data formats for this operation. |
| `title` | null or string | Yes | Display title. |
| `final_url` | null or string | Yes | Final website URL after following redirects. |

### response.chunks[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string | Yes | Category identifying which variant of this model applies. |
| `total` | number | Yes | Number of source records covered by this preview or search. |
| `embedded` | number | Yes | Whether the source has a recorded search embedding. |

### response.underenheter[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `org_number` | string | Yes | Official organization number as text; preserve leading zeros. |
| `name` | string | Yes | Display name. |
| `city` | null or string | Yes | Postal town or city. |
| `employees` | null or number | Yes | Employee count reported by the source. |

### response.events[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string | Yes | Category identifying which variant of this model applies. |
| `old_value` | null or string | Yes | Value before the recorded change. |
| `new_value` | null or string | Yes | Value after the recorded change. |
| `detected_at` | number | Yes | Recorded event time in Unix milliseconds. |

## Errors & retries

This operation reads data. It needs no idempotency key and can be retried after a transient failure.

For rate limits, follow the server’s retry guidance and back off. See [HTTP errors](https://developer.brigg.app/http#errors) and [safe retries and limits](https://developer.brigg.app/reliability).

| HTTP status | Code | What to do |
| --- | --- | --- |
| 400 | `invalid_json` | Send a JSON object with Content-Type: application/json. |
| 400 | `invalid_input` | Check the request fields and types. |
| 401 | `invalid_key` | The workspace API key is missing, invalid or revoked. |
| 403 | `forbidden` | Check the key’s operation and resource grants. If Brigg-Act-As is supplied, the key must be authorized to delegate to that member. |
| 404 | `not_found` | The requested operation or resource is not available to this credential. |
| 429 | `rate_limited` | Wait for Retry-After before retrying. |

## Next steps

[Download OpenAPI](https://developer.brigg.app/openapi.json) · [Versioning & retirement](https://developer.brigg.app/versioning)

## Examples

### Example request

Fictional values. Replace IDs and business details with values from your workspace.
#### cURL


```sh
curl 'https://api.brigg.app/v1/operations/customers.GetIndexedCompany' \
  -H "Authorization: Bearer $BRIGG_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "org_number": "999999999"
}'
```

#### TypeScript


```typescript
const response = await fetch("https://api.brigg.app/v1/operations/customers.GetIndexedCompany", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.BRIGG_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "org_number": "999999999"
  }),
});
const result = await response.json();
if (!response.ok) throw new Error(`${response.status}: ${result.error} — ${result.message}`);
console.log(result);
```

#### Python


```python
import json
import os
from urllib.request import Request, urlopen
from urllib.error import HTTPError

payload = {
  "org_number": "999999999"
}
request = Request(
    "https://api.brigg.app/v1/operations/customers.GetIndexedCompany",
    data=json.dumps(payload).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {os.environ['BRIGG_API_KEY']}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urlopen(request) as response:
        print(json.load(response))
except HTTPError as error:
    print(error.code, json.load(error))
    raise
```

#### Response example


```json
{
  "company": {
    "name": "Northstar Consulting AS",
    "raw": null,
    "created_at": 1794301200000,
    "org_number": "999999999",
    "updated_at": 1794301200000,
    "entity_kind": "hovedenhet",
    "parent_org_number": null,
    "name_key": "alex morgan",
    "org_form": "AS",
    "nace_codes": null,
    "employees": null,
    "has_registered_employees": null,
    "kommune_number": "0301",
    "postal_code": null,
    "city": null,
    "address_json": null,
    "founded_date": null,
    "registered_date": null,
    "website_raw": "https://example.com",
    "email": null,
    "phone": null,
    "linkedin_url": "https://www.linkedin.com/company/example",
    "share_capital": null,
    "in_konsern": null,
    "bankrupt": false,
    "winding_down": false,
    "forced_liquidation": false,
    "vat_registered": null,
    "in_foretaksregisteret": null,
    "registry_deleted_at": null,
    "registry_updated_at": null,
    "profile_text": "Consulting services for small businesses.",
    "profile_embedded_at": null,
    "profile_embed_attempts": 1,
    "profile_embed_next_at": null,
    "financials_fetched_at": null,
    "financials_attempts": 1,
    "financials_next_at": null,
    "latest_revenue": null,
    "roles_synced_at": null,
    "discovery_status": "done",
    "discovery_attempts": 1,
    "discovery_next_at": null
  },
  "nace_labels": [
    "IT consultancy activities"
  ],
  "kommune_name": "Oslo",
  "roles": [],
  "financials": [],
  "domains": [],
  "chunks": [],
  "underenheter": [],
  "events": []
}
```

## JSON schemas


```json-schema-request
{
  "type": "object",
  "properties": {
    "org_number": {
      "type": "string",
      "pattern": "^\\d{9}$",
      "description": "Nine-digit Norwegian organisation number."
    }
  },
  "required": [
    "org_number"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "org_number": "999999999"
    }
  ]
}
```


```json-schema-response
{
  "title": "GetIndexedCompany",
  "type": "object",
  "properties": {
    "company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Display name."
        },
        "raw": {
          "description": "Original company-register facts. Prefer the named, normalised fields for portable integrations."
        },
        "created_at": {
          "type": "number",
          "description": "Creation time in Unix milliseconds."
        },
        "org_number": {
          "type": "string",
          "description": "Nine-digit Norwegian organisation number."
        },
        "updated_at": {
          "type": "number",
          "description": "Last update time in Unix milliseconds."
        },
        "entity_kind": {
          "type": "string",
          "description": "Whether this entry represents a main entity or business unit."
        },
        "parent_org_number": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Organization number of the parent entity."
        },
        "name_key": {
          "type": "string",
          "description": "Normalized lookup key used for this person's name; not a unique person ID."
        },
        "org_form": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Legal organization form code used by the register."
        },
        "nace_codes": {
          "description": "Industry classification codes recorded by the company register."
        },
        "employees": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Employee count reported by the source."
        },
        "has_registered_employees": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean",
              "const": false
            },
            {
              "type": "boolean",
              "const": true
            }
          ],
          "description": "Whether the register reports employees for this company."
        },
        "kommune_number": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Norwegian municipality code used to filter companies."
        },
        "postal_code": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Postal code as text, preserving leading zeros."
        },
        "city": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Postal town or city."
        },
        "address_json": {
          "description": "Structured address supplied by the company register; keys vary by register."
        },
        "founded_date": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Company founding date from the register."
        },
        "registered_date": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Date the company was registered."
        },
        "website_raw": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Website value as supplied by the original source."
        },
        "email": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Email address."
        },
        "phone": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Phone number including its country calling code."
        },
        "linkedin_url": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Public LinkedIn profile URL for the person or company."
        },
        "share_capital": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Share capital reported by the company register."
        },
        "in_konsern": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean",
              "const": false
            },
            {
              "type": "boolean",
              "const": true
            }
          ],
          "description": "Whether the company belongs to a corporate group."
        },
        "bankrupt": {
          "type": "boolean",
          "enum": [
            false,
            true
          ],
          "description": "Whether the register marks the company as bankrupt."
        },
        "winding_down": {
          "type": "boolean",
          "enum": [
            false,
            true
          ],
          "description": "Whether the register marks the company as winding down."
        },
        "forced_liquidation": {
          "type": "boolean",
          "enum": [
            false,
            true
          ],
          "description": "Whether the register marks the company for compulsory liquidation."
        },
        "vat_registered": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean",
              "const": false
            },
            {
              "type": "boolean",
              "const": true
            }
          ],
          "description": "Whether the company is registered for VAT."
        },
        "in_foretaksregisteret": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean",
              "const": false
            },
            {
              "type": "boolean",
              "const": true
            }
          ],
          "description": "Whether the company is registered in Norway's Register of Business Enterprises."
        },
        "registry_deleted_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "registry_updated_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "profile_text": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "description": "Text representation of the company profile used for discovery."
        },
        "profile_embedded_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "profile_embed_attempts": {
          "type": "number",
          "description": "Number of recorded attempts for this background activity."
        },
        "profile_embed_next_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "financials_fetched_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "financials_attempts": {
          "type": "number",
          "description": "Number of recorded attempts for this background activity."
        },
        "financials_next_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "latest_revenue": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Revenue from the latest available financial report."
        },
        "roles_synced_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        },
        "discovery_status": {
          "type": "string",
          "description": "Current state of company website discovery."
        },
        "discovery_attempts": {
          "type": "number",
          "description": "Number of recorded attempts for this background activity."
        },
        "discovery_next_at": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ],
          "description": "Recorded event time in Unix milliseconds."
        }
      },
      "required": [
        "name",
        "raw",
        "created_at",
        "org_number",
        "updated_at",
        "entity_kind",
        "parent_org_number",
        "name_key",
        "org_form",
        "nace_codes",
        "employees",
        "has_registered_employees",
        "kommune_number",
        "postal_code",
        "city",
        "address_json",
        "founded_date",
        "registered_date",
        "website_raw",
        "email",
        "phone",
        "linkedin_url",
        "share_capital",
        "in_konsern",
        "bankrupt",
        "winding_down",
        "forced_liquidation",
        "vat_registered",
        "in_foretaksregisteret",
        "registry_deleted_at",
        "registry_updated_at",
        "profile_text",
        "profile_embedded_at",
        "profile_embed_attempts",
        "profile_embed_next_at",
        "financials_fetched_at",
        "financials_attempts",
        "financials_next_at",
        "latest_revenue",
        "roles_synced_at",
        "discovery_status",
        "discovery_attempts",
        "discovery_next_at"
      ],
      "additionalProperties": false,
      "description": "Company-register information for the requested company."
    },
    "nace_labels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Human-readable labels for the industry's classification codes."
    },
    "kommune_name": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ],
      "description": "Municipality display name."
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ord": {
            "type": "number",
            "description": "Ordering value of this item within the returned collection."
          },
          "role_group": {
            "type": "string",
            "description": "Norwegian register role group, for example STYR (board) or DAGL (general management). Preserve unknown source codes."
          },
          "role_code": {
            "type": "string",
            "description": "Norwegian register role code, for example LEDE (board chair), MEDL (board member), VARA (deputy board member) or DAGL (general manager). This response does not include a separate display label; preserve unknown codes."
          },
          "holder_key": {
            "type": "string",
            "description": "Register's identifier for the role holder."
          },
          "holder_name": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Name of the person or organization holding the role."
          },
          "birth_date": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Birth date in YYYY-MM-DD format, or null when the source register does not supply one. A name match alone does not establish identity."
          },
          "rank": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Relative rank within these search results, not a percentage."
          },
          "resigned": {
            "type": "boolean",
            "enum": [
              false,
              true
            ],
            "description": "Whether the register reports this role as resigned."
          },
          "last_changed": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Last change timestamp supplied by the role register."
          }
        },
        "required": [
          "ord",
          "role_group",
          "role_code",
          "holder_key",
          "holder_name",
          "birth_date",
          "rank",
          "resigned",
          "last_changed"
        ],
        "additionalProperties": false
      },
      "description": "Roles recorded by the company register for this person or organization."
    },
    "financials": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fiscal_year": {
            "type": "number",
            "description": "Fiscal year to which these financial figures apply."
          },
          "accounting_type": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Accounting/report category used by the source."
          },
          "currency": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Three-letter currency code, such as NOK, SEK or EUR."
          },
          "revenue": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Revenue in the source financial report's units."
          },
          "operating_result": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Operating profit or loss in the source financial report's units."
          },
          "result_before_tax": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Profit or loss before tax in the source financial report's units."
          },
          "net_result": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Net profit or loss in the source financial report's units."
          },
          "equity": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Total equity in the source financial report's units."
          },
          "debt_short": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Short-term debt in the source financial report's units."
          },
          "debt_long": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Long-term debt in the source financial report's units."
          },
          "assets_total": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Total assets in the source financial report's units."
          },
          "fetched_at": {
            "type": "number",
            "description": "Recorded event time in Unix milliseconds."
          }
        },
        "required": [
          "fiscal_year",
          "accounting_type",
          "currency",
          "revenue",
          "operating_result",
          "result_before_tax",
          "net_result",
          "equity",
          "debt_short",
          "debt_long",
          "assets_total",
          "fetched_at"
        ],
        "additionalProperties": false
      },
      "description": "Financial reports returned for this company."
    },
    "domains": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "Website hostname, without a scheme or path."
          },
          "link_source": {
            "type": "string",
            "description": "Source of the association between the company and website."
          },
          "link_confidence": {
            "type": "string",
            "description": "Confidence assigned to the company-to-website association; not a percentage unless the source specifies one."
          },
          "is_primary": {
            "type": "boolean",
            "enum": [
              false,
              true
            ],
            "description": "Whether this is the primary website associated with the company."
          },
          "scrape_status": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Most recently recorded website-fetch status."
          },
          "last_scraped_at": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Recorded event time in Unix milliseconds."
          },
          "favicon_url": {
            "type": "string",
            "description": "Website icon URL discovered for the company."
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Additional email addresses."
          },
          "phones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Phone numbers discovered for the company."
          },
          "social_links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Public social-profile links discovered for the company."
          },
          "title": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Display title."
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Descriptive text."
          },
          "orgnrs_on_site": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Organization numbers found on the company's website."
          },
          "last_error": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Most recent website-fetch failure, or null when none is recorded."
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "scraped_at": {
                    "type": "number",
                    "description": "Recorded event time in Unix milliseconds."
                  },
                  "formats": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Supported data formats for this operation."
                  },
                  "title": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ],
                    "description": "Display title."
                  },
                  "final_url": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ],
                    "description": "Final website URL after following redirects."
                  }
                },
                "required": [
                  "scraped_at",
                  "formats",
                  "title",
                  "final_url"
                ],
                "additionalProperties": false
              }
            ],
            "description": "Source facts captured for this result."
          }
        },
        "required": [
          "domain",
          "link_source",
          "link_confidence",
          "is_primary",
          "scrape_status",
          "last_scraped_at",
          "favicon_url",
          "emails",
          "phones",
          "social_links",
          "title",
          "description",
          "orgnrs_on_site",
          "last_error",
          "snapshot"
        ],
        "additionalProperties": false
      },
      "description": "Web domains associated with the company."
    },
    "chunks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "Category identifying which variant of this model applies."
          },
          "total": {
            "type": "number",
            "description": "Number of source records covered by this preview or search."
          },
          "embedded": {
            "type": "number",
            "description": "Whether the source has a recorded search embedding."
          }
        },
        "required": [
          "kind",
          "total",
          "embedded"
        ],
        "additionalProperties": false
      },
      "description": "Number or collection of indexed source chunks returned for this source."
    },
    "underenheter": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "org_number": {
            "type": "string",
            "description": "Official organization number as text; preserve leading zeros."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "city": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Postal town or city."
          },
          "employees": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ],
            "description": "Employee count reported by the source."
          }
        },
        "required": [
          "org_number",
          "name",
          "city",
          "employees"
        ],
        "additionalProperties": false
      },
      "description": "Registered business units belonging to the company."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "Category identifying which variant of this model applies."
          },
          "old_value": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Value before the recorded change."
          },
          "new_value": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ],
            "description": "Value after the recorded change."
          },
          "detected_at": {
            "type": "number",
            "description": "Recorded event time in Unix milliseconds."
          }
        },
        "required": [
          "kind",
          "old_value",
          "new_value",
          "detected_at"
        ],
        "additionalProperties": false
      },
      "description": "Recorded changes or source events associated with the company."
    }
  },
  "required": [
    "company",
    "nace_labels",
    "kommune_name",
    "roles",
    "financials",
    "domains",
    "chunks",
    "underenheter",
    "events"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "company": {
        "name": "Northstar Consulting AS",
        "raw": null,
        "created_at": 1794301200000,
        "org_number": "999999999",
        "updated_at": 1794301200000,
        "entity_kind": "hovedenhet",
        "parent_org_number": null,
        "name_key": "alex morgan",
        "org_form": "AS",
        "nace_codes": null,
        "employees": null,
        "has_registered_employees": null,
        "kommune_number": "0301",
        "postal_code": null,
        "city": null,
        "address_json": null,
        "founded_date": null,
        "registered_date": null,
        "website_raw": "https://example.com",
        "email": null,
        "phone": null,
        "linkedin_url": "https://www.linkedin.com/company/example",
        "share_capital": null,
        "in_konsern": null,
        "bankrupt": false,
        "winding_down": false,
        "forced_liquidation": false,
        "vat_registered": null,
        "in_foretaksregisteret": null,
        "registry_deleted_at": null,
        "registry_updated_at": null,
        "profile_text": "Consulting services for small businesses.",
        "profile_embedded_at": null,
        "profile_embed_attempts": 1,
        "profile_embed_next_at": null,
        "financials_fetched_at": null,
        "financials_attempts": 1,
        "financials_next_at": null,
        "latest_revenue": null,
        "roles_synced_at": null,
        "discovery_status": "done",
        "discovery_attempts": 1,
        "discovery_next_at": null
      },
      "nace_labels": [
        "IT consultancy activities"
      ],
      "kommune_name": "Oslo",
      "roles": [],
      "financials": [],
      "domains": [],
      "chunks": [],
      "underenheter": [],
      "events": []
    }
  ]
}
```

