AI agent?先讀 /llms.txt 取得全站索引。
總體經濟
世界銀行發展指標——直接取自世界銀行的長期跨國總經序列。
GET /v2/datasets/macro-worldbank世界銀行總經是台灣市場資料集,來源為 World Bank,由 TW Market Data 以 GET /v2/datasets/macro-worldbank 提供。
macro-worldbank 針對世界銀行發展指標,每個指標每個年度回傳一列。此為國際來源的總經脈絡,非 TWSE 資料源;每列於 lineage 標明世界銀行指標代碼,數值可與世界銀行原始序列對帳。
| 欄位 | 型別 | 說明 |
|---|---|---|
country_iso | string | |
country_name | string | |
indicator_code | string | |
indicator_name | string | |
year | number | 資料年度。 |
value | number | 當年度指標值。 |
source_group | string | |
license | string |
| 列數 | 1,363,937 |
| 涵蓋起訖 | 1960 – 2025 |
| 分級 | 已驗證 |
| 量測時間 | 2026-09-01取自資料集登錄表 |
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{
"api_version": "v2",
"endpoint": "/v2/datasets/macro-worldbank",
"request_id": "req_b747ed1ecfac",
"plan_id": "enterprise",
"dataset": "macro_worldbank",
"dataset_id": "macro_worldbank",
"request_context": {
"scope": "worldbank_wdi_country_indicator_panel",
"coverage_type": "worldbank_open_data_wdi_ccby",
"filters": {
"country_iso": null,
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": null,
"year_from": null,
"year_to": null,
"limit": 50
},
"min_year": 2025,
"max_year": 2025
},
"quality": {
"row_count": 50,
"country_count": 50,
"indicator_count": 1,
"raw_payload_exposed": false
},
"lineage": {
"source_groups": [
"WorldBank"
],
"source_providers": [
"worldbank_open_data"
],
"source_families": [
"WorldBank_WDI"
],
"license": "CC-BY"
},
"error": null,
"data": [
{
"country_iso": "ABW",
"country_name": "Aruba",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 16.5191058508056,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
},
{
"country_iso": "AFE",
"country_name": "Africa Eastern and Southern",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 40.0294227514603,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
}
],
"data_count": 50,
"known_gaps": [
"worldbank_wdi_annual_panel",
"taiwan_absent_worldbank_non_member_use_business_indicator",
"not_taiwan_market_data"
],
"data_gaps": [
"worldbank_wdi_annual_panel",
"taiwan_absent_worldbank_non_member_use_business_indicator",
"not_taiwan_market_data"
],
"query": {
"country_iso": null,
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": null,
"year_from": null,
"year_to": null,
"limit": 50
},
"meta": {
"rows_returned": 50,
"mandatory_contract_fields_present": [
"data",
"error",
"lineage"
],
"plan": "enterprise",
"row_limit": 100000,
"is_limited": false
},
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "macro_worldbank",
"request_context": {
"scope": "worldbank_wdi_country_indicator_panel",
"coverage_type": "worldbank_open_data_wdi_ccby",
"filters": {
"country_iso": null,
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": null,
"year_from": null,
"year_to": null,
"limit": 50
},
"min_year": 2025,
"max_year": 2025
},
"quality": {
"row_count": 50,
"country_count": 50,
"indicator_count": 1,
"raw_payload_exposed": false
},
"lineage": {
"source_groups": [
"WorldBank"
],
"source_providers": [
"worldbank_open_data"
],
"source_families": [
"WorldBank_WDI"
],
"license": "CC-BY"
},
"error": null,
"data": [
{
"country_iso": "ABW",
"country_name": "Aruba",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 16.5191058508056,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
},
{
"country_iso": "AFE",
"country_name": "Africa Eastern and Southern",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 40.0294227514603,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
}
],
"known_gaps": [
"worldbank_wdi_annual_panel",
"taiwan_absent_worldbank_non_member_use_business_indicator",
"not_taiwan_market_data"
],
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "macro_worldbank",
"scope": "worldbank_wdi_country_indicator_panel",
"row_count": 50
}
}
}擷取自 2026-07-20 的線上 API。
以下欄位會隨資料一併回傳,記錄這一列的來源。它們屬於出處而非本資料集要講的事實,因此列在這裡而不進欄位表。
lineage資料來源:World Bank Open Data
TW Market Data. (n.d.). 世界銀行總經 [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/macro/macro-worldbank
版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
同分類:macro
同分類:macro
同分類:macro
同分類:macro
同分類:macro
curl "https://api.twmarketdata.com/v2/datasets/macro-worldbank?country=TWN" \
-H "X-API-Key: sk_live_..."| 參數 | 必填 | 型別 | 說明 |
|---|---|---|---|
country | 否 | string | 國家代碼,例如 TWN。 |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/macro-worldbank",
params={"country": "TWN"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])此端點為 GET /v2/datasets/macro-worldbank。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。