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-27T14:35:18Z in 0.198 seconds.

total:
3250
page:
0
size:
10
items:

10 results

  1. id:
    ac68fe3af488fd670d445578425bb81c
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_7035537003364_01_0003
    title:
    Relax (Selecta Radio)
    creators:

    9 results

    1. Brisby & Jingles
    2. DJ Selecta
    3. Eikam, Frank
    4. Gill, Peter
    5. Johnson, William
    6. Miloud
    7. O Toole, Mark William
    8. Riebenstahl, Jörn
    9. Waldt, Dirk
    year:
    20120810
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/ac68fe3af488fd670d445578425bb81c
  2. id:
    07f91a2e087231449ca41253714f3477
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_7035537003364_01_0006
    title:
    Relax (Selecta Remix)
    creators:

    9 results

    1. Brisby & Jingles
    2. DJ Selecta
    3. Eikam, Frank
    4. Gill, Peter
    5. Johnson, William
    6. Miloud
    7. O Toole, Mark William
    8. Riebenstahl, Jörn
    9. Waldt, Dirk
    year:
    20120810
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/07f91a2e087231449ca41253714f3477
  3. id:
    ba4ade3d0634f769126ae6f2efefc2d2
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_7035537002961_01_0003
    title:
    Reach Up (DJ Selecta Remix Edit)
    creators:

    5 results

    1. VAN SNYDER
    2. Corbett, Matthew
    3. DJ Selecta
    4. Kis, Imre
    5. Wilkie, Mike
    year:
    20120430
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/ba4ade3d0634f769126ae6f2efefc2d2
  4. id:
    a7352956b4c718081b417a58a21924d6
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_4260203780444_01_0006
    title:
    DJ Bitch (Selecta Remix) : Selecta Remix
    creators:

    4 results

    1. E- Rockaz
    2. Praper, Benjamin
    3. Schulz, Markus Ho
    4. Umfogl, Daniel
    year:
    20121228
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/a7352956b4c718081b417a58a21924d6
  5. id:
    d12e63fdc35a942e3c7ad9e21a326dd0
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_7035537004965_01_0010
    title:
    Cambodia (Selecta & MNS Remix) : Selecta & MNS Remix
    creators:

    3 results

    1. Pulsedriver
    2. Wilde, M.
    3. Wilde, R.
    year:
    20130621
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/d12e63fdc35a942e3c7ad9e21a326dd0
  6. id:
    7cf1f72ece0946fcd35b921e6d854acc
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_7035537004088_01_0004
    title:
    Hello (DJ Selecta Remix) : DJ Selecta Remix
    creators:

    5 results

    1. Royal XTC
    2. Adam, Thomas
    3. Molti
    4. Schulz, Markus
    5. Summerville, Johnny „JR“
    year:
    20121109
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/7cf1f72ece0946fcd35b921e6d854acc
  7. id:
    7d0ca78eeb9f54b26f84327dc24ac321
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_4260128690729_01_0004
    title:
    No Alternative (Again) (Selecta Remix) : Selecta Remix
    creators:

    5 results

    1. Amfree
    2. Frog, Jay
    3. Tichelaar, Bas
    4. Verkerk, Robert
    5. Walter, Astrid
    year:
    20120317
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/7d0ca78eeb9f54b26f84327dc24ac321
  8. id:
    6509b58a0b1646247b5157d1d5e1d9ed
    urn:
    URN:NBN:no-nb_pliktmusikk_UPC_196626204332_01_0002
    title:
    Relax : Selecta Remix
    creators:

    6 results

    1. Brisby & Jingles
    2. Gill, Peter
    3. Johnson, William
    4. O’Toole, Mark William
    5. Riebenstahl, Jörn
    6. Waldt, Dirk
    year:
    20110912
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. eng
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/6509b58a0b1646247b5157d1d5e1d9ed
  9. id:
    48a6f4c5bfad9ea21fdbbe561c35870e
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_7035537009168_01_0003
    title:
    Firestarter : Selecta Remix
    creators:

    13 results

    1. Darius & Finlay & NICCO
    2. Börjesson, Jonathan
    3. Darius
    4. Finlay
    5. Gmachl, H.
    6. Julio, Bonito
    7. Le Brisc
    8. Lemberg, Jonas
    9. Macalvo, Claudia
    10. Macalvo, Claudio
    11. Maniatty, Nicco
    12. Martinsson, Robin
    13. Tilgner, Kristian
    year:
    20150508
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/48a6f4c5bfad9ea21fdbbe561c35870e
  10. id:
    0105f6f8b3d7cfe54e1bafda8735c040
    urn:
    URN:NBN:no-nb_pliktmusikk_EAN_4260203782226_01_0004
    title:
    Duckface : Selecta Remix
    creators:

    3 results

    1. R&R Project
    2. Bate, Shaun
    3. Dörsam, Marvin
    year:
    20150731
    publisher:
    DJ Beat Records
    media_types:

    1 results

    1. musikk
    languages:

    1 results

    1. und
    county:
    not reported by source
    digital:
    yes
    public_domain:
    no
    license:
    copyrighted
    viewability:
    NONE
    access_allowed_from:
    NB
    thumbnail:
    not reported by source
    viewer_url:
    https://www.nb.no/items/0105f6f8b3d7cfe54e1bafda8735c040
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.