Cabinhub News API v1.0.0

Docs / Get Storyline

Get Storyline

Get Storyline

GET/v1/site/storyline/{item_id}
Auth
none
Cache-Control
public, no-cache; no-store on 404
Validators
ETag
Source of truth
clients/openapi.json and docs/API.md §12

Follow storyline_url from public item detail. The Timeline uses the report's stored edition unless locale is supplied. Each earlier report opens through its News share_url.

Matching If-None-Match returns a bodyless 304 with the same ETag and Cache-Control: public, no-cache. An unknown or withheld report returns 404 with detail: "item not found". A published report without a qualifying Timeline returns 404 with error: "storyline_none", detail, minimum_items and window_days. Both 404 responses use Cache-Control: no-store. A temporary grouping failure returns 503 with detail: "storyline temporarily unavailable", Cache-Control: no-store and Retry-After. Keep the verified report visible and offer a retry that revalidates the report before loading its Timeline.

Description: docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
item_idpathyesstringa41f7c02-8d3e-5b16-9a77-2c0e4b91d5aaItem id (or a twin id from the item's translations map).
localequerynostringenDefaults to the item's own locale

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/site/storyline/a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa'
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/v1/site/storyline/a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa"


def call() -> dict:
    req = urllib.request.Request(URL, headers={})
    with urllib.request.urlopen(req, timeout=15) as res:
        print(res.status, res.headers.get("ETag"))
        return json.loads(res.read().decode("utf-8"))


if __name__ == "__main__":
    body = call()
    print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])
TypeScript, Node 18+, no dependencies
TypeScript
const res = await fetch(
  "https://vg.tempproject.online/v1/site/storyline/a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa",
  {
    method: "GET",
    headers: {},
  },
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());

The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.

Example response

Response body
JSON
{
  "item_id": "report-3",
  "locale": "en",
  "window_days": 14,
  "subject": "Riksbank",
  "subject_kind": "entity",
  "kind": "arc",
  "event": "rate_decision",
  "count": 3,
  "items": [
    {
      "id": "report-3", "title": "Riksbank holds policy rate",
      "published_at": "2026-11-23T10:00:00Z", "summary": "The rate remains unchanged.",
      "locale": "en", "category": "central_banks", "source_name": "Riksbank", "ai_label": null,
      "image": {"url": null, "aspect": "16:9", "ai_generated": false}, "share_url": "/share/report-3"
    },
    {
      "id": "report-2", "title": "Riksbank outlines policy options",
      "published_at": "2026-11-22T10:00:00Z", "summary": "The bank describes its options.",
      "locale": "en", "category": "central_banks", "source_name": "Riksbank", "ai_label": null,
      "image": {"url": null, "aspect": "16:9", "ai_generated": false}, "share_url": "/share/report-2"
    },
    {
      "id": "report-1", "title": "Riksbank publishes its rate outlook",
      "published_at": "2026-11-21T10:00:00Z", "summary": "The bank updates its rate outlook.",
      "locale": "en", "category": "central_banks", "source_name": "Riksbank", "ai_label": null,
      "image": {"url": null, "aspect": "16:9", "ai_generated": false}, "share_url": "/share/report-1"
    }
  ],
  "disclaimer": "For information only. Not investment advice."
}

Response example in docs/API.md §12 (GET /v1/site/storyline/{item_id})

Failures

This operation can answer 200, 304, 400, 404, 422, 429, 503. The full envelope for each status, with its body, is on Errors.