By Parameter
Get news by date, country, and indicator.
By date
Get news by date range
/news?c=guest:guest&d1={date}&d2={date}
import tradingeconomics as te
te.login('your_api_key')
te.getNews(start_date = '2021-02-02', end_date = '2021-03-03')
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getNews('2021-02-02', end_date = '2021-03-03').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news?c=guest:guest&d1=2021-02-02&d2=2021-03-03");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
140316 | “NZX Tops 12,400” | 3/2/2021 11:18:00 PM | “New Zealand’s main stock index rose above the 12,400 level on Wednesday, extending…” | New Zealand | Stock Market | NZSE50FG | /new-zealand/stock-market | 1 |
140315 | Australia Composite PMI Revised Downwardly | 3/2/2021 10:46:39 PM | “The IHS Markit Australia Composite PMI decreased to 53.7 in February 2021, down from…” | Australia | Composite PMI | AUSTRALIACOMPMI | /australia/composite-pmi | 1 |
140314 | Australia Markit Services PMI Slows Down | 3/2/2021 10:42:11 PM | “The IHS Markit Australia Services PMI decreased to 53.4 in February 2021, down from…” | Australia | Services Sentiment | AUSTRALIASERSEN | /australia/services-sentiment | 2 |
By country
Get news by country
te.getNews(country = 'mexico')
data = te.getNews(country = 'mexico').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/country/mexico?c=guest:guest");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
374392 | Mexico Business Morale Steady at Over 1-Year High | 5/2/2023 12:11:00 PM | “Mexico’s business confidence indicator stood at an over one-year high of 52.6 in April…” | Mexico | Business Confidence | MexicoBC | /mexico/business-confidence | 1 |
374160 | Mexico GDP Expands More than Expected | 4/28/2023 12:23:18 PM | “The Mexican economy expanded by 1.1% quarter-on-quarter in the three months ending March…” | Mexico | GDP Growth Rate | MXGPQTR | /mexico/gdp-growth | 1 |
373959 | Mexico Posts Surprise Large Trade Surplus | 4/27/2023 12:15:00 PM | “Mexico’s trade surplus ballooned to USD 1.169 billion in March 2023 from USD 0.105 in…” | Mexico | Balance of Trade | MXTBBAL | /mexico/balance-of-trade | 1 |
By country and date
Get news by country and date range
/news/country/{countries}?c=guest:guest&d1={date}&d2={date}
te.getNews(country = 'mexico', start_date = '2021-02-02',
end_date = '2021-03-03')
data = te.getNews(country = 'mexico', start_date = '2021-02-02',
end_date = '2021-03-03').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/country/mexico?c=guest:guest&d1=2021-02-02&d2=2021-03-03");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
140310 | Mexican Stocks Surge 2% on Tuesday | 3/2/2021 9:41:00 PM | “Mexico’s IPC gained 2% to 45,682 on Tuesday to extend the rally, as improving…” | Mexico | Stock Market | MEXBOL | /mexico/stock-market | 1 |
140301 | Mexican Peso Almost Steady | 3/2/2021 5:25:00 PM | “The Mexican peso was little changed at 20.7 per USD, as oil prices held steady and as…” | Mexico | Currency | USDMXN | /mexico/currency | 1 |
140193 | Mexican Stocks Extend Gains | 3/1/2021 9:31:00 PM | “Mexico’s IPC gained 0.4% or 192 points to 44,785 on Monday to extend gains, as improving…” | Mexico | Stock Market | MEXBOL | /mexico/stock-market | 1 |
By indicator
Get news by indicators
te.getNews(indicator = 'inflation rate')
te.getNews(indicator = ['inflation rate','gdp'])
data = te.getNews(indicator = 'inflation rate').then(function(data){
console.log(data)
});
data = te.getNews(indicator = ['inflation rate','gdp']).then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=guest:guest");
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/indicator/inflation%20rate,gdp?c=guest:guest");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
377135 | Iceland Current Account Deficit Narrows in Q1 | 6/1/2023 9:17:38 AM | “The current account deficit in Iceland narrowed sharply to ISK 10.1 billion in…” | Iceland | Current Account | ICCACURR | /iceland/current-account | 1 |
377031 | Ukraine Current Account Shrinks in April | 5/31/2023 3:38:00 PM | “Ukraine’s current account surplus shrank to USD 0.285 billion in April 2023 from USD…” | Ukraine | Current Account | UkraineCA | /ukraine/current-account | 0 |
376967 | Macedonia Current Account Surplus Largest in 20 Months | 5/31/2023 9:26:00 AM | “Macedonia’s current account recorded a USD 108.9 million surplus in March 2023, the largest figure …” | Macedonia | Current Account | MacedoniaCA | /macedonia/current-account | 1 |
By indicator and date
Get news by indicators and date range
/news/indicator/{indicators}?c=guest:guest&d1={date}&d2={date}
te.getNews(indicator = 'inflation rate', start_date = '2021-02-02',
end_date = '2021-03-03')
te.getNews(indicator = ['inflation rate', 'imports'], start_date = '2021-02-02',
end_date = '2021-03-03')
data = te.getNews(indicator = 'inflation rate', start_date = '2021-01-01',
end_date = '2021-02-02').then(function(data){
console.log(data)
});
data = te.getNews(indicator = ['inflation rate', 'imports'], start_date = '2021-01-01',
end_date = '2021-02-02').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=guest:guest&d1=2021-02-02&d2=2021-03-03");
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/indicator/inflation%20rate,imports?c=guest:guest&d1=2021-02-02&d2=2021-03-03");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
140204 | Australia Current Account Surplus Widens in Q4 | 3/2/2021 12:42:00 AM | “Australia’s current account surplus widened to AUD 14.52 billion in the fourth quarter of…” | Australia | Current Account | AUCABAL | /australia/current-account | 1 |
140154 | Canada Current Account Gap Lower than Expected | 3/1/2021 1:37:00 PM | “Canada’s current account deficit narrowed by CAD 3.2 billion to CAD 7.3 billion in the fourth…” | Canada | Current Account | CACURENT | /canada/current-account | 1 |
139959 | Taiwan Posts 2nd Largest Current Account Surplus on Record | 2/26/2021 10:46:00 AM | “The current account surplus in Taiwan rose by $10.37 billion to $27.33 billion in the Q4 of 2020…” | Taiwan | Current Account | TaiwanCA | /taiwan/current-account | 1 |
By country and indicator
Get news by country and indicators
/news/country/{countries}/{indicators}
te.getNews(country = 'mexico', indicator = 'inflation rate')
data = te.getNews(country = 'mexico', indicator = 'inflation rate').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c=guest:guest");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
353429 | Mexico Inflation Rate Hits Highest Level Since 2000 | 9/8/2022 11:15:00 AM | “Mexico’s annual inflation rate rose to 8.70 percent in August of 2022 from 8.15 percent…” | Mexico | Inflation Rate | MXCPYOY | /mexico/inflation-cpi | 2 |
350967 | Mexico Inflation Rate at 21-Year High | 8/9/2022 11:13:00 AM | “Mexico’s annual inflation rate rose to 8.15 percent in July of 2022 from 7.99 percent in the…” | Mexico | Inflation Rate | MXCPYOY | /mexico/inflation-cpi | 2 |
347712 | Mexico Inflation Rate at 21-Year High | 7/7/2022 11:14:58 AM | “Mexico’s annual inflation rate rose to 7.99 percent in June of 2022 from 7.65 percent in the…” | Mexico | Inflation Rate | MXCPYOY | /mexico/inflation-cpi | 1 |
By country, indicator and date
Get news by country, indicators and date range
/news/country/{countries}/{indicators}?c=guest:guest&d1={date}&d2={date}
te.getNews(country = 'mexico', indicator = 'inflation rate', start_date = '2021-02-02',
end_date = '2021-03-03')
data = te.getNews(country = 'mexico', indicator = 'inflation rate',
start_date = '2021-02-02', end_date = '2021-03-03').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c=guest:guest&d1=2021-02-02&d2=2021-03-03");
id | title | date | description | country | category | symbol | url | importance |
---|---|---|---|---|---|---|---|---|
138307 | Mexico Inflation Rate Picks Up to 3.54% in January | 2/9/2021 12:11:24 PM | “The annual inflation rate in Mexico increased to 3.54 percent in January of 2021 from a…” | Mexico | Inflation Rate | MXCPYOY | /mexico/inflation-cpi | 2 |
Response fields
Field | Type | Description | Example |
---|---|---|---|
ID | string | Unique ID | “372644” |
Title | string | Title of the event | “Eurozone Industrial Output Rises for 2nd Month” |
Date | string | Release time and date in UTC | “2023-04-13T09:25:34.693” |
Description | string | Description of the event | “Industrial production in the Euro Area rose by 1.5 percent from…” |
Country | string | Country name | “Euro Area” |
Category | string | Category name | “Industrial Production Mom” |
Symbol | string | Unique symbol used by Trading Economics | “EUROAREAINDPROMOM” |
Url | string | Hyperlink at Trading Economics | “/euro-area/industrial-production-mom” |
Importance | number | Lowest 0 to 3 highest | 2 |