Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameValue(s)RequiredRepeatableDefault valueDescription
Acceptapplication/json
application/xml
*/*
yesnoapplication/jsonSpecifies the format of the accepted data. Every request needs to be sent with a valid Accept Header defining the requested response format. Otherwise the response to the request will be a 406 - Not acceptable status code. If the request accepts every kind of data (Accept: */*) JSON will be returned.
AuthorizationOAuth oauth_consumer_key="<API key>"yesnoAn API key is mandatory for data access. You may enclose it by either sending it as Query Parameter or (as mentioned here) in the Request Header.
Hostapi.deutsche-digitale-bibliothek.deyesnoThe host is mandatory.
Noprint
Section

Back To Top

Parameters

Path

ParameterValue(s)RequiredRepeatableDefault valueDescription
identifier<item-ID>yesnoThe ID of the requested item.

...

ParameterValue(s)RequiredRepeatableDefault valueDescription
oauth_consumer_key<API key>yesnoAn API key is mandatory for data access. You may enclose it by either sending it as Query Parameter or (as mentioned here) in the Request Header.
Noprint
Section

Back To Top

Authorization

This method needs an API key for authentication (Who are you?) and authorization (What you are authorized to do?). For more information please read the Authorization How-To.

This method is offered over HTTP and HTTP Secure.

Noprint
Section

Back To Top

Errors

CodeTextDescription
403
Forbidden 
Item is not available via API (items can be blacklisted because of copyright issues)
404Not FoundEither the item does not exist or has no data.
406Not AcceptableThe Request Header is not acceptable. Please see section Request Header.
500Server ErrorSomething went terribly wrong. An error message will provide a meaningful description.
Noprint
Section

Back To Top

Samples

Request 1

Code Block
languagetext
GET /items/OAXO2AGT7YH35YYHN3YKBXJMEI77W3FF/view?oauth_consumer_key=abcdefgh12345678 HTTP/1.1
Host: api.deutsche-digitale-bibliothek.de
Accept: application/xml

...

Noprint
Code Block
titleJSON
linenumberstrue
languagejs
collapsetrue
{
   "item":{
      "identifier":"1003104487",
      "label":"Egmont : ein Trauerspiel in fu?nf Aufzu?gen",
      "title":"Egmont : ein Trauerspiel in fu?nf Aufzu?gen",
      "subtitle":"Goethe, Johann Wolfgang ?von?. - Paderborn : Scho?ningh, 1946, [1946]",
      "rights":"",
      "metadata-rights":"http://creativecommons.org/publicdomain/zero/1.0/",
      "origin":"https://portal.dnb.de/bookviewer/view/1003104487",
      "category":"Kultur",
      "media":"text",
      "thumbnail":"",
      "latitude":"",
      "longitude":"",
      "viewers":null,
      "license":{
         "@resource":"http://www.deutsche-digitale-bibliothek.de/lizenzen/rv-fz/",
         "@img":"http://content.deutsche-digitale-bibliothek.de/license-icons/copyright.large.png",
         "@url":"http://www.deutsche-digitale-bibliothek.de/lizenzen/rv-fz/",
         "$":"Rechte vorbehalten – Freier Zugang"
      },
      "institution":{
         "url":"http://www.dnb.de",
         "id":"2Q37XY5KXJNJE5MV6SWP3UKKZ6RSBLK5",
         "name":"Deutsche Nationalbibliothek",
         "logo":"http://content.deutsche-digitale-bibliothek.de/binaries/institution-institutionen/20120720/edit/00012008/dnb_RGB.jpg"
      },
      "fields":[
         {
            "@usage":"display",
            "field":[
               {
                  "@id":"flex_bibl_002",
                  "name":"Beteiligte Personen und Organisationen",
                  "value":{
                     "@resource":"http://d-nb.info/gnd/118540238",
                     "$":"Goethe, Johann Wolfgang ?von? (1749-1832)"
                  }
               },
               {
                  "@id":"flex_bibl_003",
                  "name":"Dokumenttyp",
                  "value":"Monografie"
               },
               {
                  "@id":"flex_bibl_006",
                  "name":"Erschienen",
                  "value":"Paderborn : Scho?ningh, 1946, [1946]"
               },
               {
                  "@id":"flex_bibl_006",
                  "name":"Erschienen",
                  "value":"[Online-Ausg.]: 2010"
               },
               {
                  "@id":"flex_bibl_008",
                  "name":"Sprache",
                  "value":"Deutsch"
               },
               {
                  "@id":"flex_bibl_009",
                  "name":"Umfang",
                  "value":"92 S."
               },
               {
                  "@id":"flex_bibl_010",
                  "name":"Reihe",
                  "value":"Ferdinand Scho?ninghs Textausgaben alter und neuer Schriftsteller ; 13"
               },
               {
                  "@id":"flex_bibl_011",
                  "name":"Thema",
                  "value":"Deutsche Literatur"
               },
               {
                  "@id":"NON_NLS_1",
                  "name":"Link zum Katalogisat/OPAC",
                  "value":"http://d-nb.info/1003104487"
               },
               {
                  "@id":"flex_bibl_013b",
                  "name":"URN",
                  "value":"http://nbn-resolving.de/urn:nbn:de:101:2-2010060101"
               }
            ]
         },
         {
            "@usage":"index",
            "field":[
               {
                  "@resource":"http://purl.org/dc/elements/1.1/title",
                  "@id":"title",
                  "name":"Title",
                  "value":"Egmont : ein Trauerspiel in fu?nf Aufzu?gen"
               },
               {
                  "@resource":"http://purl.org/dc/elements/1.1/description",
                  "@id":"description",
                  "name":"Beschreibung",
                  "value":"Deutsche Literatur"
               },
               {
                  "@id":"ranking",
                  "name":"Ranking",
                  "value":[
                     "Deutsche Literatur",
                     "Goethe, Johann Wolfgang ?von?"
                  ]
               },
               {
                  "@id":"license",
                  "name":"Lizenz",
                  "value":"http://www.deutsche-digitale-bibliothek.de/lizenzen/rv-fz/"
               },
               {
                  "@id":"grid_preview",
                  "name":"grid_preview",
                  "value":"true"
               },
               {
                  "@id":"digitalisat",
                  "name":"digitalisat",
                  "value":"true"
               },
               {
                  "@id":"begin_time",
                  "name":"Anfang",
                  "value":"710398"
               },
               {
                  "@id":"end_time",
                  "name":"Ende",
                  "value":"710762"
               }
            ]
         }
      ]
   }
}
Noprint
Section

Back To Top