What you get
| Field | What it is |
|---|---|
title.zh / title.en | Headline in Chinese and English |
article.zh / article.en | The full rewritten article (Chinese at least 200 characters; English about 180–320 words) |
sources | The original reports: outlet, headline, link and time |
url | The article page on twinfo.huhm.cc |
/reels | Our videos (IG Reels / YouTube Shorts) with their written articles, in the previous format |
How the news is made: every 10 minutes an open-source bot (github.com/huhm-cc/twinfo-newsbot) reads public news feeds, groups reports about the same event, and rewrites a few new stories in its own words. It does not copy sentences or quote at length, adds no opinion, and keeps facts, figures and names as reported. Always check the original reports for full details.
Quick start
- Sign in with Google (top right). First-time users set an ID and nickname.
- Open your profile → API keys, name the key and press “Create key”.
- Copy the key (it starts with
twk_). It is shown only once; if you lose it, revoke it and create a new one. - Send the key with every request:
curl -H "Authorization: Bearer twk_YOUR_KEY" \
"https://twinfo.huhm.cc/api/v1/news?category=news&limit=5" Authentication
Every endpoint except /live requires a key. Use either header:
Authorization: Bearer twk_xxxxxxxx
X-API-Key: twk_xxxxxxxx - Keys are tied to your account. You can hold up to 5 active keys.
- We store only a hash of each key, so we cannot show it to you again.
- Keep keys on your server or in environment variables. Do not put them in public web pages, apps or GitHub. If one leaks, revoke it on your profile right away.
- Keys in the URL query string are not accepted.
Rate limit
Each account can make at most 300 requests per minute, counted across all of its keys. The window resets at the start of every minute. Every response carries:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per minute (300) |
X-RateLimit-Remaining | Requests left in this minute |
X-RateLimit-Reset | Unix time (seconds) when the window resets |
Retry-After | Only on 429: seconds to wait |
Over the limit you get HTTP 429. Wait for Retry-After seconds, then try again. News is added every 10 minutes, so polling every 5–10 minutes is plenty.
Endpoints
Base URL: https://twinfo.huhm.cc/api/v1
GET /news
Latest rewritten news, newest first.
| Parameter | Values | Description |
|---|---|---|
category | all · news · tech | Default all. Comma-separate to combine, e.g. news,tech |
language | zh · en | Return only that language in title, summary and article (en also skips stories without English) |
date | YYYY-MM-DD | One day (Taipei time) |
from / to | YYYY-MM-DD | Date range, inclusive |
q | text, ≤ 50 chars | Keyword in the title, summary, article or tags |
limit | 1–100 | Items per page, default 20 |
offset | 0–100000 | Skip this many items. Use meta.next_offset for the next page |
GET https://twinfo.huhm.cc/api/v1/news?category=news,tech&from=2026-11-01&limit=20 GET /news/{id}
One story by its id. Accepts language=zh|en.
GET /reels · GET /reels/{id}
Our videos: each IG Reel / YouTube Short with its written article, subtitles and sources, in exactly the format /news used before November 22, 2026 (video, article, transcript, sources …). Same key, same parameters (category = all | news | tech | history | other, language = video language), same rate limit. If you used /news for videos, switch the path to /reels.
GET /live
The 24-hour live stream: HLS address, program on air, current story and schedule. Public, no key needed. Details
GET /me
Check that your key works and see how much of this minute’s quota is left. It counts as one request.
Response
{
"data": [
{
"id": "20261122-c28f8339",
"slug": "taiwan-banks-overseas-profit-record",
"category": "news",
"category_name": {
"zh": "新聞",
"en": "news"
},
"title": {
"zh": "台灣的銀行前三季海外獲利達新高 逾八百億元",
"en": "Taiwanese Banks' Overseas Profits Hit Record High Over NT$81.18 Billion in First Three Quarters"
},
"summary": {
"zh": "金管會統計顯示,台灣的銀行今年前三季海外分支機構獲利達新台幣811.8億元,創歷年同期新高,主要受惠於放款成長及呆帳費用減少。",
"en": "Financial Supervisory Commission data show that Taiwanese banks' overseas branch profits reached NT$81.18 billion in the first three quarters, marking a record for the period."
},
"article": {
"zh": "金管會統計資料顯示,台灣的銀行今年前三季海外分支機構(含分、子行)的獲利總額為新台幣811.8億元,較去年同期增加98.5億元,創下歷年同期新高。\n\n…",
"en": "According to data from the Financial Supervisory Commission, Taiwanese banks' overseas branch profits reached NT$81.18 billion in the first three quarters of 2026, up NT$9.85 billion from a year earlier and a record for the period.\n\n…"
},
"tags": [
"台灣銀行業",
"海外獲利",
"金管會統計",
"新南向政策國家",
"金融業"
],
"sources": [
{
"name": "中央社",
"title": "國銀海外據點前3季獲利811億 美國新加坡日本寫同期新高",
"url": "https://www.cna.com.tw/news/afe/202611220110.aspx",
"published_at": "2026-11-22T16:04:37+08:00"
},
{
"name": "自由時報",
"title": "國銀海外很會賺!前3季獲利811.8億 創歷年新高",
"url": "https://ec.ltn.com.tw/article/breakingnews/5649507",
"published_at": "2026-11-22T14:18:40+08:00"
}
],
"published_at": "2026-11-22T17:50:12+08:00",
"url": "https://twinfo.huhm.cc/articles/20261122-c28f8339",
"attribution": "Taiwan INFO 台灣資訊 (https://twinfo.huhm.cc). Rewritten summary of the original reports listed in sources."
}
],
"meta": {
"total": 2,
"count": 1,
"limit": 1,
"offset": 0,
"next_offset": 1,
"updated_every": "10m"
}
} | Field | Description |
|---|---|
id | Unique id of the story |
slug | Short English slug |
category | news · tech |
title | { zh, en } headline |
summary | { zh, en } one-sentence summary |
article | { zh, en } full article; paragraphs separated by a blank line |
tags | Keywords (Chinese) |
sources[] | Original reports: name, title, url, published_at |
published_at | When Taiwan INFO published it, ISO 8601 with +08:00 |
url | Article page on twinfo.huhm.cc |
attribution | Credit line to show with the content |
meta.total | Total matching items |
meta.next_offset | Offset for the next page, or null on the last page |
date, from and to use the Taipei date of published_at.
Errors
{
"error": {
"code": "rate_limited",
"status": 429,
"message": "Rate limit exceeded: at most 300 requests per minute per account."
}
} | HTTP | code | Meaning |
|---|---|---|
| 400 | bad_request | A parameter is wrong; see detail |
| 401 | missing_api_key | No key sent |
| 401 | invalid_api_key | Wrong or revoked key |
| 404 | not_found | No story with that id |
| 429 | rate_limited | Over 300 requests this minute |
| 500 | server_error | Our side; try again shortly |
Error messages follow your Accept-Language header (Chinese or English).
Examples
JavaScript (Node 18+)
const KEY = process.env.TWINFO_API_KEY; // never put the key in front-end code
const res = await fetch("https://twinfo.huhm.cc/api/v1/news?category=tech&limit=10", {
headers: { Authorization: `Bearer ${KEY}` },
});
if (res.status === 429) {
const wait = Number(res.headers.get("Retry-After") ?? 60);
console.log(`Rate limited, retry in ${wait}s`);
} else {
const { data, meta } = await res.json();
for (const n of data) {
console.log(n.title.zh, n.title.en, n.url);
console.log(n.article.zh); // the rewritten article
console.log(n.sources.map((s) => s.url)); // original reports
}
console.log("remaining this minute:", res.headers.get("X-RateLimit-Remaining"));
} Python: fetch every page
import os, time, requests
KEY = os.environ["TWINFO_API_KEY"]
URL = "https://twinfo.huhm.cc/api/v1/news"
def fetch_all(category="news"):
offset, items = 0, []
while offset is not None:
r = requests.get(URL, params={"category": category, "limit": 100, "offset": offset},
headers={"Authorization": f"Bearer {KEY}"}, timeout=10)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", 60)))
continue
r.raise_for_status()
body = r.json()
items += body["data"]
offset = body["meta"]["next_offset"]
return items
for n in fetch_all()[:5]:
print(n["title"]["zh"], "/", n["title"]["en"])
print(n["article"]["zh"])
print("Sources:", [s["url"] for s in n["sources"]])
# Videos (IG Reels / YouTube Shorts) live at /reels
reels = requests.get("https://twinfo.huhm.cc/api/v1/reels", params={"limit": 5}, headers={"Authorization": f"Bearer {KEY}"}).json()["data"] Browsers may call the API directly (CORS is open), but that exposes your key. Call it from your own server instead.
24-hour live stream
GET /live
Status of the Taiwan INFO 24-hour live stream: the HLS address, the program on air, the story playing now, what is coming up, and the full daily schedule (Taipei time). This endpoint is public: no key needed, CORS open, cached for 15 seconds. Watch it on the site at twinfo.huhm.cc/live.
curl "https://twinfo.huhm.cc/api/v1/live" {
"data": {
"status": "live",
"hls_url": "https://live.huhm.cc/hls/live.m3u8",
"page_url": "https://twinfo.huhm.cc/live",
"timezone": "Asia/Taipei",
"program": { "id": "evening_news", "name": { "zh": "晚間新聞", "en": "Evening News" },
"start": "2026-11-29T17:00:00+08:00", "end": "2026-11-30T00:00:00+08:00" },
"next_program": { "id": "morning_news", "name": { "zh": "新聞時間", "en": "News Hour" },
"start": "2026-11-30T00:00:00+08:00" },
"now_playing": { "type": "news", "title": "…", "summary": "…", "category": "Politics",
"sources": ["中央社", "公視新聞"], "links": ["https://…"],
"started_at": "2026-11-29T23:41:05+08:00", "duration_seconds": 104.2 },
"up_next": [{ "title": "…", "category": "…", "duration_seconds": 96.5 }],
"schedule": [
{ "id": "morning_news", "name": { "zh": "新聞時間", "en": "News Hour" }, "start": "00:00", "end": "11:00" },
{ "id": "funfact", "name": { "zh": "台灣 FunFact", "en": "Taiwan FunFact" }, "start": "11:00", "end": "14:00" },
{ "id": "global_tech", "name": { "zh": "國際 AI・電子・股市", "en": "Global AI, Tech & Markets" }, "start": "14:00", "end": "17:00" },
{ "id": "evening_news", "name": { "zh": "晚間新聞", "en": "Evening News" }, "start": "17:00", "end": "24:00" }
],
"updated_at": "2026-11-29T23:41:05+08:00"
},
"attribution": "Taiwan INFO 台灣資訊 (https://twinfo.huhm.cc)"
} | Field | Description |
|---|---|
status | live, or offline when the stream host has not reported for 15 minutes |
hls_url | HLS playlist (H.264 720p30 + AAC). Browsers on twinfo.huhm.cc can play it; other sites are blocked by CORS, so please link to the live page instead of embedding the stream. |
program / next_program | Program on air and the next one, with ISO 8601 times (+08:00) |
now_playing.type | news, funfact, program_intro, or interlude (a Reels clip or standby card while the next story is prepared) |
now_playing.sources / links | Outlets and links of the original reports (Wikipedia for fun facts) |
schedule[] | The four daily programs; start and end are HH:MM Taipei time (end is exclusive) |
Stories on the stream are rewritten by AI from public reports and checked by a second AI pass; no story repeats within a day, and the evening news only revisits morning stories when there is a new development.
Terms of use
- Free for non-commercial use. When you show our content, credit “Taiwan INFO”, link to the article url, and keep the links to the original reports.
- Do not resell the data or present it as your own reporting.
- Do not try to get around the rate limit with several accounts. Abusive keys will be revoked.
- The API is provided as is, and fields may be added in v1 without notice. Breaking changes will move to a new version.
- The Terms of Service also apply.
Questions: hi@mail.huhm.cc