Cabinhub News API v1.0.0

Docs / Meta

Meta

Locales, categories, page-size cap and the current policy version.

GET/v1/meta
Auth
client bearer + quota
Cache-Control
public, max-age=3600, stale-while-revalidate=300, stale-if-error=3600
Validators
ETag
Source of truth
clients/openapi.json and docs/API.md §12

Cache-Control: public, max-age=3600; strong ETag; no Last-Modified. This is the source of truth for locales, categories, the page-size cap and the current policy version.

Description: docs/API.md §12

Parameters

None. This route takes no path or query parameters.

Example request

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

URL = "https://vg.tempproject.online/v1/meta"
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/meta",
  {
    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
{"schema_version":1,"api_version":"1.0.0","locales":["en","zh-Hans"],"categories":["markets","macro","commodities","fx","crypto","central_banks","corporate","energy","technology"],"policy_version":"2026-11-12.1","default_locale":"en","limits":{"max_page_size":200}}

Response example in docs/API.md §12 (GET /v1/meta)

Failures

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