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-15T06:55:46Z in 0.239 seconds.

total:
12
page:
0
size:
25
items:

12 results

  1. id:
    654b11946b249b849abf64b69dc1deaa
    urn:
    URN:NBN:no-nb_digavis_morgenposten_null_null_19540126_62_21_1
    title:
    Morgenposten
    creators:
    not reported by source
    year:
    1954
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Oslo
    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_digavis_morgenposten_null_null_19540126_62_21_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/654b11946b249b849abf64b69dc1deaa
    date:
    1954-01-26
  2. id:
    74862df8ac48976359fd256522294272
    urn:
    URN:NBN:no-nb_digitidsskrift_2024041580040_001
    title:
    Røde kors avisen (Drammen) : Akershus : informasjonsavis fra Akershus røde kors. 2003 Nr. 1
    creators:

    1 results

    1. Akershus røde kors
    year:
    2003
    publisher:
    Akershus røde kors
    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_2024041580040_001_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/74862df8ac48976359fd256522294272
  3. id:
    8f7da58b022f6c32eae4164c76902a29
    urn:
    URN:NBN:no-nb_digibok_2024112848026
    title:
    The role of the omega-3 fatty acid biosynthetic products resolvin D1 and resolvin E1 in maintenance of ocular surface health
    creators:

    3 results

    1. Lippestad, Marit
    2. Universitetet i Oslo Det medisinske fakultet
    3. Universitetet i Oslo Institutt for klinisk medisin
    year:
    2020
    publisher:
    University of Oslo, Faculty of Medicine, Institute of Clinical Medicine
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. eng
    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_digibok_2024112848026_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/8f7da58b022f6c32eae4164c76902a29
  4. id:
    91368477c8fedaa569fa87b6c9f1840c
    urn:
    URN:NBN:no-nb_digavis_finansavisen_null_null_20220308_31_56_1
    title:
    Finansavisen
    creators:
    not reported by source
    year:
    2022
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. Norsk bokmål
    county:
    Oslo
    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_digavis_finansavisen_null_null_20220308_31_56_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/91368477c8fedaa569fa87b6c9f1840c
    date:
    2022-03-08
  5. id:
    37af61ac79474e523afeb7fa50756102
    urn:
    URN:NBN:no-nb_digitidsskrift_2015011980057_003
    title:
    Norsk militært tidsskrift (trykt utg.). 1992 Vol. 162 Nr. 4
    creators:
    not reported by source
    year:
    1992
    publisher:
    Oslo militære samfund
    media_types:

    1 results

    1. tidsskrift
    languages:

    1 results

    1. nob
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    bokhylla
    viewability:
    NONE
    access_allowed_from:
    NORWAY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digitidsskrift_2015011980057_003_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/37af61ac79474e523afeb7fa50756102
  6. id:
    81f9b856c4a83a5f7d5989c10ba14533
    urn:
    URN:NBN:no-nb_digavis_haugesundsdagblad_null_null_19680304_57_54_1
    title:
    Haugesunds Dagblad (Haugesund: 1912-1942, 1945-1973) Haugesunds Dagblad
    creators:
    not reported by source
    year:
    1968
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Rogaland
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    ALL
    access_allowed_from:
    EVERYWHERE
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_haugesundsdagblad_null_null_19680304_57_54_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/81f9b856c4a83a5f7d5989c10ba14533
    date:
    1968-03-04
  7. id:
    df843047176a54fb43bc0ebc8e03dc6a
    urn:
    URN:NBN:no-nb_digavis_budstikkaforaskerogb_null_null_20100205_113_29_1
    title:
    Budstikka (Asker og Bærum)
    creators:
    not reported by source
    year:
    2010
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. Norsk bokmål
    county:
    Akershus
    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_budstikkaforaskerogb_null_null_20100205_113_29_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/df843047176a54fb43bc0ebc8e03dc6a
    date:
    2010-02-05
  8. id:
    348e18e93b45af2b3ceb75e9071c53c1
    urn:
    URN:NBN:no-nb_digibok_2021110448514
    title:
    Skotske golfperler : 175 baner på 6 måneder
    creators:

    2 results

    1. Håland, Sigmund
    2. Nilssen, Tor
    year:
    2019
    publisher:
    Jæren forlag
    media_types:

    1 results

    1. bøker
    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_digibok_2021110448514_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/348e18e93b45af2b3ceb75e9071c53c1
  9. id:
    70a3106b7bcf5e9532880285405ccf0b
    urn:
    URN:NBN:no-nb_digavis_agderposten_null_null_20010612_127_131_1
    title:
    Agderposten
    creators:
    not reported by source
    year:
    2001
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Agder
    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_digavis_agderposten_null_null_20010612_127_131_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/70a3106b7bcf5e9532880285405ccf0b
    date:
    2001-06-12
  10. id:
    887f9be3f1c10091759cfabf88fa2351
    urn:
    URN:NBN:no-nb_digibok_2025102248012
    title:
    Optegnelser fra Sør-Varanger
    creators:

    1 results

    1. Wessel, A.B.
    year:
    1979
    publisher:
    Dagfinn Hansens trykkeri
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. nob
    county:
    Finnmark
    digital:
    yes
    public_domain:
    no
    license:
    bokhylla
    viewability:
    NONE
    access_allowed_from:
    NORWAY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digibok_2025102248012_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/887f9be3f1c10091759cfabf88fa2351
  11. id:
    597cde773c52bafe8862482eaa96d0a9
    urn:
    URN:NBN:no-nb_digitidsskrift_2025082280020_004
    title:
    Fagbladet CreditInform. 2010 Vol. 21 Nr. 4
    creators:

    2 results

    1. Creditinform
    2. Experian
    year:
    2010
    publisher:
    Experian
    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_2025082280020_004_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/597cde773c52bafe8862482eaa96d0a9
  12. id:
    8290f13b8441d3c8bcc5fa58415a41e0
    urn:
    URN:NBN:no-nb_digibok_2017051629001
    title:
    Finni Johannaei Historia ecclesiastica Islandiae : ex historiis, annalibus, legibus ecclesiasticis, aliisque rerum septentrionalium monumentis congesta, et constitutionibus regum, bullis pontificum romanorum, statutis conciliorum nationalium et synodorum provincialium, nec non archiepiscoporum et episcoporum epistolis, edictis et decretis magistratuum, multisque privatorum litteris et instrumentis maximam partem hactenus ineditis, illustrata. T. 2
    creators:

    1 results

    1. Finnur Jónsson
    year:
    1774
    publisher:
    Typis Orphanotrophii Regii, excudit Gerhardus Giese Salicath
    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_2017051629001_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/8290f13b8441d3c8bcc5fa58415a41e0
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.