Cabinhub News API v1.0.0

Docs / Get Run

Get Run

One run with a redacted stats projection.

GET/v1/runs/{run_id}
Auth
client bearer + quota
Cache-Control
no-store
Source of truth
clients/openapi.json and docs/API.md §12

The run counters plus a safe stats projection, so the run_id from 202 Accepted is actionable without exposing operator internals.

Description: docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
run_idpathyesstringb3cd20b4cce24570858a3c5fd83a6a71The run_id returned by POST /v1/refresh.

Example request

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

URL = "https://vg.tempproject.online/v1/runs/b3cd20b4cce24570858a3c5fd83a6a71"
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/runs/b3cd20b4cce24570858a3c5fd83a6a71",
  {
    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
{
  "run_id": "b3cd20b4cce24570858a3c5fd83a6a71",
  "kind": "scheduled",
  "status": "ok",
  "started_at": "2026-11-04T20:20:00.000000Z",
  "finished_at": "2026-11-04T21:26:57.317108Z",
  "finished": true,
  "items_seen": 511,
  "items_published": 16,
  "items_withheld": 1,
  "error": null,
  "stats": {
    "fetched": 511, "deduped": 70, "extracted": 16, "translated": 8,
    "published": 16, "withheld": 1, "errors": 2, "duration_s": 474.851,
    "model_flags": 0, "sources_ok": 26, "sources_failed": 2, "abstained": 30,
    "dry_run": false,
    "error_details": [
      {"stage": "fetch", "source": "Reserve Bank of Australia — Media Releases",
       "url": "https://www.rba.gov.au/rss/rss-cb-media-releases.xml"}
    ],
    "skipped_by_cap": 411, "skipped_by_budget": 0, "deferred": 411, "budget_exhausted": false
  },
  "detail_redacted": true
}

Response example in docs/API.md §12 (GET /v1/runs/{run_id})

Failures

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