GET /historical/country/{country}/indicator/{indicator}

tradingeconomics.com:trading-economics-api

Summary: Get historical data for country and indicator
Operation ID:
Auth: unknown
Description

Retrieve historical time series data for a specific country and economic indicator.

Parameters (4)

c (string, query, required)

API key. Use 'guest:guest' for limited access.

country (string, path, required)

Country name (e.g., 'mexico', 'united states')

f (string, query, optional)

Output format

Constraints: {'enum': ['json', 'csv', 'xml', 'html']}

indicator (string, path, required)

Indicator name (e.g., 'gdp', 'inflation-rate')

Examples (1)

TitleTypeURLAction
Get historical data for country and indicator openapi-spec https://api.tradingeconomics.com/historical/country/mexico/indicator/gdp?c=guest:guest&f=json

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 09:35:54.077223 200 453ms