API Endpoints Reference
Complete reference for ECODATA API endpoints.
Indicators
Get Indicators
GET /api/v1/indicators
| Parameter | Type | Required | Description |
|---|---|---|---|
| source | string | Yes | Data source (WB, IMF, GSO, etc.) |
| indicator | string | Yes | Indicator code |
| country | string | Yes | ISO 2-letter country code |
| start_year | int | No | Start year |
| end_year | int | No | End year |
Batch Query
POST /api/v1/indicators/batch
{
"source": "WB",
"indicators": ["NY.GDP.MKTP.CD", "FP.CPI.TOTL.ZG"],
"countries": ["VN", "TH", "ID"],
"start_year": 2020,
"end_year": 2023
}
Metadata
List Sources
GET /api/v1/sources
List Indicators by Source
GET /api/v1/sources/{source_code}/indicators
List Countries
GET /api/v1/countries
Export
Export to CSV
GET /api/v1/export/csv
Export to Excel
GET /api/v1/export/excel
Response Codes
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Not found |
| 429 | Rate limit exceeded |
| 500 | Server error |
Full Documentation
Interactive API docs at https://ecodata.khoviet.com/api/docs