Cabinhub News API v1.0.0

Docs / Post Route

Post Route

Post Route

GET/fxs/v4/{culture}/post/{rest}
Auth
client bearer
Cache-Control
private, max-age=30, stale-while-revalidate=150, stale-if-error=300, Vary: Accept-Encoding, Authorization
Validators
ETag
Source of truth
clients/openapi.json and docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
culturepathyesstringen-USFXStreet culture (en-US, zh-CN), or our own tag (en, zh-Hans).
restpathyesstringfilter/GeneralFeedFXStreet's post path tail after /post/, e.g. filter/GeneralFeed or {id}.
pagequerynostring11-based page number.
takequerynostring2Page size, <= 200.
bodyTypequerynostringFullHtmlBasicHtml, PlainText, FullHtml, Empty, JustifiedText.
categoryquerynostringcentral_banksOne of GET /v1/meta → categories; anything else is 400.
sincequerynostring2026-11-01T00:00:00ZRFC3339 lower bound (inclusive).
untilquerynostring2026-11-07T00:00:00ZRFC3339 upper bound (inclusive); since > until is 400.
casingquerynostringpascalpascal (default, what FXStreet's widget reads) or camel (what their OpenAPI spells).
idsquerynostringguidplain (default, our 32-hex id) or guid (the same value as 8-4-4-4-12).
includequerynostring

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/fxs/v4/en-US/post/filter/GeneralFeed?page=1&take=2&bodyType=FullHtml' \
  -H "Authorization: Bearer $NEWS_KEY"
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/fxs/v4/en-US/post/filter/GeneralFeed?page=1&take=2&bodyType=FullHtml"
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/fxs/v4/en-US/post/filter/GeneralFeed?page=1&take=2&bodyType=FullHtml",
  {
    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
{
  "Values": [
    {
      "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 and repeated that further moves depend on incoming data, not a preset path.",
      "HTML": "<p>The Federal Reserve kept its target range for the federal funds rate unchanged at its November meeting, citing continued progress on inflation alongside a labour market that officials described as gradually rebalancing.</p>",
      "Url": "/#/item/11111111-1111-5111-9111-111111111111",
      "FullUrl": "https://vg.tempproject.online/#/item/11111111-1111-5111-9111-111111111111",
      "PublicationDate": "2026-11-03T18:00:00Z",
      "VersionDate": "2026-11-03T18:22:00Z",
      "Author": {
        "Id": "6f1a2f4c-2a4b-5b4e-9d13-0b9a2f0a5c11",
        "Name": "By Ember"
      },
      "Company": {
        "Id": "0b3f9a52-6c1d-5c8e-8f2a-9a1d3b5c7e90",
        "Name": "Federal Reserve"
      },
      "Image": {
        "Url_XtraLarge": null,
        "Url_Large": null,
        "Url_Medium": null,
        "Url_Small": null,
        "Url_XtraSmall": null,
        "Url_Nano": null,
        "Caption": null,
        "Copyright": null,
        "Title": null
      },
      "Tags": [
        {
          "Id": "5c2e7b10-9f3a-5d41-8a6b-2e4f6a8c0d12",
          "Name": "central_banks"
        },
        {
          "Id": "7d4f9c21-0a5b-5e62-9b7c-3f5a7b9d1e23",
          "Name": "USD"
        }
      ],
      "Category": "central_banks",
      "Importance": 0.94,
      "AiGenerated": true,
      "AiLabel": "AI-generated content"
    }
  ],
  "Page": 1,
  "Take": 2,
  "Count": 1,
  "HasMore": false
}

Item shape from docs/FXSTREET_COMPAT.md §2 (FXStreet's own widget and OpenAPI), in the Values envelope §2 documents; the additive Page/Take/Count/HasMore are §3

Failures

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