Start

LIBRIS Help

 

Xsearch

Xsearch is a LIBRIS exclusive lightweight API. With Xsearch, it is possible to retrieve records from LIBRIS in a number of different formats. The Xsearch API is based on http calls that return either XML or text, depending on the chosen format. All formats are encoded in UTF-8. The basic URL for Xsearch is http://libris.kb.se/xsearch, to which the following parameters can be added.

Parameters

Name Values Default Description
query     Search query as defined by the query language.
format marcxml | mods | json | ris | dc | rdfdc | bibtex | refworks | harvard | oxford MARC-XML Preferred format. JSON is based on Dublin Core. RDFC is RDF combined with Dublin Core.
start   1 Specifies the starting position in a hitlist from which records should be taken.
n   10 The number of records to be retrieved, to a maximum of 200.
order rank | alphabetical | -alphabetical | chronological | -chronological rank How the hitlist should be sorted. An opening hyphen (as in ‘-alphabetical’) stands for sorting in reverse order.
format_level brief | full brief Specifies whether “see” or ”see also” links to authority forms (9XX fields) should be included.
holdings true | false false Specifies whether holding information should be included. Works only with the marcxml and mods formats.
database libris | swepub libris Specifies the database to search

Examples

Search for “Ludwig Wittgenstein” as author in Dublin Core format

http://libris.kb.se/xsearch?query=forf:(Ludwig+Wittgenstein)&format=dc

Search for “W.V. Quine” in JSON format

http://libris.kb.se/xsearch?query=W.V.+Quine&format=json

Search for “Rudolf Carnap” 50 hits with holding information in MODS format

http://libris.kb.se/xsearch?query=Rudolf+Carnap&format=mods&holdings=true&n=50

Search for subject “Philosophy”, with hit list sorted in alphabetic order, in MARC-XML format

http://libris.kb.se/xsearch?query=amne:Philosophy&order=alphabetical

More information about the formats

Copyright © LIBRIS - National Library Systems