Cabinhub News API v1.0.0

Docs / One edition by UTC date

One edition by UTC date

One UTC day's edition, grouped by subject.

GET/v1/digest/{locale}/{day}
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

One UTC day, YYYY-MM-DD, grouped by subject. An empty day is 404, never an empty 200 — a client must be able to tell "no news" from "we broke".

Envelope (measured, /v1/digest/en):

Description: docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
localepathyesstringenA well-formed locale tag. Read the supported set from GET /v1/meta → locales.
daypathyesstring2026-11-03UTC date, YYYY-MM-DD.

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/digest/en/2026-11-03' \
  -H "Authorization: Bearer $NEWS_KEY"
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/v1/digest/en/2026-11-03"
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/digest/en/2026-11-03",
  {
    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
{
  "locale": "en",
  "day": "2026-11-03",
  "generated_at": "2026-11-03T18:07:00Z",
  "headline": "Fed holds policy rate as core inflation cools to 2.4%",
  "summary": "Officials left the target range unchanged ...",
  "sections": [
    {
      "category": "central_banks",
      "items": [
        {
          "id": "11111111-1111-5111-9111-111111111111",
          "title": "Fed holds policy rate as core inflation cools to 2.4%",
          "summary": "Officials left the target range unchanged ...",
          "bullets": ["Bullet one", "Bullet two"],
          "source": {"name": "Federal Reserve — Monetary Policy", "url": "https://...", "canonical_url": "https://...", "retrieved_at": "2026-11-03T18:03:00Z"},
          "published_at": "2026-11-03T18:00:00Z",
          "image_url": "/v1/images/img-b404bcc0af786cb0c2f3e40d1333436c",
          "author": "By Ember",
          "ai_generated": true,
          "ai_label": "AI-generated content"
        }
      ]
    }
  ],
  "disclaimer": "This content is provided for information purposes only. ...",
  "counts": {"items": 2, "sections": 2, "by_category": {"central_banks": 1, "energy": 1}}
}

Response example in docs/API.md §12 (GET /v1/digest/{locale}/{day})

Failures

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