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: string, optional, default None; page: integer, optional, default 0; size: integer, optional, default 10; 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}&page=0&size=10&limit=25&offset=0

Replace {q}, {media_type}, {language}, {county}, {year_from}, {year_to}, {digital_only}, {sort}, {page}, {size} 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}&page=0&size=10&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).
pageoptionalintegerZero-based page index.
sizeoptionalintegerResults per page, 1 to 100 (default 10).
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}&page=0&size=10&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}&page=0&size=10&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}&page=0&size=10&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: string. One of date, title, otherid, firstDigitalContentTime, optionally suffixed ",desc" (default: relevance).
Type: integer. Zero-based page index.
Type: integer. Results per page, 1 to 100 (default 10).

Result

Source: National Library of Norway. Retrieved 2026-09-13T07:29:58Z in 0.232 seconds.

total:
21
page:
0
size:
10
items:

10 results

  1. id:
    b97447f5739010a047190325733e5aec
    urn:
    URN:NBN:no-nb_plikttidsskrift_1f8ef6cf-7d71-491b-90b2-1e04120250f5
    title:
    Retailmagasinet. 2023 Vol. 21 Nr. 5
    creators:
    not reported by source
    year:
    2023
    publisher:
    Ask 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_1f8ef6cf-7d71-491b-90b2-1e04120250f5_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/b97447f5739010a047190325733e5aec
  2. id:
    725ce010935ce98ee24e8175fa775a8d
    urn:
    URN:NBN:no-nb_digibok_2020120128010
    title:
    Genesis, ex sermone Hebræo in Latinum translata, notatione brevi praecipuae lectionum et interpretationum diversitatis addita : secundum Schotti et Winzeri versionem librorum sacrorum antique foederis, in useum studiosæ juventutis seorsim edita
    creators:

    2 results

    1. Winther, Hans Thøger
    2. Hartmann, Søren August Wilhelm
    year:
    1829
    publisher:
    Sumtibus et in Officina Ioannis T. Wintheri, typis excudit Hartmannus
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2020120128010_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/725ce010935ce98ee24e8175fa775a8d
  3. id:
    6cc919629127539ac4eb6f91e2ce6187
    urn:
    URN:NBN:no-nb_digibok_2015012128001
    title:
    Tragoediae dvae : qvarum prima Didonis, altera Turni ex Virgilij Aeneide transcriptae
    creators:

    1 results

    1. Wolf, Jacob Jacobsen
    year:
    1591
    publisher:
    Typis Matthiae Vinitoris
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2015012128001_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/6cc919629127539ac4eb6f91e2ce6187
  4. id:
    b1bc89f970b0434cdb0564d0c6644dce
    urn:
    URN:NBN:no-nb_digibok_2017091826003
    title:
    Hug. Grotii Poemata omnia
    creators:

    1 results

    1. Grotius, Hugo
    year:
    1645
    publisher:
    Apud Hieronimum de Vogel
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2017091826003_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/b1bc89f970b0434cdb0564d0c6644dce
  5. id:
    a6e41a9c4da49d2284dad49ff62e5e31
    urn:
    URN:NBN:no-nb_digibok_2013081324019
    title:
    Lazari Bayfii annotationes in L. II de captivis, et postliminio reversis, in quibus tractatur de re navali ; Eiusdem annotationes in tractatum De auro & argento leg. quibus, Vestimentorum, & Vasculorum genera explicantur. Antonii Thylesii De coloribus libellus, à coloribus vestium non alienus
    creators:

    2 results

    1. Baïf, Lazare de
    2. Estienne, Robert
    year:
    1536
    publisher:
    Ex officina Rob. Stephani
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2013081324019_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/a6e41a9c4da49d2284dad49ff62e5e31
  6. id:
    24f2ddf3cf07d484e5be4cdadab1399b
    urn:
    URN:NBN:no-nb_digibok_2015090427001
    title:
    Evangeliorvm Dominicalivm et Festivalium Anniversariorvm. Paraphrasis Varijs carminum generibus exposita
    creators:

    1 results

    1. Hallvard Gunnarsson
    year:
    1603
    publisher:
    Typis Myliandrinis
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2015090427001_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/24f2ddf3cf07d484e5be4cdadab1399b
  7. id:
    0df7dfc53b4839e83cef569c924e49a7
    urn:
    URN:NBN:no-nb_digibok_2016031826001
    title:
    Bertili Canuti Epistolarum centuria auspicalis : in qua aeternas lacrimas sacris suae cineribus reliquit
    creators:

    1 results

    1. Aqvilonius, Bertel Knudsen
    year:
    1617
    publisher:
    Ex officinâ typographica Georgii Kelneri
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2016031826001_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/0df7dfc53b4839e83cef569c924e49a7
  8. id:
    30bc34346587771d91e4972ee7d0ff68
    urn:
    URN:NBN:no-nb_digibok_2014071728003
    title:
    Siælens Sang-Offer. Gudelige Sange paa de fornemste Fæster om Syndernis Forladelse, Fortrøstning paa Guds Naade, mod Fortviflelse, Utaalmodighed, og saa fremdelis: med Afften og Morgen-Sang i Tallet 42 Morgen og Afften-Suk til hver Dag i Ugen, slutted med en Morgen og Afften Bøn. Enfoldig ved Guds Naade sammensat aff den Der Er Dig Høye Himmel-Gud som sin Siælis Brudgom, all Ære og Tieneste Skyldig
    creators:

    2 results

    1. Dorothe Engelbretsdatter
    2. Treubler, Johann Friedrich
    year:
    1685
    publisher:
    Prentet i ...
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. dan
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2014071728003_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/30bc34346587771d91e4972ee7d0ff68
  9. id:
    191a4ff1cbfc1a23e246709f10a3c10b
    urn:
    URN:NBN:no-nb_digibok_2013091724010
    title:
    Sermones beati Ephrem
    creators:

    3 results

    1. Ephraem Syrus
    2. Pensi, Cristoforo de'
    3. Traversari, Ambrogio
    year:
    1501
    publisher:
    Impressum per Christophorum de pensiis
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2013091724010_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/191a4ff1cbfc1a23e246709f10a3c10b
  10. id:
    9cd7dbc565257c3590c5be69bc555501
    urn:
    URN:NBN:no-nb_digibok_2015010826002
    title:
    Alexipharmacon Adversus Desperationis Pestem : Eivsque Cavsas ex Myropolio coelesti Sacrae Scripturae compositum & ex BB. Patrum hortis edulcatum
    creators:

    1 results

    1. Arctander, Niels Lauridsen
    year:
    1611
    publisher:
    Typis Wechelianis apud haeredes Ioan. Aubrii
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. lat
    county:
    not reported by source
    digital:
    yes
    public_domain:
    yes
    license:
    publicdomain
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2015010826002_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/9cd7dbc565257c3590c5be69bc555501
limit:
25
offset:
0
returned:
10
has_more_results:
yes
truncated:
yes
next_offset:
10
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.