FetchPI
登入
← 瀏覽全部 API

Lemon8 topic API

一次 REST 呼叫取得 Lemon8 topic 資料——以 FetchPI 全平台共用的穩定 JSON 結構標準化輸出。

  • 1 個已發布端點
  • GET /v1/lemon8/topics/{id}

契約摘要(英文): Get the Lemon8 topic detail (capability lemon8.topic)

標準化回應實體
lemon8/topic
capability
lemon8.topic

每個回應都附帶新鮮度(cache / default / live)與計費中繼資料。

使用場景

  • 把 {{platform}} 主題標籤解析為結構化中繼資料,直接接入趨勢看板。
  • 追蹤活動與事件相關的標籤使用量與相關內容量。
  • 用一致、標準化的標籤把內容按話題聚合到不同帳號。

回應欄位

Lemon8 topic (normalized non-entity payload)

Non-entity payload (type topic) — the entity layer clean-skips it; served by the /v1/lemon8 surface.

欄位類型必填說明
idstring | null必填—
namestring | null必填—
descriptionstring | null可選—
metrics.postsinteger必填—
platform"lemon8"必填—
type"topic"必填—
fetched_atstring必填Normalization time (UTC).

欄位備註為契約英文原文。

回應中繼資料

欄位類型必填說明
modecache | default | live必填Effective mode after merging param > max_age > source policy (D-004).
age_secondsinteger | null可選Age of served data; null when unknown.
source_layercache | db | upstream必填Which layer served the response (PRD §10).
staleboolean可選True when stale data was served under stale_if_error / SWR (D-004).
billing.amount_creditsinteger必填Micro-USD (1e-6 USD) actually charged for this request.
billing.cache_hitboolean必填—

欄位備註為契約英文原文。

請求與回應範例

GET/v1/lemon8/topics/{id}
curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
  "https://api.fetchpi.com/v1/lemon8/topics/1842951234567890123"
{
  "data": {
    "id": "1666000000000001001",
    "platform": "lemon8",
    "type": "topic",
    "name": "数据开放",
    "description": "Lemon8 话题详情(按 forum_id 寻址)。",
    "metrics": {
      "posts": 8600
    },
    "fetched_at": "2026-09-21T09:00:00Z"
  },
  "meta": {
    "request_id": "req_01HTXQ8Z9HTQ",
    "freshness": {
      "mode": "default",
      "age_seconds": 0,
      "source_layer": "upstream",
      "stale": false
    },
    "billing": {
      "amount_credits": 100,
      "cache_hit": false
    }
  }
}

免費試用

註冊免費帳號、取得 API Key,即可在瀏覽器版 Playground 直接呼叫該端點。

在 Playground 試用

該端點的參數表、錯誤碼與回應語義見 API 文件。

查看端點參考

常見問題

主題標籤是標準化的嗎?

是的——回應結構為標籤識別、計數與中繼資料定義了穩定欄位名稱,跨平台看板無需按平台另外解析。

可以免費試用該端點嗎?

可以——註冊帳號、取得 API Key 後,即可在主控台的 Playground 呼叫該端點。

topic 能力怎麼計費?

Data API 按請求以點數計費,cache/live 新鮮度有不同倍率。目前各能力的價格以價格頁為準。

價格

按請求以點數計費,支援 cache/live 新鮮度選項——最新價格以價格頁為準。