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.
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 |
http://libris.kb.se/xsearch?query=forf:(Ludwig+Wittgenstein)&format=dc
http://libris.kb.se/xsearch?query=W.V.+Quine&format=json
http://libris.kb.se/xsearch?query=Rudolf+Carnap&format=mods&holdings=true&n=50
http://libris.kb.se/xsearch?query=amne:Philosophy&order=alphabetical
Copyright © LIBRIS - National Library Systems