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.

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": "..."}
}
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-08-03T02:48:46Z in 0.283 seconds.

total:
94086
page:
0
size:
10
items:

10 results

  1. id:
    79fd2de807b9a52d2ce6cddd6379b0be
    urn:
    URN:NBN:no-nb_digibok_2011121906007
    title:
    Sandarslekten Klaveness
    creators:

    1 results

    1. Klaveness, Thv
    year:
    1951
    publisher:
    Cammermeyer
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. nob
    county:
    Vestfold
    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_2011121906007_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/79fd2de807b9a52d2ce6cddd6379b0be
  2. id:
    d86658a5709805f70c9a2280acd5a9bc
    urn:
    URN:NBN:no-nb_digibok_2011051604025
    title:
    Slegten Klaveness af Sandeherred i 300 aar
    creators:

    1 results

    1. Finne-Grønn, S.H. (Stian Herlofsen)
    year:
    1902
    publisher:
    [s.n.]
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. nob
    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_2011051604025_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/d86658a5709805f70c9a2280acd5a9bc
  3. id:
    5e179f0feb4212ab1c35d968a6d1f25b
    urn:
    URN:NBN:no-nb_digibok_2015012208130
    title:
    Fredrik Ramm : en minnebok
    creators:

    2 results

    1. Engelstad, Carl Fredrik
    2. Ramm, Fredrik
    year:
    1946
    publisher:
    Land og kirke
    media_types:

    1 results

    1. bøker
    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_digibok_2015012208130_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/5e179f0feb4212ab1c35d968a6d1f25b
  4. id:
    5043a8870d14d4615df7c644f7165fd3
    urn:
    URN:NBN:no-nb_digiebok_94
    title:
    Rederiet A.F. Klaveness & Co. A/S : fra vekst til fall gjennom 200 år
    creators:

    1 results

    1. Andersen, Otto H. Næsgård
    year:
    2011
    publisher:
    O.H. Næsgård Andersen
    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_digiebok_94_0001/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/5043a8870d14d4615df7c644f7165fd3
  5. id:
    0d706e84b735b52cb248717b44fa15e1
    urn:
    URN:NBN:no-nb_digibok_2014071808067
    title:
    Slektsbok etter Christian Olsen Mørk
    creators:

    1 results

    1. Sveaas, Per Auen
    year:
    2005
    publisher:
    P.A. Sveaas
    media_types:

    1 results

    1. bøker
    languages:

    3 results

    1. eng
    2. nob
    3. mul
    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_digibok_2014071808067_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/0d706e84b735b52cb248717b44fa15e1
  6. id:
    3b0211e66edbabf66eddbeaf4b5bc003
    urn:
    URN:NBN:no-nb_digibok_2011070108113
    title:
    Christian Sinding
    creators:

    1 results

    1. Vollestad, Per
    year:
    2005
    publisher:
    Solum
    media_types:

    1 results

    1. bøker
    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_digibok_2011070108113_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/3b0211e66edbabf66eddbeaf4b5bc003
  7. id:
    a5c4550d5f021dcdeb3ba3e32fec0a70
    urn:
    URN:NBN:no-nb_digibok_2010111205015
    title:
    Professor Fredrik Petersen og hans samtid
    creators:

    1 results

    1. Selmer, Ludvig
    year:
    1948
    publisher:
    Land og kirke
    media_types:

    1 results

    1. bøker
    languages:

    1 results

    1. nob
    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_2010111205015_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/a5c4550d5f021dcdeb3ba3e32fec0a70
  8. id:
    44ab83ac8b37e4ae6ced017f00d1a3f3
    urn:
    URN:NBN:no-nb_digibok_2015070108085
    title:
    Christian Krohgs portretter
    creators:

    3 results

    1. Thue, Oscar
    2. Riksantikvaren
    3. Krohg, Christian
    year:
    1971
    publisher:
    Gyldendal
    media_types:

    1 results

    1. bøker
    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_digibok_2015070108085_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/44ab83ac8b37e4ae6ced017f00d1a3f3
  9. id:
    0b58ff4264a2c6b619bfed3633bb729f
    urn:
    not reported by source
    title:
    "Kjødets opstandelse"
    creators:

    1 results

    1. Klaveness, Fredrik
    year:
    1916
    publisher:
    not reported by source
    media_types:

    1 results

    1. artikler
    languages:

    1 results

    1. nob
    county:
    not reported by source
    digital:
    no
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/0b58ff4264a2c6b619bfed3633bb729f
  10. id:
    5988e0e27953e53768136b38bb6cf7a5
    urn:
    URN:NBN:no-nb_digibok_2013072306107
    title:
    Konsul Fredrik Høsts tegninger : Sandefjord i 1840-50 årene
    creators:

    3 results

    1. Høst, Fredrik
    2. Sørensen, Marianne
    3. Sandefjordmuseene
    year:
    2007
    publisher:
    Sandefjordmuseene
    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_2013072306107_C1/full/0,128/0/native.jpg
    viewer_url:
    https://www.nb.no/items/5988e0e27953e53768136b38bb6cf7a5
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

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.