Cabinhub News API v1.0.0

Docs / Latest edition of the day's stories

Latest edition of the day's stories

Today's edition: the latest stories, grouped by subject.

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

Today's edition: the latest stories that have publishable items, grouped by subject. The path keeps the /v1/digest spelling because every client already calls it; the words this route is described in are the newsroom's own.

Description: docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
localepathyesstringenA well-formed locale tag. Read the supported set from GET /v1/meta → locales.

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/digest/en' \
  -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"
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",
  {
    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}}
}

Captured /v1/digest/{locale} envelope, docs/API.md §12 - the route answers the latest edition in exactly this shape (day is the edition's own date)

Failures

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