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 入口

方案價格文件觀點文章
EN儀表板

TW Market Data(TWMD)提供之歷史資料與統計,非投資建議;投資決策與風險由您自行判斷。

隱私政策|服務條款|幫助中心||EN|TW Market Data © 2026

文件總覽

DASHBOARD

儀表板定價

FOR AI AGENTS

MCP Serverllms.txt工具清單OpenAPI SpecAgent 工作流範例
Webhooks建置中

OVERVIEW

總覽快速開始認證來源政策資料分級資料血緣市場覆蓋

DATA APIS

股票分割/面額事件增強公司行動ESG(TESG)公司行動下市生命週期處置證券期間公司風險事件事件日曆

GUIDES

如何取得財報三表如何查三大法人籌碼如何看市場狀態如何接策略・AI Agent

SDKS

Release StatusPython SDKJavaScript / TypeScript SDK

AI agent?先讀 /llms.txt 取得全站索引。

公司與事件

ESG(TESG)

上市櫃公司 ESG(TESG)評分——永續綜合評分及其環境、社會與公司治理三大構面,彙整自官方揭露。

衍生來源: TWSE·方案: pro·計費: 3 點·GET /v2/datasets/esg-tesg

總覽

esg-tesg 為推導型資料集:TESG 綜合評分與其環境/社會/治理三構面分數,由官方企業永續揭露彙整計算而得,非以單一原始數字發布。lineage 欄位標明每個分數的推導來源,評等可稽核而非黑箱。每家公司每個評估期間一列。

欄位型別說明
symbolstring股票代碼。
periodstring評估期間(如 2025)。
tesg_scorenumberTESG 綜合評分。
environment_scorenumber環境構面分數。
social_scorenumber社會構面分數。
governance_scorenumber公司治理構面分數。
source_rolestring正規來源角色(derived_twse_tesg)。

涵蓋範圍

列數10,088
涵蓋起訖2026-06-05(單日快照)
分級衍生

範例回應

此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。

{  "dataset_id": "esg_tesg",  "request_context": {    "scope": "esg_tesg_official_open_ghg_only",    "coverage_type": "official_open_current_snapshot_only",    "filters": {      "ticker": null,      "market": null,      "report_year": null,      "as_of_date": null,      "subfamily": null,      "metric_name": null,      "disclosure_status": null,      "source_family": null,      "limit": 50    },    "min_as_of_date": "2026-06-05",    "max_as_of_date": "2026-06-05"  },  "quality": {    "row_count": 50,    "ticker_count": 9,    "sensitive_fields_exposed": false  },  "lineage": {    "source_providers": [      "twse_official"    ],    "source_roles": [      "esg_tesg_official_open"    ],    "source_families": [      "twse_ghg"    ]  },  "error": null,  "data": [    {      "ticker": "1101",      "market": "TWSE",      "report_year": 2024,      "as_of_date": "2026-06-05",      "subfamily": "ghg_carbon_disclosure",      "metric_name": "scope1_assurance",      "metric_value": "是",      "metric_unit": null,      "disclosure_status": "disclosed",      "source_provider": "twse_official",      "source_role": "esg_tesg_official_open",      "source_family": "twse_ghg",      "lineage": {        "row_index": 0,        "source_url": "https://openapi.twse.com.tw/v1/opendata/t187ap46_L_1",        "source_column": "範疇一取得驗證"      },      "data_gaps": [],      "not_investment_advice": true    },    {      "ticker": "1101",      "market": "TWSE",      "report_year": 2024,      "as_of_date": "2026-06-05",      "subfamily": "ghg_carbon_disclosure",      "metric_name": "scope1_emissions_tco2e",      "metric_value": "39544430.9992",      "metric_unit": "噸CO2e",      "disclosure_status": "disclosed",      "source_provider": "twse_official",      "source_role": "esg_tesg_official_open",      "source_family": "twse_ghg",      "lineage": {        "row_index": 0,        "source_url": "https://openapi.twse.com.tw/v1/opendata/t187ap46_L_1",        "source_column": "範疇一排放量(噸CO2e)"      },      "data_gaps": [],      "not_investment_advice": true    }  ],  "data_count": 50,  "known_gaps": [    "official_open_current_snapshot_only",    "ghg_only_initial_baseline",    "no_paid_commercial_tesg_parity_claim"  ],  "warnings": [    "not_investment_advice"  ],  "not_investment_advice": true,  "envelope": {    "dataset_id": "esg_tesg",    "scope": "esg_tesg_official_open_ghg_only",    "row_count": 50  }}

擷取自 2026-07-20 的線上 API。

本頁顯示原始中文值;英文頁會以標記取代,以維持全英文。

快速開始

  1. 把你的金鑰放進 X-API-Key 標頭。
  2. 加上查詢參數(symbol、日期區間、limit)。
  3. 送出請求並讀取 data 陣列。
curl "https://api.twmarketdata.com/v2/datasets/esg-tesg?symbol=2330" \  -H "X-API-Key: sk_live_..."

篩選參數

參數必填型別說明
symbol是string股票代碼,例如 2330。
start_date否string (YYYY-MM-DD)查詢起始日期。
end_date否string (YYYY-MM-DD)查詢結束日期。
limit否integer回傳筆數上限。

Python 範例

第一個呼叫:

import requests resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/esg-tesg",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["data"])

帶日期區間篩選:

import requests # The full verified example — the same call with every supported filter set.resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/esg-tesg",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]:    print(row)

OpenAPI

此端點為 GET /v2/datasets/esg-tesg。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。

備註與限制

  • 推導而非官方揭露:TESG 分數由官方揭露以年度評估頻率彙整,故最新期間會落後於當前年度,且分數會隨底層揭露更新而修訂。

請求與回應

請求

curl "https://api.twmarketdata.com/v2/datasets/esg-tesg?symbol=2330&start_date=2026-01-01&end_date=2026-06-30&limit=5" \  -H "X-API-Key: $TWMD_API_KEY"

以 X-API-Key 標頭認證,使用儀表板發放的 sk_live_ 金鑰。

回應

JSON
{  "dataset_id": "esg_tesg",  "request_context": {    "scope": "esg_tesg_official_open_ghg_only",    "coverage_type": "official_open_current_snapshot_only",    "filters": {      "ticker": null,      "market": null,      "report_year": null,      "as_of_date": null,      "subfamily": null,      "metric_name": null,      "disclosure_status": null,      "source_family": null,      "limit": 50    },    "min_as_of_date": "2026-06-05",    "max_as_of_date": "2026-06-05"  },  "quality": {    "row_count": 50,    "ticker_count": 9,    "sensitive_fields_exposed": false  },  "lineage": {    "source_providers": [      "twse_official"    ],    "source_roles": [      "esg_tesg_official_open"    ],    "source_families": [      "twse_ghg"    ]  },  "error": null,  "data": [    {      "ticker": "1101",      "market": "TWSE",      "report_year": 2024,      "as_of_date": "2026-06-05",      "subfamily": "ghg_carbon_disclosure",      "metric_name": "scope1_assurance",      "metric_value": "是",      "metric_unit": null,      "disclosure_status": "disclosed",      "source_provider": "twse_official",      "source_role": "esg_tesg_official_open",      "source_family": "twse_ghg",      "lineage": {        "row_index": 0,        "source_url": "https://openapi.twse.com.tw/v1/opendata/t187ap46_L_1",        "source_column": "範疇一取得驗證"      },      "data_gaps": [],      "not_investment_advice": true    },    {      "ticker": "1101",      "market": "TWSE",      "report_year": 2024,      "as_of_date": "2026-06-05",      "subfamily": "ghg_carbon_disclosure",      "metric_name": "scope1_emissions_tco2e",      "metric_value": "39544430.9992",      "metric_unit": "噸CO2e",      "disclosure_status": "disclosed",      "source_provider": "twse_official",      "source_role": "esg_tesg_official_open",      "source_family": "twse_ghg",      "lineage": {        "row_index": 0,        "source_url": "https://openapi.twse.com.tw/v1/opendata/t187ap46_L_1",        "source_column": "範疇一排放量(噸CO2e)"      },      "data_gaps": [],      "not_investment_advice": true    }  ],  "data_count": 50,  "known_gaps": [    "official_open_current_snapshot_only",    "ghg_only_initial_baseline",    "no_paid_commercial_tesg_parity_claim"  ],  "warnings": [    "not_investment_advice"  ],  "not_investment_advice": true,  "envelope": {    "dataset_id": "esg_tesg",    "scope": "esg_tesg_official_open_ghg_only",    "row_count": 50  }}

擷取自對此端點的真實呼叫,非手寫。

此資料集的資料列在 "data" 之下。各資料集的信封不同,請以本頁為準,勿沿用其他頁的形狀。

本頁的分級徽章屬文件分級,並非回應欄位。