Taiwan INFOTaiwan INFOMuseum of the ROC · 1912–2026

Developers · v1

Taiwan INFO News API

Taiwan INFO 新聞 API

The latest Taiwan news and tech stories as JSON, updated every 10 minutes. Each story is rewritten by Taiwan INFO in neutral Chinese and English from public reports (CNA, PTS, Liberty Times, TechNews, iThome and others), keeping the facts, figures and names, and links back to every original report. Our Instagram Reels and YouTube Shorts are available separately at /reels.

What you get

FieldWhat it is
title.zh / title.enHeadline in Chinese and English
article.zh / article.enThe full rewritten article (Chinese at least 200 characters; English about 180–320 words)
sourcesThe original reports: outlet, headline, link and time
urlThe article page on twinfo.huhm.cc
/reelsOur 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

  1. Sign in with Google (top right). First-time users set an ID and nickname.
  2. Open your profile → API keys, name the key and press “Create key”.
  3. Copy the key (it starts with twk_). It is shown only once; if you lose it, revoke it and create a new one.
  4. 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

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:

HeaderMeaning
X-RateLimit-LimitRequests allowed per minute (300)
X-RateLimit-RemainingRequests left in this minute
X-RateLimit-ResetUnix time (seconds) when the window resets
Retry-AfterOnly 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.

ParameterValuesDescription
categoryall · news · techDefault all. Comma-separate to combine, e.g. news,tech
languagezh · enReturn only that language in title, summary and article (en also skips stories without English)
dateYYYY-MM-DDOne day (Taipei time)
from / toYYYY-MM-DDDate range, inclusive
qtext, ≤ 50 charsKeyword in the title, summary, article or tags
limit1–100Items per page, default 20
offset0–100000Skip 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"
  }
}
FieldDescription
idUnique id of the story
slugShort English slug
categorynews · tech
title{ zh, en } headline
summary{ zh, en } one-sentence summary
article{ zh, en } full article; paragraphs separated by a blank line
tagsKeywords (Chinese)
sources[]Original reports: name, title, url, published_at
published_atWhen Taiwan INFO published it, ISO 8601 with +08:00
urlArticle page on twinfo.huhm.cc
attributionCredit line to show with the content
meta.totalTotal matching items
meta.next_offsetOffset 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."
  }
}
HTTPcodeMeaning
400bad_requestA parameter is wrong; see detail
401missing_api_keyNo key sent
401invalid_api_keyWrong or revoked key
404not_foundNo story with that id
429rate_limitedOver 300 requests this minute
500server_errorOur 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)"
}
FieldDescription
statuslive, or offline when the stream host has not reported for 15 minutes
hls_urlHLS 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_programProgram on air and the next one, with ISO 8601 times (+08:00)
now_playing.typenews, funfact, program_intro, or interlude (a Reels clip or standby card while the next story is prepared)
now_playing.sources / linksOutlets 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

Questions: hi@mail.huhm.cc