Building an AI agent? Start with /llms.txt for the full site index.
Macroeconomics
World Bank development indicators — long-run cross-country macro series sourced directly from the World Bank.
GET /v2/datasets/macro-worldbankmacro-worldbank returns one row per indicator per year for World Bank development indicators. It is international-source macro context, not a TWSE feed; each row names the World Bank indicator code in its lineage so a value can be reconciled against the original World Bank series.
| Field | Type | Description |
|---|---|---|
indicator | string | World Bank indicator code (e.g. NY.GDP.MKTP.CD). |
country | string | ISO country / region code. |
year | integer | Reference year. |
value | number | Indicator value for the year. |
source_role | string | Canonical source role (worldbank_indicator). |
lineage | object | Upstream World Bank indicator + release for the value. |
| Rows | 1,362,467 |
| Window | 1960 – 2025 |
| Grade | Verified |
TODO — no real response has been captured for this dataset yet. It needs an entitled API key, or its required parameters are not yet known. Rather than show an example nobody has observed, this section stays empty.
curl "https://api.twmarketdata.com/v2/datasets/macro-worldbank?country=TWN" \ -H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
symbol | Yes | string | Ticker, e.g. 2330. |
start_date | No | string (YYYY-MM-DD) | Start of the query range. |
end_date | No | string (YYYY-MM-DD) | End of the query range. |
limit | No | integer | Maximum rows to return. |
A first call:
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())With a date-range filter:
import requests # The full verified example — the same call with every supported filter set.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())This endpoint is GET /v2/datasets/macro-worldbank. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.