Data Types
You can request data in several formats:
JSON
/historical/country{country}/indicator/{indicator}&f=json
Output:
[
{
"Country": "Mexico",
"Category": "GDP",
"DateTime": "2020-12-31T00:00:00",
"Value": 1090.5100,
"Frequency": "Yearly",
"HistoricalDataSymbol": "WGDPMEXI",
"LastUpdate": "2023-06-30T15:54:00"
},
{
"Country": "Mexico",
"Category": "GDP",
"DateTime": "2021-12-31T00:00:00",
"Value": 1272.8400,
"Frequency": "Yearly",
"HistoricalDataSymbol": "WGDPMEXI",
"LastUpdate": "2022-12-30T12:46:00"
},
{
"Country": "Mexico",
"Category": "GDP",
"DateTime": "2022-12-31T00:00:00",
"Value": 1414.1900,
"Frequency": "Yearly",
"HistoricalDataSymbol": "WGDPMEXI",
"LastUpdate": "2023-06-30T15:54:00"
}
]
XML
/historical/country{country}/indicator/{indicator}&f=xml
Output:
<ArrayOfHistoricalIndicator xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<HistoricalIndicator>
<Category>GDP</Category>
<Country>Mexico</Country>
<DateTime>2020-12-31T00:00:00</DateTime>
<Frequency>Yearly</Frequency>
<HistoricalDataSymbol>WGDPMEXI</HistoricalDataSymbol>
<LastUpdate>2023-06-30T15:54:00</LastUpdate>
<Value>1090.5100</Value>
</HistoricalIndicator>
<HistoricalIndicator>
<Category>GDP</Category>
<Country>Mexico</Country>
<DateTime>2021-12-31T00:00:00</DateTime>
<Frequency>Yearly</Frequency>
<HistoricalDataSymbol>WGDPMEXI</HistoricalDataSymbol>
<LastUpdate>2022-12-30T12:46:00</LastUpdate>
<Value>1272.8400</Value>
</HistoricalIndicator>
<HistoricalIndicator>
<Category>GDP</Category>
<Country>Mexico</Country>
<DateTime>2022-12-31T00:00:00</DateTime>
<Frequency>Yearly</Frequency>
<HistoricalDataSymbol>WGDPMEXI</HistoricalDataSymbol>
<LastUpdate>2023-06-30T15:54:00</LastUpdate>
<Value>1414.1900</Value>
</HistoricalIndicator>
</ArrayOfHistoricalIndicator>
CSV
/historical/country{country}/indicator/{indicator}&f=csv
Output:
Country | Category | DateTime | Close | Frequency | HistoricalDataSymbol | LastUpdate |
---|---|---|---|---|---|---|
Mexico | GDP | 12/31/2020 12:00:00 AM | 1090.5100 | Yearly | WGDPMEXI | 6/30/2023 3:54:00 PM |
Mexico | GDP | 12/31/2021 12:00:00 AM | 1272.8400 | Yearly | WGDPMEXI | 12/30/2022 12:46:00 PM |
Mexico | GDP | 12/31/2022 12:00:00 AM | 1414.1900 | Yearly | WGDPMEXI | 6/30/2023 3:54:00 PM |