TW Market Data LogoTW Market Data

核心資料

市場與價格

TWSE / TPEx 日線、還原價格、指數與市場廣度

財務與成長

月營收、財報三表、財務指標與估值資料

籌碼與資金

三大法人與融資融券資料

公司與結構

公司與事件

公司基本資料、公告、事件、公司行動與股利

分類與結構

主題分類、指數分類與跨資料集 mapping

策略與量化

Features、Factor Data、Time Alignment 與 Screener

平台能力

API 存取

REST API、認證與第一個 request

查詢與工具

Search API、Query API、欄位清單與查詢範例

Tools / MCP

Agent workflow、MCP tools 與 OpenAPI 入口

方案價格文件觀點文章
隱私政策|服務條款|聯絡我們|TW Market Data © 2026

文件總覽

Overview

總覽快速開始認證來源政策資料血緣API 模型Tools / MCPSupport

APIs

主題分類指數分類

Guides

查看公司基本面看籌碼看市場狀態快速查資料做策略 / AI

分類與結構

公司分類

提供 deterministic 公司分類與題材映射資料,適合分群分析與跨資料集分類對齊。

GET/v2/datasets/theme-taxonomy

Overview#

公司分類 API 提供 deterministic 的公司分類與題材映射資料,來源為 `issuer_classification_map` 與 `issuer_classification_taxonomy`。

這個 endpoint 屬於已對外開放的 live route,可用於產業分群、主題篩選與跨資料集分類對齊。

  • 依 ticker 取得公司當期 sector/industry/theme 分類。
  • 建立題材分群清單,作為篩選與監控條件。
  • 與價格或財務資料串接,建立分類維度的橫截面分析。

Request#

至少需要提供一個 filter(ticker、market、sector、industry、theme_primary 任一),未提供時會回傳 `missing_required_filter`。

Query Parameters#

欄位型別Required說明
tickerstringno股票代碼。
marketstringno市場代碼(例如 TWSE、TPEx)。
sectorstringno產業大類篩選。
industrystringno產業細分類篩選。
theme_primarystringno主題分類篩選。
limitintegerno回傳筆數限制(1..1000)。
offsetintegerno分頁偏移。
sort_bystringno排序欄位:as_of_date 或 ticker。
sort_orderstringno排序方向:asc 或 desc。

Response Shape#

回應採 canonical envelope,頂層包含 query/meta,分類資料位於 envelope.data。

資料為 deterministic 映射結果,不包含 AI 推論分數或主觀標註欄位。

{
  "api_version": "v2",
  "endpoint": "/v2/datasets/theme-taxonomy",
  "request_id": "req_theme_1a2b3c4d",
  "plan_id": "developer",
  "dataset": "theme_taxonomy",
  "query": {
    "ticker": "2330",
    "market": null,
    "sector": null,
    "industry": null,
    "theme_primary": null,
    "limit": 20,
    "offset": 0,
    "sort_by": "as_of_date",
    "sort_order": "desc"
  },
  "meta": {
    "rows_returned": 1
  },
  "envelope": {
    "dataset": "theme_taxonomy",
    "ticker": "2330",
    "as_of_date": "2026-04-22",
    "release_date": "2026-04-22",
    "data": [
      {
        "ticker": "2330",
        "market": "TWSE",
        "as_of_date": "2026-04-22",
        "sector": "半導體業",
        "industry": "晶圓代工",
        "subindustry": null,
        "theme_primary": "AI基礎設施",
        "theme_secondary": "高效能運算",
        "classification_source": "issuer_classification_map+issuer_classification_taxonomy",
        "provider": "twse_official",
        "source_role": "canonical"
      }
    ]
  }
}

Field 說明#

欄位路徑型別說明
datasetstring固定為 theme_taxonomy。
queryobject本次查詢條件。
meta.rows_returnedinteger回傳資料筆數。
envelope.data[].tickerstring股票代碼。
envelope.data[].marketstring市場代碼。
envelope.data[].as_of_datestring分類資料日期。
envelope.data[].sectorstring|null產業大類。
envelope.data[].industrystring|null產業細類。
envelope.data[].theme_primarystring|null主題主分類。
envelope.data[].theme_secondarystring|null主題次分類。
envelope.data[].classification_sourcestring|null分類映射來源識別。
envelope.data[].source_rolestring|null來源角色。

Usage Notes / 使用建議#

  • 此主題對外路由為 `/v2/datasets/theme-taxonomy`。
  • 若只查主題關鍵字入口,建議搭配 `/v2/search?type=theme`。
  • 若條件查不到資料,通常回傳 200 + 空資料集合,不代表 endpoint 不可用。

Plan Requirement#

  • Route:/v2/datasets/theme-taxonomy
  • 實際可用範圍與配額以控制台方案顯示為準

請求與回應

請求範例

curl --request GET \
  --url "https://api.twmarketdata.com/v2/datasets/theme-taxonomy?ticker=2330&limit=20" \
  --header "X-API-Key: your_api_key_here"

狀態碼

成功回傳公司分類資料

JSON
{
  "api_version": "v2",
  "endpoint": "/v2/datasets/theme-taxonomy",
  "request_id": "req_theme_1a2b3c4d",
  "plan_id": "developer",
  "dataset": "theme_taxonomy",
  "query": {
    "ticker": "2330",
    "market": null,
    "sector": null,
    "industry": null,
    "theme_primary": null,
    "limit": 20,
    "offset": 0,
    "sort_by": "as_of_date",
    "sort_order": "desc"
  },
  "meta": {
    "rows_returned": 1
  },
  "envelope": {
    "dataset": "theme_taxonomy",
    "ticker": "2330",
    "as_of_date": "2026-04-22",
    "release_date": "2026-04-22",
    "data": [
      {
        "ticker": "2330",
        "market": "TWSE",
        "as_of_date": "2026-04-22",
        "sector": "半導體業",
        "industry": "晶圓代工",
        "subindustry": null,
        "theme_primary": "AI基礎設施",
        "theme_secondary": "高效能運算",
        "classification_source": "issuer_classification_map+issuer_classification_taxonomy",
        "provider": "twse_official",
        "source_role": "canonical"
      }
    ]
  }
}