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:

CountryCategoryDateTimeCloseFrequencyHistoricalDataSymbolLastUpdate
MexicoGDP12/31/2020 12:00:00 AM1090.5100YearlyWGDPMEXI6/30/2023 3:54:00 PM
MexicoGDP12/31/2021 12:00:00 AM1272.8400YearlyWGDPMEXI12/30/2022 12:46:00 PM
MexicoGDP12/31/2022 12:00:00 AM1414.1900YearlyWGDPMEXI6/30/2023 3:54:00 PM