Cabinhub News API v1.0.0

Docs / Get Related Items

Get Related Items

Related coverage with a reason for each suggestion.

GET/v1/items/{item_id}/related
Auth
client bearer + quota
Cache-Control
public, max-age=300, stale-while-revalidate=300, stale-if-error=3000
Validators
ETag, Last-Modified
Source of truth
clients/openapi.json and docs/API.md §12

Related coverage for one published story: "what led to this" and what else runs with it.

ParameterDefaultBounds
limit10Values above 50 are clamped to 50; < 1 or non-integer is 400 limit must be between 1 and 50
localethe source item's localeWell-formed locale tag; a different locale returns coverage in that language

An empty items array is a normal answer, not an error: it means nothing cleared the evidence floor.

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
limitquerynostring2Defaults to 10, capped at 50
includequerynostringprovenance to carry each item's figures

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/items/a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa/related?limit=2' \
  -H "Authorization: Bearer $NEWS_KEY"
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/v1/items/a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa/related?limit=2"
KEY = os.environ["NEWS_KEY"]


def call() -> dict:
    req = urllib.request.Request(URL, headers={
        "Authorization": f"Bearer {KEY}",
    })
    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/items/a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa/related?limit=2",
  {
    method: "GET",
    headers: {
      authorization: `Bearer ${process.env.NEWS_KEY}`,
    },
  },
);
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": "11111111-1111-5111-9111-111111111111",
  "locale": "en",
  "window_days": 30,
  "items": [
    {
      "id": "66666666-6666-5666-9666-666666666666",
      "schema_version": 1,
      "locale": "en",
      "title": "Fed officials signal patience on further rate cuts",
      "summary": "Policymakers said the committee wants more evidence that inflation is returning to target ...",
      "category": "central_banks",
      "importance": 0.8,
      "published_at": "2026-11-02T21:00:00Z",
      "updated_at": "2026-11-02T21:00:00Z",
      "source": {"name": "Federal Reserve — Monetary Policy", "url": "https://...", "canonical_url": "https://...", "retrieved_at": "..."},
      "entities": {"instruments": ["USD"], "countries": ["US"], "organizations": ["Federal Reserve"]},
      "compliance": {"status": "clean", "risk_score": 0.0, "reason_codes": ["CLEAN"], "policy_version": "2026-11-12.1"},
      "assets": {"title_image_prompt": "...", "title_image_aspect": "16:9"}
    }
  ],
  "reasons": {
    "66666666-6666-5666-9666-666666666666": ["shared: USD", "shared: Federal Reserve", "shared: US", "same category: central_banks"]
  },
  "count": 3,
  "disclaimer": "This content is provided for information purposes only. ..."
}

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

Failures

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