Endpoints
API endpoints reference
Time Series
GET /api/v1/timeseries/{code}
Returns time series data for an indicator.
| Param | Type | Description |
|---|---|---|
| country | string | ISO3 code (required for trial) |
| start_date | date | YYYY-MM-DD |
| end_date | date | YYYY-MM-DD |
| limit | int | Max points (default 10000, trial max 1000) |
GET /api/v1/timeseries/{code}/top-countries
Returns top N countries by latest value.
| Param | Type | Description |
|---|---|---|
| limit | int | 1–50 (trial max 10) |
Metadata
GET /api/v1/indicators— List indicatorsGET /api/v1/sources— List data sources for indicators (Data Sources)GET /api/v1/news-sources— List RSS news sources (News Sources)GET /api/v1/indicators/{code}— Indicator metadataGET /api/v1/indicators/by-slug/{slug}— By URL slugGET /api/v1/indicators/{code}/countries— Countries with dataGET /api/v1/countries— List countriesGET /api/v1/countries/{iso3}/indicators— Indicators for countryGET /api/v1/categories— List categoriesGET /api/v1/stats— Database stats
News
GET /api/v1/news— News with optional indicator, category, country filters
Chat
Not available via API. Chat is only available on econdash.org.