Building an AI agent? Start with /llms.txt for the full site index.
Market & Prices
Index classification — the reference lookup mapping each index code to its family and category (broad-market, sector, thematic).
← Index classification overview
GET /v2/datasets/index-classificationIndex classification is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/index-classification.
index-classification is a reference dataset: one record per index describing where it sits in the TWSE index hierarchy. Use it to resolve an index code to its name and category, or to enumerate the indices in a family. It is a lookup snapshot, not a time series of levels.
| Field | Type | Description |
|---|---|---|
index_code | string | Index code. |
market | string | |
as_of_date | string | |
index_name | string | Index display name. |
index_type | string | |
sector | null | |
industry | null | |
parent_index_code | null | |
is_sector_index | boolean | |
is_broad_market_index | boolean | |
theme_primary | null | |
theme_secondary | null |
| Rows | 5 |
| Window | 2026-05-22 – 2026-05-28 |
| Grade | Reference |
| Measured | 2026-09-01from the dataset registry |
A real response from this endpoint. Rows are returned under "envelope.data", and provenance is carried in the shape shown below — it is not identical across datasets, so read this page's rather than assuming another's.
{
"api_version": "v2",
"endpoint": "/v2/datasets/index-classification",
"request_id": "req_90acb32ace38",
"plan_id": "enterprise",
"dataset": "index_classification",
"query": {
"index_code": null,
"market": "TWSE",
"index_type": null,
"sector": null,
"industry": null,
"limit": 50,
"offset": 0,
"sort_by": "as_of_date",
"sort_order": "desc"
},
"meta": {
"rows_returned": 5,
"mandatory_contract_fields_present": [
"api_version",
"data",
"data_as_of"
],
"plan": "enterprise",
"row_limit": 100000,
"is_limited": false
},
"envelope": {
"api_version": "v2",
"dataset": "index_classification",
"dataset_version": "v2.0.0-preview",
"release_version": "v2.2026-05-28.preview",
"release_date": "2026-05-28",
"data_as_of": "2026-05-28",
"request_context": {
"ticker": null,
"as_of_date": "2026-05-28",
"family": "market_structure_corporate_actions",
"field_group_type": "derived",
"dataset_view": "index_classification_v1",
"supported_sort_by": [
"as_of_date",
"index_code"
],
"supported_filter_fields": [
"index_code",
"market",
"index_type"
]
},
"data": [
{
"index_code": "TWSE_TAIEX",
"market": "TWSE",
"as_of_date": "2026-05-28",
"classification_version": "v1",
"index_name": "TWSE Capitalization Weighted Stock Index",
"index_type": "broad_market",
"sector": null,
"industry": null,
"parent_index_code": null,
"is_sector_index": false,
"is_broad_market_index": true,
"theme_primary": null,
"theme_secondary": null,
"classification_source": "index_code_mapping_v1",
"provider": "twse_official",
"source_role": "official_twse_mi_index",
"lineage": {
"source_key": {
"market": "TWSE",
"as_of_date": "2026-05-28",
"index_code": "TWSE_TAIEX"
},
"mapping_rule": "deterministic index_code mapping v1 only",
"upstream_lineage": {
"source": "TWSE_MI_INDEX",
"source_date": "2026-05-28",
"source_type": "ALLBUT0999",
"special_note": null,
"identity_rule": "exact_index_name_match",
"source_lineage": {
"row_number": 1,
"table_index": 0,
"table_title": "<Chinese value - see the zh page>"
},
"source_table_id": "table_0",
"turnover_lineage": {
"stat_item": "<Chinese value - see the zh page>",
"row_number": 0,
"table_index": 6,
"table_title": "<Chinese value - see the zh page>"
}
},
"classification_version": "v1",
"excluded_fields_reason": "ai/theme confidence/ranking/regime fields excluded by deterministic policy"
},
"updated_at": "2026-06-17T05:21:52.769338"
},
{
"index_code": "TWSE_TAIEX",
"market": "TWSE",
"as_of_date": "2026-05-27",
"classification_version": "v1",
"index_name": "TWSE Capitalization Weighted Stock Index",
"index_type": "broad_market",
"sector": null,
"industry": null,
"parent_index_code": null,
"is_sector_index": false,
"is_broad_market_index": true,
"theme_primary": null,
"theme_secondary": null,
"classification_source": "index_code_mapping_v1",
"provider": "twse_official",
"source_role": "official_twse_mi_index",
"lineage": {
"source_key": {
"market": "TWSE",
"as_of_date": "2026-05-27",
"index_code": "TWSE_TAIEX"
},
"mapping_rule": "deterministic index_code mapping v1 only",
"upstream_lineage": {
"source": "TWSE_MI_INDEX",
"source_date": "2026-05-27",
"source_type": "ALLBUT0999",
"special_note": null,
"identity_rule": "exact_index_name_match",
"source_lineage": {
"row_number": 1,
"table_index": 0,
"table_title": "<Chinese value - see the zh page>"
},
"source_table_id": "table_0",
"turnover_lineage": {
"stat_item": "<Chinese value - see the zh page>",
"row_number": 0,
"table_index": 6,
"table_title": "<Chinese value - see the zh page>"
}
},
"classification_version": "v1",
"excluded_fields_reason": "ai/theme confidence/ranking/regime fields excluded by deterministic policy"
},
"updated_at": "2026-06-17T05:21:52.769338"
}
],
"quality": {
"freshness_state": "fresh",
"freshness_as_of": "2026-05-28",
"completeness_ratio": 1,
"quality_status": "ready"
},
"lineage": {
"source_role": "canonical",
"selected_source": "index_classification",
"fallback_chain": [],
"policy_notes": [
"official/public-first canonical",
"index classification facts mapped deterministically from canonical index/classification sources",
"ai/rank/regime fields excluded from public contract"
]
},
"error": {
"error_code": null,
"error_message": null,
"dataset": "index_classification",
"request_id": "read-api-66158c9b9f87",
"blocking_gate": null
}
}
}Captured from the live API on 2026-07-20.
Chinese data values are shown as a marker here so this page stays in English; the /zh page shows them verbatim.
These columns are returned alongside the data and record where the row came from. They are provenance, not the dataset's subject matter, so they are listed here rather than in the field table.
classification_versionclassification_sourceprovidersource_rolelineageupdated_atPart of the data in this service is obtained from the Government Open Data Platform (data.gov.tw) and used under the Open Government Data License, version 1.0. Providing agencies: Taiwan Stock Exchange, Taipei Exchange, Taiwan Futures Exchange, Taiwan Depository & Clearing Corporation, National Development Council, Central Bank of the Republic of China (Taiwan), Department of Statistics of the Ministry of Economic Affairs, and Customs Administration of the Ministry of Finance. The value-added processing, derived calculations and presentation in this service are the responsibility of TWMD and are not associated with the providing agencies.
TW Market Data. (n.d.). Index classification [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/en/docs/api/market-prices/index-classification
The version is the dataset's own as_of, not the date this page was built. Where we have no as_of the field is left out rather than filled in. Check a signature
Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.
Joins on as_of_date + market
Joins on as_of_date + market
Joins on as_of_date + market
Joins on as_of_date + market
Joins on as_of_date + market
Same domain: market-prices
Joins on as_of_date
curl "https://api.twmarketdata.com/v2/datasets/index-classification?market=TWSE" \
-H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
index_code | No | string | Declared by the endpoint in envelope.request_context.supported_filter_fields. |
market | No | string | Declared by the endpoint in envelope.request_context.supported_filter_fields. |
index_type | No | string | Declared by the endpoint in envelope.request_context.supported_filter_fields. |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/index-classification",
params={"market": "TWSE"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["envelope"]["data"])This endpoint is GET /v2/datasets/index-classification. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.