search

Search the National Library's catalog - books, newspapers, journals, photos, maps, music, manuscripts, radio/TV and more, both physical and digitized. Digitized text (OCR) is matched too by default, so a query can surface newspaper or book pages that mention a term even when it's not in the title.

Signature: search(q: string, required; media_type: string, optional, default None; language: string, optional, default None; county: string, optional, default None; year_from: integer, optional, default None; year_to: integer, optional, default None; digital_only: yes/no, optional, default False; sort: one of: date, date,desc, title, title,desc, otherid, otherid,desc, firstDigitalContentTime, firstDigitalContentTime,desc, optional, default None; 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/nasjonalbiblioteket/search/?q={q}&media_type={media_type}&language={language}&county={county}&year_from={year_from}&year_to={year_to}&digital_only=false&sort={sort}&limit=25&offset=0

Replace {q}, {media_type}, {language}, {county}, {year_from}, {year_to}, {digital_only}, {sort} 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/nasjonalbiblioteket/search?q={q}&media_type={media_type}&language={language}&county={county}&year_from={year_from}&year_to={year_to}&digital_only=false&sort={sort}&limit=25&offset=0. Open this exact request as JSON.

ParameterRequirementJSON typeDescription
qrequiredstringFree-text query. Supports field-restricted terms too, e.g. "subject:fiske year:1970" combined with free text.
media_typeoptionalunionRestrict to one type, e.g. aviser (newspapers), bøker (books), tidsskrift (journals), bilder (photos), musikk, kart (maps), film, plakater (posters), noter (sheet music), radio, fjernsyn. See get_aggregations(q="*", group_by="mediatype") for the full list with counts.
languageoptionalunionLanguage filter - values are inconsistent in the catalog (mixes codes like "nob" and labels like "Norsk bokmål"); check get_aggregations(q=q, group_by="languages") first if unsure.
countyoptionalunionNorwegian county name, e.g. "Troms", "Oslo".
year_fromoptionalunionRestrict to items published/issued in this year range (inclusive).
year_tooptionalunionRestrict to items published/issued in this year range (inclusive).
digital_onlyoptionalbooleanOnly items that have been digitized.
sortoptionalunionOne of date, title, otherid, firstDigitalContentTime, optionally suffixed ",desc" (default: relevance).
limitoptionalintegerGateway page size; 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/nasjonalbiblioteket/search?q={q}&media_type={media_type}&language={language}&county={county}&year_from={year_from}&year_to={year_to}&digital_only=false&sort={sort}&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/nasjonalbiblioteket/search?q={q}&media_type={media_type}&language={language}&county={county}&year_from={year_from}&year_to={year_to}&digital_only=false&sort={sort}&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/nasjonalbiblioteket/search?q={q}&media_type={media_type}&language={language}&county={county}&year_from={year_from}&year_to={year_to}&digital_only=false&sort={sort}&limit=25&offset=0"
with urlopen(url) as response:
    result = json.load(response)
data = result["data"]

Response structure

{
  "source": "nasjonalbiblioteket",
  "operation": "search",
  "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 query. Supports field-restricted terms too, e.g. "subject:fiske year:1970" combined with free text.
Type: string. Restrict to one type, e.g. aviser (newspapers), bøker (books), tidsskrift (journals), bilder (photos), musikk, kart (maps), film, plakater (posters), noter (sheet music), radio, fjernsyn. See get_aggregations(q="*", group_by="mediatype") for the full list with counts.
Type: string. Language filter - values are inconsistent in the catalog (mixes codes like "nob" and labels like "Norsk bokmål"); check get_aggregations(q=q, group_by="languages") first if unsure.
Type: string. Norwegian county name, e.g. "Troms", "Oslo".
Type: integer. Restrict to items published/issued in this year range (inclusive).
Type: integer. Restrict to items published/issued in this year range (inclusive).
Type: yes/no. Only items that have been digitized.
Type: one of: date, date,desc, title, title,desc, otherid, otherid,desc, firstDigitalContentTime, firstDigitalContentTime,desc. One of date, title, otherid, firstDigitalContentTime, optionally suffixed ",desc" (default: relevance).

Result

Source: National Library of Norway. Retrieved 2026-11-19T03:38:33Z in 0.206 seconds.

total:
11
page:
0
size:
25
items:

11 results

  1. id:
    2569f8fd7833550a9d6210107102ff6c
    urn:
    URN:NBN:no-nb_digavis_akershusamtstidende_null_null_20251201_151_140_1
    title:
    Akershus Amtstidende
    creators:
    not reported by source
    year:
    2025
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Akershus
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_akershusamtstidende_null_null_20251201_151_140_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/2569f8fd7833550a9d6210107102ff6c
    date:
    2025-12-01
  2. id:
    6b526418d8edc30122f4bd4aa1849cbb
    urn:
    URN:NBN:no-nb_plikttidsskrift_d07173d6-1a12-4305-8c75-59218fcd5113
    title:
    EL-nytt (Oslo : 2001 : online) : nyheter om energibransjen i inn- og utland - to ganger hver uke. 2026 Vol. 26 Nr. 21
    creators:
    not reported by source
    year:
    2026
    publisher:
    El-nytt
    media_types:

    1 results

    1. tidsskrift
    languages:

    1 results

    1. nob
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_plikttidsskrift_d07173d6-1a12-4305-8c75-59218fcd5113_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/6b526418d8edc30122f4bd4aa1849cbb
  3. id:
    defb966110e42871449c2e4b7410ef90
    urn:
    URN:NBN:no-nb_digavis_tiden_null_null_19190523_14_118_1
    title:
    Tiden (Arendal: 1906-1941, 1945-)
    creators:
    not reported by source
    year:
    1919
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. Norsk bokmål
    county:
    Agder
    digital:
    yes
    public_domain:
    no
    license:
    ccbyncnd
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_tiden_null_null_19190523_14_118_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/defb966110e42871449c2e4b7410ef90
    date:
    1919-05-23
  4. id:
    9ab343c253691c50e9676f45bc34e7e6
    urn:
    URN:NBN:no-nb_digavis_gudbrandsdolendagnin_null_null_20251016_188_120_1
    title:
    Gudbrandsdølen Dagningen
    creators:
    not reported by source
    year:
    2025
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. Norsk bokmål
    county:
    Innlandet
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_gudbrandsdolendagnin_null_null_20251016_188_120_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/9ab343c253691c50e9676f45bc34e7e6
    date:
    2025-10-16
  5. id:
    5726d50a2f7a685234a26dee4bbcd027
    urn:
    URN:NBN:no-nb_digitidsskrift_2025102383098_001
    title:
    Muskel & skjelett (trykt utg.). 2025 Vol. 40 Nr. 3
    creators:

    2 results

    1. Norsk fysioterapeutforbund Faggruppen for manuell terapi
    2. Manuellterapeutenes servicekontor
    year:
    2025
    publisher:
    Manuellterapeutenes servicekontor
    media_types:

    1 results

    1. tidsskrift
    languages:

    1 results

    1. nob
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digitidsskrift_2025102383098_001_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/5726d50a2f7a685234a26dee4bbcd027
  6. id:
    34b2bd7454621995f16a71a3e46a3e86
    urn:
    URN:NBN:no-nb_digavis_akershusamtstidende_null_null_20260424_152_47_1
    title:
    Akershus Amtstidende
    creators:
    not reported by source
    year:
    2026
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Akershus
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_akershusamtstidende_null_null_20260424_152_47_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/34b2bd7454621995f16a71a3e46a3e86
    date:
    2026-04-24
  7. id:
    9426c4e5b90ebd79fb3f57b2bd693343
    urn:
    URN:NBN:no-nb_digavis_gudbrandsdolendagnin_null_null_20260507_189_51_1
    title:
    Gudbrandsdølen Dagningen
    creators:
    not reported by source
    year:
    2026
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. Norsk bokmål
    county:
    Innlandet
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_gudbrandsdolendagnin_null_null_20260507_189_51_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/9426c4e5b90ebd79fb3f57b2bd693343
    date:
    2026-05-07
  8. id:
    3dcef970822f1c8bd598912041932a81
    urn:
    URN:NBN:no-nb_digavis_gudbrandsdolendagnin_null_null_20250612_188_66_1
    title:
    Gudbrandsdølen Dagningen
    creators:
    not reported by source
    year:
    2025
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. Norsk bokmål
    county:
    Innlandet
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_gudbrandsdolendagnin_null_null_20250612_188_66_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/3dcef970822f1c8bd598912041932a81
    date:
    2025-06-12
  9. id:
    fb117f4fd3a49c3f959d827a4dc32903
    urn:
    URN:NBN:no-nb_plikttidsskrift_000015202
    title:
    Kapital : tidsskrift for næringsliv, børs og økonomisk politikk. 2026 Nr. 29
    creators:
    not reported by source
    year:
    2026
    publisher:
    Hegnar media
    media_types:

    1 results

    1. tidsskrift
    languages:

    1 results

    1. nob
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_plikttidsskrift_000015202_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/fb117f4fd3a49c3f959d827a4dc32903
  10. id:
    071af467c1f9fd13ddc45eb6545fb50b
    urn:
    URN:NBN:no-nb_digavis_bergenstidende_null_null_20251013_158_277_1
    title:
    Bergens Tidende
    creators:
    not reported by source
    year:
    2025
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Vestland
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_bergenstidende_null_null_20251013_158_277_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/071af467c1f9fd13ddc45eb6545fb50b
    date:
    2025-10-13
  11. id:
    2f635430f3f6e7dacf49135ec7076f57
    urn:
    URN:NBN:no-nb_plikttidsskrift_f2e1aff0-cb86-466f-a85c-639cbbc51ef4
    title:
    Tidsskrift for Den norske legeforening (trykt utg.) : The Journal of the Norwegian Medical Association. 2025 Vol. 145 Nr. 15
    creators:

    2 results

    1. Den Norske lægeforening
    2. Den Norske legeforening
    year:
    2025
    publisher:
    Den norske legeforening
    media_types:

    1 results

    1. tidsskrift
    languages:

    3 results

    1. eng
    2. nob
    3. mul
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_plikttidsskrift_f2e1aff0-cb86-466f-a85c-639cbbc51ef4_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/2f635430f3f6e7dacf49135ec7076f57
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 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.