search_archives

Search Arkivportalen, the national archive catalogue: fonds, series and units held by Norwegian archive institutions (statsarkiv, byarkiv, private archives, ...).

Signature: search_archives(query: string, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)

Direct GET

For navigating agents: open the HTML page with parameters in the URL. The result is fetched and displayed without screenshots or form filling.

Open this validated HTML GET URL

https://allemannsdata.com/wiki/kilder/arkivverket/search_archives/?query={query}&limit=25&offset=0

Replace {query}, {limit} with values. Remove unused optional parameters from the URL.

For software and dashboards: Read the operation descriptor. The JSON GET template is https://allemannsdata.com/wiki/api/v1/kilder/arkivverket/search_archives?query={query}&limit=25&offset=0. Open this exact request as JSON.

ParameterRequirementJSON typeDescription
queryrequiredstringFree-text search, e.g. an organisation, topic or place.
limitoptionalintegerResults per page. Unit: items. Through this API: default 25, maximum 100.
offsetoptionalintegerNumber of list items to skip; default 0.
Generated JavaScript, Python and response structure

Use JSON when the user requests code, machine-readable data, value extraction or further computation. Use the HTML GET page to identify the correct source and verify parameters.

Example for generated JavaScript and Python

https://allemannsdata.com/wiki/api/v1/kilder/arkivverket/search_archives?query={query}&limit=25&offset=0

Replace URL placeholders and remove unused optional parameters.

JavaScript in a dashboard

const url = "https://allemannsdata.com/wiki/api/v1/kilder/arkivverket/search_archives?query={query}&limit=25&offset=0";
const response = await fetch(url);
if (!response.ok) {
  const failure = await response.json();
  throw new Error(`${failure.error.code}: ${failure.error.message} ${failure.suggestion}`);
}
const result = await response.json();
const data = result.data;

Python without additional packages

import json
from urllib.request import urlopen

url = "https://allemannsdata.com/wiki/api/v1/kilder/arkivverket/search_archives?query={query}&limit=25&offset=0"
with urlopen(url) as response:
    result = json.load(response)
data = result["data"]

Response structure

{
  "source": "arkivverket",
  "operation": "search_archives",
  "parameters": {},
  "data": {},
  "entities": [],
  "_meta": {"retrieved_at": "...", "sources": [], "cache": {}},
  "_links": {"self": "...", "source": "...", "wiki": "...", "feedback": "..."}
}
Form for manual use

The form is a fallback for people and browser agents that cannot open the GET URL directly.

Type: string. Free-text search, e.g. an organisation, topic or place.
Type: integer. Results per page. Unit: items. Through this API: default 25, maximum 100.

Result

Source: National Archives of Norway. Retrieved 2026-11-21T14:24:01Z in 0.000 seconds.

Showing 10 of 11 results in compact format.

  1. name:
    Trolltun
    id:
    0151
  2. name:
    Trolltun
    id:
    0149
  3. name:
    Trolltun
    id:
    0150
  4. name:
    Trolltun
    id:
    0018
  5. name:
    Trolltun
    id:
    0031
  6. name:
    Trolltun Gjestegård AS
    id:
    0008
  7. name:
    Trolltunet - Tulipanveien 14
    id:
    L0089
  8. name:
    1 bilde av "Trolltunga" i Hardanger
    id:
    0002
  9. name:
    Tegning
    id:
    0011
  10. name:
    Ekely
    id:
    0004
Show all fields in HTML
total:
11
total_exact:
yes
returned:
11
page:
1
results:

11 results

  1. urn:
    0ff1ee7a-6e4d-4406-ae5a-033de51fdf3a
    name:
    Trolltun
    id:
    0151
    path:
    AV/RA-S-6224/D/Db/Db05/0012/0151
    unit_type:
    MAPPE
    institution:
    Nasjonalarkivet
    country:
    norge
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/0ff1ee7a-6e4d-4406-ae5a-033de51fdf3a
  2. urn:
    b4e77eb1-b67a-44c3-b39c-d6942f347bf2
    name:
    Trolltun
    id:
    0149
    path:
    AV/RA-S-6224/D/Db/Db05/0012/0149
    unit_type:
    FOTOSERIE
    institution:
    Nasjonalarkivet
    country:
    norge
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/b4e77eb1-b67a-44c3-b39c-d6942f347bf2
  3. urn:
    ea9bf822-30be-4a40-8ee4-1094eb67f1c0
    name:
    Trolltun
    id:
    0150
    path:
    AV/RA-S-6224/D/Db/Db05/0012/0150
    unit_type:
    DOKUMENTSERIE
    institution:
    Nasjonalarkivet
    country:
    norge
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/ea9bf822-30be-4a40-8ee4-1094eb67f1c0
  4. urn:
    a609c4cd-5830-42d4-b8f2-317dbe792655
    name:
    Trolltun
    id:
    0018
    path:
    AV/RA-S-6224/T/Tb/Tb05/Tb05e/0009/0018
    unit_type:
    TEGNINGSSERIE
    institution:
    Nasjonalarkivet
    country:
    norge
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/a609c4cd-5830-42d4-b8f2-317dbe792655
  5. urn:
    fc74f3e9-fa1b-44a3-80a2-161301e84f33
    name:
    Trolltun
    id:
    0031
    path:
    AV/RA-S-6224/X/Xb/Xb05/Xb05a/0010/0031
    unit_type:
    TEGNINGSSERIE
    institution:
    Nasjonalarkivet
    country:
    norge
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/fc74f3e9-fa1b-44a3-80a2-161301e84f33
  6. urn:
    f619a213-0e65-4476-9f5e-7a25f1d0d4cd
    name:
    Trolltun Gjestegård AS
    id:
    0008
    path:
    AV/SAH-INN-001/D/De/Dea/L0332/0008
    unit_type:
    MAPPE
    institution:
    Nasjonalarkivet
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/f619a213-0e65-4476-9f5e-7a25f1d0d4cd
  7. urn:
    8102ac48-f5de-412b-95d1-6b2ef857d164
    name:
    Trolltunet - Tulipanveien 14
    id:
    L0089
    path:
    AV/SAO-A-10325/N/Na/L0089
    unit_type:
    STYKKE
    institution:
    Nasjonalarkivet
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/8102ac48-f5de-412b-95d1-6b2ef857d164
  8. urn:
    06a3f2dc-326b-4839-95ee-ba9589355e1e
    name:
    1 bilde av "Trolltunga" i Hardanger
    id:
    0002
    path:
    UBIT/A-0360/U/L0001/0002
    unit_type:
    MAPPE
    institution:
    NTNU Universitetsbiblioteket
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/06a3f2dc-326b-4839-95ee-ba9589355e1e
  9. urn:
    2678adc5-7dcb-49c2-a381-94863d3448b5
    name:
    Tegning
    id:
    0011
    path:
    AFM/FIA-1038/T/L0007/0011
    unit_type:
    MAPPE
    institution:
    Museene i Akershus
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/2678adc5-7dcb-49c2-a381-94863d3448b5
  10. urn:
    ec31419f-2fe8-40cd-a038-3ced6b32af8d
    name:
    Ekely
    id:
    0004
    path:
    OBA/A-20051/Dc/L0075/0002/0004
    unit_type:
    DOKUMENT
    institution:
    Oslo byarkiv
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/ec31419f-2fe8-40cd-a038-3ced6b32af8d
  11. urn:
    22eaab2c-b849-48ce-ace2-0bce55de50d6
    name:
    Foto
    id:
    0010
    path:
    GDM/D-A-00230/U/0010
    unit_type:
    MAPPE
    institution:
    Gudbrandsdalsmusea AS
    digitized_documents:
    0
    link:
    https://www.arkivportalen.no/entity/22eaab2c-b849-48ce-ace2-0bce55de50d6
Will you use the result in generated code?

Open the same result as JSON

Is data missing or incorrect? Send feedback about this result.

Continue exploring

How an AI agent should use this page

Ground rule: Navigate with HTML GET links to keep explanations and relationships. Use the page's JSON alternative only when concrete values must be extracted, compared or computed.

How to use the search_archives lookup

  1. Replace the placeholders in the HTML GET template; remove optional parameters you do not need.
  2. Check types, units, limits and ID formats in the parameter table.
  3. Follow linked results to canonical pages before combining sources.

Misreading to avoid: An empty list means "no results for this lookup". An error message or unavailable source does not mean the data does not exist.

Source-specific next step

Go to the source page for other operations. Use the JSON template only after the HTML result shows that the parameters and source are correct.