Peers

It’s also possible to get Indicators’ related peers with the API.

By ticker

Get peers data by specific ticker.

/peers/(ticker)

import tradingeconomics as te
te.login('your_api_key')

te.getPeers(ticker='CPI YOY')
const te = require('tradingeconomics');
te.login('your_api_key');

data = te.getPeers(ticker = 'CPI YOY').then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/peers/CPI%20YOY?c=guest:guest");
TickerPeerRelationshipCountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
CPI YOYTEDSTACONPRIINDCP0United StatesConsumer Price Index CPIUnited States Consumer Price Index (CPI)5/31/2023 12:00:00 AM304.13U.S. Bureau of Labor Statisticshttp://www.bls.govpoints/united-states/consumer-price-index-cpiPrices“1982-1984=100, NSA”MonthlyUNITEDSTACONPRIINDCP6/11/2014 9:44:00 AM1/31/1950 12:00:00 AM303.364/30/2023 12:00:00 AM
CPI YOYUNITEDSTACORCONPRI0United StatesCore Consumer PricesUnited States Core Consumer Prices5/31/2023 12:00:00 AM307.82U.S. Bureau of Labor Statisticshttp://www.bls.govpoints/united-states/core-consumer-pricesPrices“1982-1984=100, SA”MonthlyUNITEDSTACORCONPRI6/18/2013 4:46:00 PM1/31/1957 12:00:00 AM306.494/30/2023 12:00:00 AM
CPI YOYUSACORECPIRATE1United StatesCore Inflation RateUnited States Core Inflation Rate5/31/2023 12:00:00 AM5.30U.S. Bureau of Labor Statisticshttps://www.bls.govpercent/united-states/core-inflation-ratePrices“1982-1984=100, NSA”MonthlyUSACORECPIRATE10/2/2012 2:16:00 PM2/28/1957 12:00:00 AM5.504/30/2023 12:00:00 AM

By country and category

Get peers data by specific country and category

/peers/country/(country)/(category)

te.getPeers(country='mexico', category='money')
data = te.getPeers(country = 'mexico', category = 'money').then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/peers/country/mexico/money?c=guest:guest");
TickerPeerRelationshipCountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
MEXFRINRDPSTMEXFRINRDPST-1MexicoDeposit Interest RateDeposit Interest Rate in Mexico3/31/2023 12:00:00 AM4.57IMFhttp://www.imf.orgpercent/mexico/deposit-interest-rateMoneyMonthlyMEXFRINRDPST12/3/2015 2:37:00 PM1/31/1976 12:00:00 AM4.432/28/2023 12:00:00 AM
MEXICOBANBALSHEMEXICOBANBALSHE-1MexicoBanks Balance SheetMexico Banks Balance Sheet4/30/2023 12:00:00 AM10335903.02Banco de Méxicohttp://www.banxico.org.mxMXN Million/mexico/banks-balance-sheetMoneyNSAMonthlyMEXICOBANBALSHE9/8/2014 3:29:00 PM12/31/2000 12:00:00 AM10169075.643/31/2023 12:00:00 AM
MEXICOBANBALSHEMEXICOCENBANBALSHE0MexicoCentral Bank Balance SheetMexico Central Bank Balance Sheet5/31/2023 12:00:00 AM4537124968.00Banco de Méxicohttp://www.banxico.org.mx/MXN Thousand/mexico/central-bank-balance-sheetMoneyNSAMonthlyMEXICOCENBANBALSHE8/14/2014 5:50:00 PM12/31/1985 12:00:00 AM4515771451.004/30/2023 12:00:00 AM

Series by country

Get a list of all available series by a specific country

/peers/country/(country)

te.getPeers(country='mexico')
data = te.getPeers(country = 'mexico').then(function(data){
  console.log(data)       
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/peers/country/mexico?c=guest:guest");
TickerPeerRelationshipCountryCategoryTitleLatestValueDateLatestValueSourceSourceURLUnitURLCategoryGroupAdjustmentFrequencyHistoricalDataSymbolCreateDateFirstValueDatePreviousValuePreviousValueDate
2738A382738A38-1MexicoGovernment BudgetMexico Government Budget12/31/2022 12:00:00 AM-3.40Secretaria de Hacienda y Credito Publicohttp://www.hacienda.gob.mxpercent of GDP/mexico/government-budgetGovernmentYearly2738A384/28/2014 3:47:00 PM12/31/1990 12:00:00 AM-3.8012/31/2021 12:00:00 AM
2738A38MEXDEBT2GDP0MexicoGovernment Debt to GDPMexico Government Debt to GDP12/31/2021 12:00:00 AM49.60Secretaria de Hacienda y Credito Publicohttp://www.gob.mxpercent of GDP/mexico/government-debt-to-gdpGovernmentYearlyMEXDebt2GDP4/28/2014 3:47:00 PM12/31/1990 12:00:00 AM51.3012/31/2020 12:00:00 AM
GMXN10YRGMXN10YR-1MexicoGovernment Bond 10YMexico Government Bond 10Y7/11/2023 12:00:00 AM8.97Secretaria de Hacienda y Credito Publicopercent/mexico/government-bond-yieldMarketsDailyGMXN10YR11/15/2012 11:38:00 AM7/31/2001 12:00:00 AM8.957/10/2023 12:00:00 AM

Response fields

FieldTypeDescriptionExample
TickerstringTicker code“CPI YOY”
PeerstringRelated ticker“MEXFRINRDPST”
Relationshipnumber-1 - itself, 0 - related, 1 - component, 2 - parent, 3 - derivative0
CountrystringCountry name“Mexico”
CategorystringCategory name“Deposit Interest Rate”
TitlestringCombination of country/category“Deposit Interest Rate in Mexico”
LatestValueDatestringDate of the last released value“2023-01-31T00:00:00”
LatestValuenumberLast released value4.19
SourcestringSource of the data“IMF”
SourceURLstringURL link of the source“https://www.imf.org”
UnitstringUnit of the value“percent”
URLstringHyperlink at Trading Economics“/mexico/deposit-interest-rate”
CategoryGroupstringCategory group name“Money”
AdjustmentstringData description, for example: base period, price adjustment, seasonality“1982-1984=100, NSA”
FrequencystringFrequency of the indicator“Monthly”
HistoricalDataSymbolstringUnique symbol used by Trading Economics“UNITEDSTACONPRIINDCP”
CreateDatestringTime when an indicator was inserted“2014-06-11T09:44:00”
FirstValueDatestringDate of the first value in the historical series“1950-01-31T00:00:00”
PreviousValuenumberPreviously released value300.84
PreviousValueDatestringDate of the previously released value“2023-02-28T00:00:00”