Objects
New Authentication & URLs introduced Q2 2024
Object Report
The objects (images and audio files) report contains identifiers and references to the address where the objects can be downloaded. These references will be valid for a limited period of time. The typical use of the object services is as follows:
Authenticate (same for all services)
Request report (list) of updated objects
Parse list of updated objects (obtain URL to download service for each object)
Download actual objects from download service (one or more requests per object)
URL |
The token acquired from the Authentication Service. Formated "Boknett TGT-...." Required header: | ||
---|---|---|---|
Method |
| ||
Request |
| Required | The token acquired from the Authentication Service. Audience: Formated "Bearer …" |
Query |
| Required* | All data elements modified after this “cursor”. The cursor is in a not human readable format. |
| Required* | All data elements modified after this timestamp. The timestamp is on the format yyyyMMddHHmmss. | |
| Optional | See Pagination | |
Response |
| See Pagination | |
| See Pagination | ||
Response | XML (Object metadata) | ||
Returns |
| OK | |
| Bad Request | ||
| Unauthorized | ||
| Forbidden | ||
| Not Acceptable | ||
| Internal Server Error |
* One of the parameters “next” and “after” is required.
Response Body (Object metadata XML)
<OBJECTS>
<OBJECT>
<ISBN13></ISBN13>
<EAN></EAN>
<FSSN></FSSN>
<VAREEIER_KODE></VAREEIER_KODE>
<TYPE></TYPE>
<REFERENCE><REFERENCE/>
</OBJECT>
<OBJECTS/>
TYPE
, "Type of object". ly = Lydfil, ol = Omslag lille (width 120), os = Omslag stor (height 450), org = original omslag (This is the original image file sent to Bokbasen, so this is the one with the highest quality. This only exists for files sent to Bokbasen after February 2015, for older files this will be the same quality as os)REFERENCE
- short lived link to object available for download at download service. Reference is generated in a dynamic non predictable manner.Note that this database also contains historical objects, so that you can get objects for books that are deleted and sold out, so one should always check if the object is required for your system in your import process
The database is containing objects for over 150 000 titles, so a full dump on the database is very time consuming. When doing this, the biggest impact is choosing which types you actually need so you do not incur unecessary requests. E.g. if you are only loading images and you only need ORG, that will require about 150 000 download requests, but if you include all types for images that becomes 450 000 requests and trippling your execution time.
Object Download Service Deprecated
Changes to filename
In case you still want to fetch these files and host them your selves, please make some adjustments.