Company state on a date, or its observed changes
get_company_historyCompany history from Apier's archive of Brønnøysund observations. Mode as_of with date returns the state Apier had observed at the end of that day: every tracked field with its status, source and licence. Mode history with from and to (at most 366 days) returns up to 1,000 changes observed in the window, or with view diff one field-by-field comparison. The archive starts 2026-07-30 and nothing earlier is back-filled; coverage says what is covered. A record of what the register showed, not what was in force, never a verdict. Errors: VALIDATION_FAILED, UPSTREAM_UNAVAILABLE; a credential without read:brreg can't see the tool; a call returns unknown tool (-32602). No API key? Use Bearer apier_sandbox_test_ (a fresh suffix) to get fixtures; valid orgs are the 818, 99966 and 99977 series and 999000002 (see GET /api/v1/sandbox/fixtures). Cost: 50 øre (NOK 0.50) per call, prepaid (prices: the get_pricing tool or GET /api/v1/pricing). Docs: https://www.apier.no/docs/guides/company-history
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"org_number": "<org_number>",
"mode": "<mode>"
},
"name": "get_company_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Only with mode `history`, and required there: end of the window (YYYY-MM-DD), not after today in Europe/Oslo and at most 366 days after `from`. | |
| date | No | Only with mode `as_of`, and required there: a calendar date (YYYY-MM-DD), not after today in Europe/Oslo. A date before the archive start is answered with the facts `not_checked`. | |
| from | No | Only with mode `history`, and required there: start of the window (YYYY-MM-DD), not after `to`. | |
| mode | Yes | `as_of` returns the state Apier had observed at the end of `date`; `history` returns up to 1,000 changes Apier observed between `from` and `to` (`truncated` marks more) (or, with `view` `diff`, one field-by-field comparison of the two ends). | |
| view | No | Only with mode `history`: `events` (default) lists the changes; `diff` compares the state at the end of `from` with the state at the end of `to`. | |
| org_number | Yes | 9-digit Norwegian organisasjonsnummer (Brønnøysund ID); MOD-11-checked up-front — a failing value is rejected as VALIDATION_FAILED, so correct the number rather than retrying it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | ||
| result | Yes | The /as-of or /history response: observed facts with their source, licence and coverage window; never a verdict. | |
| metadata | Yes | ||
| justification | Yes |