Skip to content
Thomas Egense edited this page Apr 10, 2026 · 147 revisions

SolrWayback API with examples

Overview

This documentation covers the REST API endpoints provided by the SolrWaybackResource and SolrWaybackResourceWeb classes in the dk.kb.netarchivesuite.solrwayback.service package. The classes serves as a JAX-RS resource for interacting with archived web content, search results, exports, and related functionalities in the SolrWayback system.

SolrWayback has two different webservice endpoints. (here with default local Tomcat port 8080 installation) `

The /services endpoint the primary backend for playback,export data etc.

The /services/frontend has most of the methods used by the VUE frontend for searching and tools used in the GUI.

Methods under each endpoints will be listed in the two tables below. Clicking the method will jump to a detailed description with examples for that method.

Service methods for /services/frontend

Method Description Example URL Payload
/warc/header/parsed Load the WARC-header and HTTP header for a record services/warc/header/?source_file_path=/warcs/test.warc.gz&offset=301937 text

. . . . . . . . . . . . .

Specific service method

/warc/header/parsed

Example url: https://solrwb-liveqa.kb.dk:4000/solrwayback/services/warc/header/?source_file_path=%2Fnetarkivet%2F038i%2Ffildir%2F518805-265-20260306053654496-00000-sb-prod-har-001.statsbiblioteket.dk.warc.gz&offset=301937 Response: ` WARC/1.0 WARC-Type: response WARC-Target-URI: https://www.dr.dk/ WARC-Date: 2026-03-06T05:36:55Z WARC-IP-Address: 2.23.172.130 WARC-Payload-Digest: sha1:YMNFVNV7KZSLYQVLWUN2XK32FUFKRC6Q WARC-Record-ID: urn:uuid:2dd9603a-3df5-4401-aec3-47847e34ba94 Content-Type: application/http; msgtype=response Content-Length: 1186938

HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 x-frame-options: SAMEORIGIN x-content-type-options: nosniff x-xxs-protection: 1; mode=block Content-Security-Policy: default-src 'self';script-src 'self' 'unsafe-inline' 'unsafe-eval' https:;style-src 'self' 'unsafe-inline' https:;img-src 'self' data: https: android-webview-video-poster:;font-src 'self' data: https:;connect-src 'self' https: wss: blob: android-webview-video-poster:;manifest-src 'self' blob:;media-src 'self' data: https: blob:;object-src 'none';child-src 'self' https: data: blob:;form-action 'self' https: ETag: "149yn558f0hpdt7" Cache-Control: public, max-age=19 Date: Fri, 06 Mar 2026 05:36:55 GMT Transfer-Encoding: chunked Connection: close Connection: Transfer-Encoding x-dr-appname: HYDRA Strict-Transport-Security: max-age=31536000 ; preload `

Clone this wiki locally