Versions Compared

Key

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

...

Note that if you do lookup on isbn, all versions of the book will be returned, not just the latest one.

Info

New Authentication & URLs introduced Q2 2024

URL

https://api.bokbasen.io/dds/inventory/v2

https://api.bokbasen.io/dds/inventory/v2/{isbn}

Expand
titleLegacy

https://api.dds.boknett.no/v2/inventory/

https://api.dds.boknett.no/v2/inventory/{isbn}

Method

GET

Request
headers

Authorization

Required

The token acquired from the Authentication Service.

Example: Authorization: Boknett TGT-....

Date

Required

Header: Date is required. The timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT

Method

GET

Request
headers

Authorization

Required

The token acquired from the Authentication Service .

Audience: https://api.bokbasen.io/dds/

Example: Authorization: Bearer ....

Query
parameters

after

Required if next not given


next

Required if after not given


pagesize

optional

(default and max value is 10000)

Response
headers


Content-Type

application/atom+xml;charset=UTF-8


Next

next token for next page


Link

link to next page

Response
body

ATOM Inventory XML format (same format as before, however only latest version of each book is returned and some fields are removed)

Returns

200

OK

40x

On error

Curl example

Initial load using after (timestamp) - if you are not using your persisted next from last call/session

Code Block
curl -i \
     -H "Authorization: Bearer <token>" \
     "https://api.bokbasen.io/dds/inventory/v2?after=20140501120000"

HTTP/1.1 200 OK
Date: Fri, 07 Aug 2015 11:19:45 GMT
Content-Type: application/atom+xml;charset=UTF-8

(ATOM Inventory XML)

Curl example
Status
colourYellow
titlelegacy example

Initial load using after (timestamp) - if you are not using your persisted next from last call/session

...

Inventory XML element documentation

Element <name>

Explanation

title

Title of book

author

name

Name of author 

id

The id of the digital resource representing the book. (Referred to as uuid or reId) Note that this ID can change at any time if the publisher of the book publishes a new version of the digital file. 

updated

Last time resource was updated

inv:isbn

ISBN of book 

inv:publisher

Id of publisher 

inv:format

Format of the file (always MP3 for audio books even if they are distributed in different formats)

inv:drm

What kind of DRM protection the book have, possible values are: SDRM, TDRM, NODRM, or UNKNOWN

inv:version

Version number for the digital resource. Starts with 1 and increments if new version of the digital book is published.

inv:firstpublished

Date book was first published

inv:deleted

Date book was deleted (empty value if not deleted)

inv:published

If the books in published, you cannot initiate downloads on a book that is not published.

inv:access

Role based, do you as an integrator have access to this book? Must be true in order for you to sell the title.

inv:excerpt

If excerpts are available through DDS. (Will always be false for audio books as these are distributed through the metadata API.)

Get inventory (v1)
Status
colourYellow
titleDeprecated

...