Docs / Feed
Feed
The snapshot a renderer polls, with a strong ETag.
- Auth
- client bearer + quota
- Cache-Control
public, max-age=60, stale-while-revalidate=300, stale-if-error=600- Validators
ETag, Last-Modified- Source of truth
clients/openapi.jsonanddocs/API.md§12
The route the renderer should poll. Returns the newest clean items for one locale, all published no later than generated_at.
Exactly these five keys. The feed uses the same keyset cursor as /v1/items (§6): pass ?cursor=<next_cursor> until the response has next_cursor: null. Each page has the same generated_at run anchor and default page size 50. Authentication and metering are as in §3 and §4; the same item on another page is not billed twice.
generated_atis the stability cutoff (§7.6): the newest run'sfinished_at, itsstarted_atwhile it runs, else the newest served item'supdated_at, else the fixed anchor1970-01-01T00:00:00.000000Zon an empty database.?category=<one of the categories in /v1/meta>filters the snapshot to that category before the page is taken, so a category feed holds up to the full page size of that category's newest items. An unknown category is400(category must be one of: ...). The unfiltered feed is the resourcefeed:<locale>; a filtered one isfeed:<locale>:<category>, so theirETags are never interchangeable.?cursor=<next_cursor>reads the next page of the same locale/category snapshot. The opaque cursor is validated by the shared store decoder; a forged cursor is400.- The unfiltered first page has
ETag+Last-Modified. Cursor and category pages carry theETagonly: they share the run anchor, soIf-Modified-Sincecannot identify the page. - Unknown but well-formed locale returns
200withitems: []and theendisclaimer. - Malformed locale tag returns
400. - Every item carries
translations(§11), so a renderer can switch language on an open article without going back to the feed.
Description: docs/API.md §12
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
locale | path | yes | string | en | A well-formed locale tag. Read the supported set from GET /v1/meta → locales. |
category | query | no | string | central_banks | One of GET /v1/meta → categories; anything else is 400. |
cursor | query | no | string | <next_cursor> | Opaque keyset cursor from the previous page's next_cursor. An empty string is treated as absent. |
include | query | no | string |
Following next_cursor is a loop; see Pagination for the walk in curl, Python and TypeScript.
Example request
curl -sS \
'https://vg.tempproject.online/v1/feed/en' \
-H "Authorization: Bearer $NEWS_KEY"import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/feed/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])const res = await fetch(
"https://vg.tempproject.online/v1/feed/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
{
"locale": "en",
"generated_at": "2026-11-03T18:30:00Z",
"disclaimer": "This content is provided for information purposes only. It is not investment advice, a recommendation, or an offer to buy or sell any financial instrument. Stories are written by the Cabinhub newsroom and cite the public sources they draw on; information may be delayed or incomplete.",
"items": [
{
"id": "a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa",
"schema_version": 1,
"locale": "en",
"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.",
"body": "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.\n\nCore personal consumption expenditures rose **2.4%** year over year in the latest reading, down from 2.8% three months earlier. The statement dropped a prior reference to *elevated* inflation and replaced it with a description of price pressures as moderating.\n\nPolicymakers said any adjustment would depend on the data received, and declined to characterise the current stance as restrictive for a fixed period — a wording change analysts read as a lower bar for a future cut.",
"bullets": [
"Target range for the federal funds rate left unchanged",
"Core PCE at 2.4% year over year, down from 2.8%",
"Statement language on inflation softened from 'elevated' to 'moderating'",
"No commitment to a timeframe for the next move"
],
"category": "central_banks",
"importance": 0.94,
"published_at": "2026-11-03T18:00:00Z",
"updated_at": "2026-11-03T18:22:00Z",
"source": {
"name": "Federal Reserve",
"url": "https://www.federalreserve.gov/newsevents/pressreleases/monetary20261103a.htm",
"canonical_url": "https://www.federalreserve.gov/newsevents/pressreleases/monetary20261103a.htm",
"retrieved_at": "2026-11-03T18:04:00Z"
},
"claims": [
{
"text": "The committee left its target range unchanged.",
"source_span": "The Committee decided to maintain the target range for the federal funds rate at 3-3/4 to 4 percent.",
"confidence": 0.96
},
{
"text": "Core PCE inflation was 2.4% year over year.",
"source_span": "Core PCE prices rose 2.4 percent over the 12 months ending in September.",
"confidence": 0.91
},
{
"text": "The committee said it would assess incoming data.",
"source_span": "the Committee will continue to assess the implications of incoming information for the economic outlook",
"confidence": 0.88
}
],
"entities": {
"instruments": [
"USD"
],
"countries": [
"US"
],
"organizations": [
"Federal Reserve",
"Federal Open Market Committee"
]
},
"market_data": {
"symbol": "USD",
"price": 103.42,
"change_pct": -0.38,
"as_of": "2026-11-03T18:15:00Z"
},
"compliance": {
"status": "clean",
"risk_score": 0.02,
"reason_codes": [
"CLEAN"
],
"policy_version": "2026-11-03.1"
},
"assets": {
"title_image_prompt": "A marble Federal Reserve building facade in flat late-afternoon light, wide angle, restrained editorial tone, deep navy sky, no text, no logos.",
"title_image_aspect": "16:9",
"title_image_alt": "The Federal Reserve building, Washington",
"title_image_url": "/v1/site/images/fed-facade",
"title_image_srcset": "/v1/site/images/fed-facade?w=640 640w, /v1/site/images/fed-facade?w=1280 1280w",
"title_image_ai_generated": true,
"body_images": [
{
"url": "/v1/site/images/fed-floor",
"alt": "Traders on the floor of the New York Stock Exchange watching the Fed decision",
"caption": "The Fed left its target range unchanged; the statement softened its language on inflation.",
"after_paragraph": 0,
"aspect": "3:2",
"ai_generated": true,
"credit": "Ember Picture Desk",
"licence": "CC BY 4.0"
},
{
"url": "/v1/site/images/fed-statement",
"alt": "Printout of the Federal Open Market Committee statement",
"caption": "The wording moved from “elevated” inflation to “moderating” price pressures.",
"after_paragraph": 2,
"aspect": "3:2",
"ai_generated": false,
"credit": null,
"licence": null
}
]
},
"translations": {
"en": "a41f7c02-8d3e-5b16-9a77-2c0e4b91d5aa",
"zh-Hans": "a69a603b-9bdc-5132-b854-f517feac65bc"
},
"ai_generated": true,
"ai_label": "AI-generated content"
},
{
"id": "b92c1e77-3ad0-5f41-8c6b-71d2f0a4e833",
"schema_version": 1,
"locale": "en",
"title": "Gold slips from record as real yields turn higher",
"summary": "Bullion fell for a second session after a stronger-than-expected services print pushed ten-year real yields above 1.6%.",
"body": "Gold fell below its record close on Tuesday, erasing gains from the previous week, as rising real yields removed the main support for the metal over the past month.\n\nThe move followed a services activity release that beat consensus, prompting traders to reconsider the pace of rate reductions priced into futures markets.\n\nHoldings in physically backed exchange-traded funds were little changed, suggesting the selling was concentrated in futures rather than long-term allocation.",
"bullets": [
"Spot gold down from a record close on Monday",
"Ten-year real yields above 1.6%",
"ETF holdings roughly unchanged"
],
"category": "commodities",
"importance": 0.81,
"published_at": "2026-11-03T15:40:00Z",
"updated_at": "2026-11-03T16:05:00Z",
"source": {
"name": "London Bullion Market Association",
"url": "https://www.lbma.org.uk/prices-and-data/precious-metal-prices",
"canonical_url": "https://www.lbma.org.uk/prices-and-data/precious-metal-prices",
"retrieved_at": "2026-11-03T15:45:00Z"
},
"claims": [
{
"text": "Gold fell for a second consecutive session.",
"source_span": "Gold prices declined for a second consecutive session on Tuesday",
"confidence": 0.84
},
{
"text": "Ten-year real yields rose above 1.6%.",
"source_span": "Ten-year real yields climbed above 1.6 percent for the first time since August",
"confidence": 0.79
}
],
"entities": {
"instruments": [
"XAUUSD",
"US10Y"
],
"countries": [
"US",
"GB"
],
"organizations": [
"London Bullion Market Association"
]
},
"market_data": {
"symbol": "XAUUSD",
"price": 4012.85,
"change_pct": -1.24,
"as_of": "2026-11-03T16:00:00Z"
},
"compliance": {
"status": "clean",
"risk_score": 0.06,
"reason_codes": [
"CLEAN"
],
"policy_version": "2026-11-03.1"
},
"assets": {
"title_image_prompt": "Cast gold bars on a matte charcoal surface, hard raking light, single specular highlight, macro editorial still life, no text.",
"title_image_aspect": "16:9",
"body_images": [
{
"url": "/v1/site/images/gold-bars",
"alt": "Gold bars stacked on a charcoal surface",
"caption": "Bullion held near its recent range as real yields steadied.",
"after_paragraph": 9,
"aspect": "3:2",
"ai_generated": false,
"credit": null,
"licence": null
},
{
"url": "/v1/site/images/does-not-exist",
"alt": "A deliberate broken image used to prove the figure collapses",
"caption": "This caption must never be left behind when the picture fails.",
"after_paragraph": 1,
"aspect": "3:2",
"ai_generated": false,
"credit": null,
"licence": null
},
{
"url": "/v1/site/images/gold-bars",
"alt": "Ignored: negative index",
"caption": "Never rendered.",
"after_paragraph": -1,
"aspect": "3:2",
"ai_generated": false,
"credit": null,
"licence": null
},
{
"url": "/v1/site/images/gold-bars",
"alt": "Ignored: non-integer index",
"caption": "Never rendered.",
"after_paragraph": 1.5,
"aspect": "3:2",
"ai_generated": false,
"credit": null,
"licence": null
}
]
},
"translations": {
"en": "b92c1e77-3ad0-5f41-8c6b-71d2f0a4e833",
"zh-Hans": "ae1ec185-095a-5c0e-8f7e-d60e696d2fad"
}
}
]
}Built from frontend/fixtures/items.json (captured items, sha 6784d82e71cd)
Failures
This operation can answer 200, 304, 400, 401, 422, 429. The full envelope for each status, with its body, is on Errors.