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-12-04T20:04:51Z in 0.588 seconds.

total:
17
page:
0
size:
25
items:

17 results

  1. id:
    ed52ba7797b1619108528a058728e326
    urn:
    URN:NBN:no-nb_digavis_dagbladet_null_null_20250204_157_29_1
    title:
    Dagbladet (Oslo: 1869-) Dagbladet
    creators:
    not reported by source
    year:
    2025
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_dagbladet_null_null_20250204_157_29_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/ed52ba7797b1619108528a058728e326
    date:
    2025-02-04
  2. id:
    0398f09830f666c83eea5c1db6c94011
    urn:
    URN:NBN:no-nb_digavis_osthavet_null_null_20081105_13_44_1
    title:
    Østhavet
    creators:
    not reported by source
    year:
    2008
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Finnmark
    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_osthavet_null_null_20081105_13_44_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/0398f09830f666c83eea5c1db6c94011
    date:
    2008-11-05
  3. id:
    43f8138dc00075bd81a682dc2934e349
    urn:
    URN:NBN:no-nb_digitidsskrift_2022102483300_001
    title:
    Næringseiendom (trykt utg.). 2022 Nr. 4
    creators:
    not reported by source
    year:
    2022
    publisher:
    Estate 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_digitidsskrift_2022102483300_001_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/43f8138dc00075bd81a682dc2934e349
  4. id:
    f559e9337f9cc9139c88d07e6123b926
    urn:
    URN:NBN:no-nb_digavis_finnmarken_null_null_20111022_113_245_1
    title:
    Finnmarken (Vardø: 1945-)
    creators:
    not reported by source
    year:
    2011
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Finnmark
    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_finnmarken_null_null_20111022_113_245_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/f559e9337f9cc9139c88d07e6123b926
    date:
    2011-10-22
  5. id:
    33988df9e0eb355df093c0720953f71c
    urn:
    URN:NBN:no-nb_digavis_finansavisen_null_null_20090622_160_140_1
    title:
    Finansavisen
    creators:
    not reported by source
    year:
    2009
    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_finansavisen_null_null_20090622_160_140_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/33988df9e0eb355df093c0720953f71c
    date:
    2009-06-22
  6. id:
    957989166a237785074050b336bd54db
    urn:
    URN:NBN:no-nb_digavis_ringsakerblad_null_null_20250207_90_11_1
    title:
    Ringsaker Blad
    creators:
    not reported by source
    year:
    2025
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    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_ringsakerblad_null_null_20250207_90_11_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/957989166a237785074050b336bd54db
    date:
    2025-02-07
  7. id:
    519a9166e59080b1a2862bf46db0300d
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090622_150_277_1
    title:
    Aftenposten Aftenposten [1.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090622_150_277_1-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/519a9166e59080b1a2862bf46db0300d
    date:
    2009-06-22
  8. id:
    e2118edf235cb185a74531916413e1c3
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090622_150_277_2
    title:
    Aftenposten Aftenposten [2.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090622_150_277_2-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/e2118edf235cb185a74531916413e1c3
    date:
    2009-06-22
  9. id:
    d98247d2c0379135777b13fc29989e21
    urn:
    URN:NBN:no-nb_digavis_romerikesblad_null_null_20101021_109_243_1
    title:
    Romerikes Blad
    creators:
    not reported by source
    year:
    2010
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    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_romerikesblad_null_null_20101021_109_243_1-1_001_null/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/d98247d2c0379135777b13fc29989e21
    date:
    2010-10-21
  10. id:
    a380230c1a73a4fcbb47ac412c72f1b2
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090618_150_271_2
    title:
    Aftenposten Aftenposten [2.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090618_150_271_2-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/a380230c1a73a4fcbb47ac412c72f1b2
    date:
    2009-06-18
  11. id:
    4475a7cfc7b67e3087007c8b7a55d075
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090618_150_271_1
    title:
    Aftenposten Aftenposten [1.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090618_150_271_1-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/4475a7cfc7b67e3087007c8b7a55d075
    date:
    2009-06-18
  12. id:
    841b4e529637d16e6e35fe1d96670cdc
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090619_150_273_1
    title:
    Aftenposten A-magasinet Aftenposten [1.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090619_150_273_1-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/841b4e529637d16e6e35fe1d96670cdc
    date:
    2009-06-19
  13. id:
    3ef66bd52932b08e7575b9e679103e0d
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090619_150_273_2
    title:
    Aftenposten A-magasinet Aftenposten [2.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20090619_150_273_2-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/3ef66bd52932b08e7575b9e679103e0d
    date:
    2009-06-19
  14. id:
    1ec7da50b47fc69956700018dbb1d1f1
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20091008_150_420_1
    title:
    Aftenposten Aftenposten [1.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20091008_150_420_1-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/1ec7da50b47fc69956700018dbb1d1f1
    date:
    2009-10-08
  15. id:
    9aec91cef16e77ec9dd420a1be9a79b6
    urn:
    URN:NBN:no-nb_digavis_aftenposten_morgen_1_20091008_150_420_2
    title:
    Aftenposten Aftenposten [2.versjon]
    creators:
    not reported by source
    year:
    2009
    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:
    LIBRARY
    thumbnail:
    https://www.nb.no/services/image/resolver/URN:NBN:no-nb_digavis_aftenposten_morgen_1_20091008_150_420_2-1_001_foersteside/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/9aec91cef16e77ec9dd420a1be9a79b6
    date:
    2009-10-08
  16. id:
    0b4ec72f6bcace55293afbf8c0901466
    urn:
    URN:NBN:no-nb_digavis_adresseavisen_null_null_20181222_252_298_1
    title:
    Adresseavisen
    creators:
    not reported by source
    year:
    2018
    publisher:
    not reported by source
    media_types:

    1 results

    1. aviser
    languages:

    1 results

    1. nob
    county:
    Trøndelag
    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_adresseavisen_null_null_20181222_252_298_1-1_001_hovedavis/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/0b4ec72f6bcace55293afbf8c0901466
    date:
    2018-12-22
  17. id:
    62c689f096fe88d407945b88fbddcd57
    urn:
    URN:NBN:no-nb_digibok_2025052607006
    title:
    Mens jeg sov
    creators:

    2 results

    1. Atkins, Dani
    2. Winger, Cecilie
    year:
    2021
    publisher:
    Aschehoug
    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_2025052607006_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/62c689f096fe88d407945b88fbddcd57
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.