Docs / One edition by UTC date
One edition by UTC date
One UTC day's edition, grouped by subject.
GET/v1/digest/{locale}/{day}
- 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.jsonanddocs/API.md§12
One UTC day, YYYY-MM-DD, grouped by subject. An empty day is 404, never an empty 200 — a client must be able to tell "no news" from "we broke".
Envelope (measured, /v1/digest/en):
- Section entries are summary objects, not full items: no
body, noclaims, noentities, nocompliance, notranslations. They do carryauthor,ai_generatedandai_label, so an edition renders its byline and AI notice without fetching each article. Fetch/v1/items/{id}for the full item. image_urlis root-relative, ornullwhen the item has no image.generated_atis the newest item'supdated_atin that edition.404cases, both verified:no digest for locale 'en' on 1999-01-01(empty day) andno digest for locale 'de': no published items(locale never published).400for a malformed locale tag and for a day not inYYYY-MM-DDform.- No
ETag;Cache-Control: public, max-age=300. Metered per item id in the edition.
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. |
day | path | yes | string | 2026-11-03 | UTC date, YYYY-MM-DD. |
Example request
curl -sS \
'https://vg.tempproject.online/v1/digest/en/2026-11-03' \
-H "Authorization: Bearer $NEWS_KEY"import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/digest/en/2026-11-03"
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/digest/en/2026-11-03",
{
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",
"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}}
}Response example in docs/API.md §12 (GET /v1/digest/{locale}/{day})
Failures
This operation can answer 200, 304, 400, 401, 404, 422, 429. The full envelope for each status, with its body, is on Errors.