Economic Indicators

Trading Economics provides its API members with access to millions of economics indicators for 196 countries

Data by country

Get a snapshot with the most important indicators data for a specific country or countries.

import tradingeconomics as te
te.login('your_api_key')
te.getIndicatorData(country='mexico')
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getIndicatorData(country = 'mexico').then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/country/mexico?c=guest:guest");

You can receive data in several formats by appending the “f” parameter to your request.

/country/{country}

CountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
MexicoAuto ExportsMexico Auto Exports6/30/2023 12:00:00 AM286.29Instituto Nacional de Estadística y Geografía (INEGI)https://www.inegi.org.mx/Thousand Units/mexico/auto-exportsTradeNSAMonthlyMEXICOAUTEXP7/23/2019 12:20:00 PM1/31/1988 12:00:00 AM279.275/31/2023 12:00:00 AM
MexicoBalance of TradeMexico Balance of Trade5/31/2023 12:00:00 AM-74.00Instituto Nacional de Estadística y Geografía (INEGI)https://www.inegi.org.mx/USD Million/mexico/balance-of-tradeTradeNSAMonthlyMXTBBAL7/25/2014 2:01:00 PM1/31/1980 12:00:00 AM-1509.004/30/2023 12:00:00 AM
MexicoBanks Balance SheetMexico Banks Balance Sheet4/30/2023 12:00:00 AM10335903.02Banco de Méxicohttps://www.banxico.org.mxMXN Million/mexico/banks-balance-sheetTradeNSAMonthlyMEXICOBANBALSHE9/8/2014 3:29:00 PM12/31/2000 12:00:00 AM10169075.643/31/2023 12:00:00 AM

/country/{country}?f=json

[{"Country":"Mexico","Category":"Auto Exports","Title":"Mexico Auto Exports","LatestValueDate":"2023-08-31T00:00:00","LatestValue":287.85,"Source":"Instituto Nacional de Estadística y Geografía (INEGI)","SourceURL":"https://www.inegi.org.mx/","Unit":"Thousand Units","URL":"/mexico/auto-exports","CategoryGroup":"Trade","Adjustment":"NSA","Frequency":"Monthly","HistoricalDataSymbol":"MEXICOAUTEXP","CreateDate":"2019-07-23T12:20:00","FirstValueDate":"1988-01-31T00:00:00","PreviousValue":275.77,"PreviousValueDate":"2023-07-31T00:00:00"},{"Country":"Mexico","Category":"Balance of Trade","Title":"Mexico Balance of Trade","LatestValueDate":"2023-08-31T00:00:00","LatestValue":-1377.09,"Source":"Instituto Nacional de Estadística y Geografía (INEGI)","SourceURL":"https://www.inegi.org.mx/","Unit":"USD Million","URL":"/mexico/balance-of-trade","CategoryGroup":"Trade","Adjustment":"NSA","Frequency":"Monthly","HistoricalDataSymbol":"MXTBBAL","CreateDate":"2014-07-25T14:01:00","FirstValueDate":"1980-01-31T00:00:00","PreviousValue":-881.20,"PreviousValueDate":"2023-07-31T00:00:00"},{"Country":"Mexico","Category":"Banks Balance Sheet","Title":"Mexico Banks Balance Sheet","LatestValueDate":"2023-07-31T00:00:00","LatestValue":10602555.40,"Source":"Banco de México","SourceURL":"http://www.banxico.org.mx","Unit":"MXN Million","URL":"/mexico/banks-balance-sheet","CategoryGroup":"Money","Adjustment":"NSA","Frequency":"Monthly","HistoricalDataSymbol":"MEXICOBANBALSHE","CreateDate":"2014-09-08T15:29:00","FirstValueDate":"2000-12-31T00:00:00","PreviousValue":10485011.08,"PreviousValueDate":"2023-06-30T00:00:00"}]

/country/{country}?f=csv

Country,Category,Title,LatestValueDate,LatestValue,Source,SourceURL,Unit,URL,CategoryGroup,Adjustment,Frequency,HistoricalDataSymbol,CreateDate,FirstValueDate,PreviousValue,PreviousValueDate
Mexico,Auto Exports,Mexico Auto Exports,8/31/2023 12:00:00 AM,287.85,Instituto Nacional de Estadística y Geografía (INEGI),https://www.inegi.org.mx/,Thousand Units,/mexico/auto-exports,Trade,NSA,Monthly,MEXICOAUTEXP,7/23/2019 12:20:00 PM,1/31/1988 12:00:00 AM,275.77,7/31/2023 12:00:00 AM
Mexico,Balance of Trade,Mexico Balance of Trade,8/31/2023 12:00:00 AM,-1377.09,Instituto Nacional de Estadística y Geografía (INEGI),https://www.inegi.org.mx/,USD Million,/mexico/balance-of-trade,Trade,NSA,Monthly,MXTBBAL,7/25/2014 2:01:00 PM,1/31/1980 12:00:00 AM,-881.20,7/31/2023 12:00:00 AM
Mexico,Banks Balance Sheet,Mexico Banks Balance Sheet,7/31/2023 12:00:00 AM,10602555.40,Banco de México,http://www.banxico.org.mx,MXN Million,/mexico/banks-balance-sheet,Money,NSA,Monthly,MEXICOBANBALSHE,9/8/2014 3:29:00 PM,12/31/2000 12:00:00 AM,10485011.08,6/30/2023 12:00:00 AM

/country/{country}?f=xml

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ArrayOfCountryIndicator xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<CountryIndicator>
<Adjustment>NSA</Adjustment>
<Category>Auto Exports</Category>
<CategoryGroup>Trade</CategoryGroup>
<Country>Mexico</Country>
<CreateDate>2019-07-23T12:20:00</CreateDate>
<FirstValueDate>1988-01-31T00:00:00</FirstValueDate>
<Frequency>Monthly</Frequency>
<HistoricalDataSymbol>MEXICOAUTEXP</HistoricalDataSymbol>
<LatestValue>287.85</LatestValue>
<LatestValueDate>2023-08-31T00:00:00</LatestValueDate>
<PreviousValue>275.77</PreviousValue>
<PreviousValueDate>2023-07-31T00:00:00</PreviousValueDate>
<Source>Instituto Nacional de Estadística y Geografía (INEGI)</Source>
<SourceURL>https://www.inegi.org.mx/</SourceURL>
<Title>Mexico Auto Exports</Title>
<URL>/mexico/auto-exports</URL>
<Unit>Thousand Units</Unit>
</CountryIndicator>
<CountryIndicator>
<Adjustment>NSA</Adjustment>
<Category>Balance of Trade</Category>
<CategoryGroup>Trade</CategoryGroup>
<Country>Mexico</Country>
<CreateDate>2014-07-25T14:01:00</CreateDate>
<FirstValueDate>1980-01-31T00:00:00</FirstValueDate>
<Frequency>Monthly</Frequency>
<HistoricalDataSymbol>MXTBBAL</HistoricalDataSymbol>
<LatestValue>-1377.09</LatestValue>
<LatestValueDate>2023-08-31T00:00:00</LatestValueDate>
<PreviousValue>-881.20</PreviousValue>
<PreviousValueDate>2023-07-31T00:00:00</PreviousValueDate>
<Source>Instituto Nacional de Estadística y Geografía (INEGI)</Source>
<SourceURL>https://www.inegi.org.mx/</SourceURL>
<Title>Mexico Balance of Trade</Title>
<URL>/mexico/balance-of-trade</URL>
<Unit>USD Million</Unit>
</CountryIndicator>
<CountryIndicator>
<Adjustment>NSA</Adjustment>
<Category>Banks Balance Sheet</Category>
<CategoryGroup>Money</CategoryGroup>
<Country>Mexico</Country>
<CreateDate>2014-09-08T15:29:00</CreateDate>
<FirstValueDate>2000-12-31T00:00:00</FirstValueDate>
<Frequency>Monthly</Frequency>
<HistoricalDataSymbol>MEXICOBANBALSHE</HistoricalDataSymbol>
<LatestValue>10602555.40</LatestValue>
<LatestValueDate>2023-07-31T00:00:00</LatestValueDate>
<PreviousValue>10485011.08</PreviousValue>
<PreviousValueDate>2023-06-30T00:00:00</PreviousValueDate>
<Source>Banco de México</Source>
<SourceURL>http://www.banxico.org.mx</SourceURL>
<Title>Mexico Banks Balance Sheet</Title>
<URL>/mexico/banks-balance-sheet</URL>
<Unit>MXN Million</Unit>
</CountryIndicator>
</ArrayOfCountryIndicator>

Please consider that not all indicators are displayed and if you want a comprehensive list of all indicators that we have available you will need pass a category group argument as displayed in an example below.

Data for Multiple Countries

/country/{countries}

te.getIndicatorData(country=['mexico', 'sweden'])
data = te.getIndicatorData(country = ['mexico', 'sweden']).then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/country/mexico,sweden?c=guest:guest");
CountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
SwedenAsylum ApplicationsSweden Asylum Applications5/31/2023 12:00:00 AM835.00EUROSTAThttps://ec.europa.eu/eurostat/persons/sweden/asylum-applicationsGovernmentMonthlySwedenAsyApp9/6/2015 3:26:00 PM1/31/2008 12:00:00 AM695.004/30/2023 12:00:00 AM
MexicoAuto ExportsMexico Auto Exports6/30/2023 12:00:00 AM286.29Instituto Nacional de Estadística y Geografía (INEGI)https://www.inegi.org.mx/Thousand Units/mexico/auto-exportsTradeNSAMonthlyMEXICOAUTEXP7/23/2019 12:20:00 PM1/31/1988 12:00:00 AM279.275/31/2023 12:00:00 AM
SwedenAverage Weekly HoursSweden Average Weekly Hours5/31/2023 12:00:00 AM30.60Statistics Swedenhttps://www.scb.se/Hours/sweden/average-weekly-hoursLabourNSAMonthlySWEAVGWEEKLYHOURS6/30/2023 8:35:00 AM1/31/1987 12:00:00 AM30.104/30/2023 12:00:00 AM

Data by Country and Group

Get all indicators by specific country and group

/country/{country}?c=guest:guest&group={group}

te.getIndicatorByCategoryGroup(country='mexico', category_group='gdp')
data = te.getIndicatorData(country = 'mexico', group = 'gdp' ).then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/country/mexico?c=guest:guest&group=gdp");
CountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
MexicoFull Year GDP GrowthMexico Full Year Gdp Growth12/31/2022 12:00:00 AM3.10Instituto Nacional de Estadística y Geografía (INEGI)https://www.inegi.org.mxpercent/mexico/full-year-gdp-growthGDPNSAYearlyMEXFYGG1/31/2022 6:49:00 PM12/31/1994 12:00:00 AM5.0012/31/2021 12:00:00 AM
MexicoGDPMexico GDP12/31/2022 12:00:00 AM1414.19World Bankhttps://www.worldbank.org/USD Billion/mexico/gdpGDPCurrent USDYearlyWGDPMEXI7/3/2014 3:32:00 PM12/31/1960 12:00:00 AM1272.8412/31/2021 12:00:00 AM
MexicoGDP Aggregate Demand QoQMexico GDP Aggregate Demand QoQ3/31/2023 12:00:00 AM1.80Instituto Nacional de Estadística y Geografía (INEGI)https://www.inegi.org.mxpercent/mexico/gdp-aggregate-demand-qoqGDPSAQuarterlyMEXGADQ11/3/2021 1:25:00 PM6/30/1993 12:00:00 AM0.0012/31/2022 12:00:00 AM

Countries by Indicator

Get data for all countries for specific indicator

/country/all/{indicator}

te.getIndicatorData(indicators='gdp')
data = te.getIndicatorData(indicator = 'gdp').then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/country/all/gdp?c=guest:guest");
CountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
AfghanistanGDPAfghanistan GDP12/31/2021 12:00:00 AM14.58World Bankhttps://www.worldbank.org/USD Billion/afghanistan/gdpGDPCurrent USDYearlyAFGSTANGDP11/7/2012 2:06:00 PM12/31/1960 12:00:00 AM20.1412/31/2020 12:00:00 AM
AlbaniaGDPAlbania GDP12/31/2022 12:00:00 AM18.88World Bankhttps://www.worldbank.org/USD Billion/albania/gdpGDPCurrent USDYearlyALBANIAGDP10/8/2012 1:36:00 PM12/31/1984 12:00:00 AM17.9312/31/2021 12:00:00 AM
AlgeriaGDPAlgeria GDP12/31/2022 12:00:00 AM191.91World Bankhttps://algeria/gdpUSD Billion/afghanistan/gdpGDPCurrent USDYearlyAlgeriaGDP6/27/2011 12:00:00 AM12/31/1960 12:00:00 AM163.4712/31/2021 12:00:00 AM

By ticker

Get data by specific ticker

/country/ticker/{ticker}

te.getIndicatorByTicker(ticker='usurtot')
data = te.getIndicatorData(ticker = 'usurtot').then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/country/ticker/usurtot?c=guest:guest");
CountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
United StatesUnemployment RateUnited States Unemployment Rate6/30/2023 12:00:00 AM3.60U.S. Bureau of Labor Statisticshttps://www.bls.gov/percent/united-states/unemployment-rateLabourMonthlyUSURTOT2/23/2012 11:41:00 AM1/31/1948 12:00:00 AM3.705/31/2023 12:00:00 AM

Response fields

FieldTypeDescriptionExample
CountrystringCountry name“Algeria”
CategorystringCategory name“Auto Exports”,
TitlestringCombination of country/category“Mexico Auto Exports”
LatestValueDatestringDate of the last released value“2023-03-31T00:00:00”
LatestValuenumberLast released value272.69
SourcestringSource of the data“Instituto Nacional de Estadística y Geografía (INEGI)”
SourceURLstringURL link of the source“https://www.inegi.org.mx/”
UnitstringUnit of the value“Thousand Units”
URLstringHyperlink at Trading Economics“/mexico/auto-exports”
CategoryGroupstringCategory group name“Trade”
AdjustmentstringData description, for example: base period, price adjustment, seasonality“Current USD
FrequencystringFrequency of the indicator“Monthly”
HistoricalDataSymbolstringUnique symbol used by Trading Economics“MEXICOAUTEXP”
CreateDatestringTime when an indicator was inserted“2019-07-23T12:20:00”
FirstValueDatestringDate of the first value in the historical series“1988-01-31T00:00:00”
PreviousValuenumberPreviously released value230.48
PreviousValueDatestringDate of the previously released value“2023-02-28T00:00:00”