/api/v1/seriesTime series
Annual values for one indicator and up to 50 economies or aggregates. Returns 400 with an error message for an unknown indicator or country code.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| indicator | string | fdi_in | Indicator id — see the list below. |
| countries | string | WLD | Comma-separated ISO3 codes (economies or aggregates such as WLD, EAS, HIC). Maximum 50. |
| from | integer | 1970 | First year to include. |
| to | integer | latest | Last year to include. |
| format | json | csv | json | CSV returns long format: iso3, country, year, value. |
Example request
curl "https://fdistats.com/api/v1/series?indicator=fdi_in&countries=AUS,USA&from=2022&to=2024"Example response
{
"indicator": {
"id": "fdi_in",
"code": "BX.KLT.DINV.CD.WD",
"label": "FDI net inflows",
"unit": "usd_m"
},
"source": "World Bank, World Development Indicators (CC BY 4.0) via fdistats.com",
"series": [
{
"iso3": "AUS",
"name": "Australia",
"data": [
{
"year": 2022,
"value": 68709.4
},
{
"year": 2023,
"value": 35316
},
{
"year": 2024,
"value": 53722.9
}
]
},
{
"iso3": "USA",
"name": "United States",
"data": [
{
"year": 2022,
"value": 416890
},
{
"year": 2023,
"value": 361944
},
{
"year": 2024,
"value": 297058
}
]
}
]
}