News by Parameter

This endpoint allows for the retrieval of news filtered by parameters.

By date

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news?c={api_key}&d1=2021-02-02&d2=2021-03-03'
data = requests.get(url).json()
print(data)

Or using our package:

import tradingeconomics as te
te.login('your_api_key')
te.getNews(start_date = '2021-02-02', end_date = '2021-03-03')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news?c=${api_key}&d1=2021-02-02&d2=2021-03-03`)
    console.log(response.data)
})()

Or using our package:

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)     
});

Using Requests:

using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news?c=your_api_key&d1=2021-02-02&d2=2021-03-03"))
    {
        request.Headers.TryAddWithoutValidation("Upgrade-Insecure-Requests", "1");
        var response = await httpClient.SendAsync(request);
        if (response.IsSuccessStatusCode)
        {
            var content = await response.Content.ReadAsStringAsync(); 
            Console.WriteLine(content);
        }
    }
}

The response data format can be configured by appending the &f= parameter to the URL request.

/news?c=your_api_key&d1={date}&d2={date}

idtitledatedescriptioncountrycategorysymbolurlimportance
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 ZealandStock MarketNZSE50FG/new-zealand/stock-market1
140315Australia Composite PMI Revised Downwardly3/2/2021 10:46:39 PM“The IHS Markit Australia Composite PMI decreased to 53.7 in February 2021, down from…”AustraliaComposite PMIAUSTRALIACOMPMI/australia/composite-pmi1
140314Australia Markit Services PMI Slows Down3/2/2021 10:42:11 PM“The IHS Markit Australia Services PMI decreased to 53.4 in February 2021, down from…”AustraliaServices SentimentAUSTRALIASERSEN/australia/services-sentiment2

/news?c=your_api_key&d1={date}&d2={date}?f=json

[{"id":"140316","title":"NZX Tops 12,400","date":"2021-03-02T23:18:00","description":"New Zealand’s main stock index rose above the 12,400 level on Wednesday, extending gains for a fourth straight session as investors continue to cheer a resumption of economic activity. Value-oriented stocks reasserted their dominance, with investors ditching tech stocks once again. A2 Milk Company Ltd and Genesis Energy Ltd were among the biggest gainers on the NZX, up 3.3% and 2.7%, respectively.","country":"New Zealand","category":"Stock Market","symbol":"NZSE50FG","url":"/new-zealand/stock-market","importance":1},{"id":"140315","title":"Australia Composite PMI Revised Downwardly","date":"2021-03-02T22:46:39.607","description":"The IHS Markit Australia Composite PMI decreased to 53.7 in February 2021, down from 55.9 in the previous month and compared to a preliminary estimate of 54.4, final data showed. Growth was driven by continued expansions in  manufacturing output and services activity, but the expansion pace eased, with new orders rising at the slowest pace in three months. On the price front, the rate of inflation moderated for both manufacturing and services.","country":"Australia","category":"Composite PMI","symbol":"AUSTRALIACOMPMI","url":"/australia/composite-pmi","importance":1},{"id":"140314","title":"Australia Markit Services PMI Slows Down","date":"2021-03-02T22:42:11.633","description":"The IHS Markit Australia Services PMI decreased to 53.4 in February 2021, down from 55.6 in the previous month and compared to a preliminary estimate of 54.1, final data showed. Stringent international border restrictions reduced export orders for the thirteenth month running. That said, the decline was the softest since last July. Meanwhile, the pace of hiring accelerated to the quickest rate in the survey history. On the price front, input costs continued, as average cost burdens faced by firms in services increased for the ninth straight month.  Looking ahead, business expectations for activity over the coming 12 months remained strong in February, with the level of confidence strengthening from the previous survey period to the highest since August 2018.","country":"australia","category":"services pmi","symbol":"AUSTRALIASERPMI","url":"/australia/services-pmi","importance":2}]

/news?c=your_api_key&d1={date}&d2={date}?f=csv

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 gains for a fourth straight session as investors continue to cheer a resumption of economic activity. Value-oriented stocks reasserted their dominance, with investors ditching tech stocks once again. A2 Milk Company Ltd and Genesis Energy Ltd were among the biggest gainers on the NZX, up 3.3% and 2.7%, respectively.",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 55.9 in the previous month and compared to a preliminary estimate of 54.4, final data showed. Growth was driven by continued expansions in  manufacturing output and services activity, but the expansion pace eased, with new orders rising at the slowest pace in three months. On the price front, the rate of inflation moderated for both manufacturing and services.",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 55.6 in the previous month and compared to a preliminary estimate of 54.1, final data showed. Stringent international border restrictions reduced export orders for the thirteenth month running. That said, the decline was the softest since last July. Meanwhile, the pace of hiring accelerated to the quickest rate in the survey history. On the price front, input costs continued, as average cost burdens faced by firms in services increased for the ninth straight month.  Looking ahead, business expectations for activity over the coming 12 months remained strong in February, with the level of confidence strengthening from the previous survey period to the highest since August 2018.",australia,services pmi,AUSTRALIASERPMI,/australia/services-pmi,2

/news?c=guest:guest&d1={date}&d2={date}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Stock Market</category>
<country>New Zealand</country>
<date>2021-03-02T23:18:00</date>
<description>New Zealand’s main stock index rose above the 12,400 level on Wednesday, extending gains for a fourth straight session as investors continue to cheer a resumption of economic activity. Value-oriented stocks reasserted their dominance, with investors ditching tech stocks once again. A2 Milk Company Ltd and Genesis Energy Ltd were among the biggest gainers on the NZX, up 3.3% and 2.7%, respectively.</description>
<id>140316</id>
<importance>1</importance>
<symbol>NZSE50FG</symbol>
<title>NZX Tops 12,400</title>
<url>/new-zealand/stock-market</url>
</ArticlePreview>
<ArticlePreview>
<category>Composite PMI</category>
<country>Australia</country>
<date>2021-03-02T22:46:39.607</date>
<description>The IHS Markit Australia Composite PMI decreased to 53.7 in February 2021, down from 55.9 in the previous month and compared to a preliminary estimate of 54.4, final data showed. Growth was driven by continued expansions in manufacturing output and services activity, but the expansion pace eased, with new orders rising at the slowest pace in three months. On the price front, the rate of inflation moderated for both manufacturing and services.</description>
<id>140315</id>
<importance>1</importance>
<symbol>AUSTRALIACOMPMI</symbol>
<title>Australia Composite PMI Revised Downwardly</title>
<url>/australia/composite-pmi</url>
</ArticlePreview>
<ArticlePreview>
<category>services pmi</category>
<country>australia</country>
<date>2021-03-02T22:42:11.633</date>
<description>The IHS Markit Australia Services PMI decreased to 53.4 in February 2021, down from 55.6 in the previous month and compared to a preliminary estimate of 54.1, final data showed. Stringent international border restrictions reduced export orders for the thirteenth month running. That said, the decline was the softest since last July. Meanwhile, the pace of hiring accelerated to the quickest rate in the survey history. On the price front, input costs continued, as average cost burdens faced by firms in services increased for the ninth straight month. Looking ahead, business expectations for activity over the coming 12 months remained strong in February, with the level of confidence strengthening from the previous survey period to the highest since August 2018.</description>
<id>140314</id>
<importance>2</importance>
<symbol>AUSTRALIASERPMI</symbol>
<title>Australia Markit Services PMI Slows Down</title>
<url>/australia/services-pmi</url>
</ArticlePreview>
</ArrayOfArticlePreview>

By country

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news/country/mexico?c={api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

te.getNews(country = 'mexico')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news/country/mexico?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getNews(country = 'mexico').then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/country/mexico?c=your_api_key");

/news/country/{countries}

idtitledatedescriptioncountrycategorysymbolurlimportance
374392Mexico Business Morale Steady at Over 1-Year High5/2/2023 12:11:00 PM“Mexico’s business confidence indicator stood at an over one-year high of 52.6 in April…”MexicoBusiness ConfidenceMexicoBC/mexico/business-confidence1
374160Mexico GDP Expands More than Expected4/28/2023 12:23:18 PM“The Mexican economy expanded by 1.1% quarter-on-quarter in the three months ending March…”MexicoGDP Growth RateMXGPQTR/mexico/gdp-growth1
373959Mexico Posts Surprise Large Trade Surplus4/27/2023 12:15:00 PM“Mexico’s trade surplus ballooned to USD 1.169 billion in March 2023 from USD 0.105 in…”MexicoBalance of TradeMXTBBAL/mexico/balance-of-trade1

/news/country/{countries}?f=json

[{"id":"382742","title":"Mexican Peso Eases from Over-7-Year High","date":"2023-08-02T14:13:26.593","description":"The Mexican peso weakened past 17 per USD, easing from the near-eight-year high of 16.7 touched on July 28th as resilience in US economy supported the dollar. Still, the currency remains among the best performers year-to-date, adding 14.6%, as strong economic data has reinforced expectations that the Bank of Mexico will maintain a hawkish stance for an extended period. Mexico’s manufacturing PMI rose to its highest level since July 2016, revealing an ongoing expansion i goods production. The Bank of Mexico chose to keep its benchmark policy rate steady at a record high of 11.25% for the second time in June. High-interest rates have attracted carry trade, leading to increased capital inflows. Also supporting the peso, a wave of foreign companies established factories in Mexico to target the American market and diversify their production from China.","country":"Mexico","category":"Currency","symbol":"USDMXN","url":"/mexico/currency","importance":1},{"id":"382617","title":"Mexico Manufacturing PMI at 7-Year Highs","date":"2023-08-01T15:40:51.617","description":"The S&P Global Mexico Manufacturing PMI rose to 53.2 in July 2023 from 50.9 in June, marking the sixth period of expansion in the factory activity and the highest reading since May 2016, as all five sub-components contributed positively. New orders posted the strongest increase since February 2019, thanks to easing price pressures, agreeable weather conditions, and buoyant client demand. The upturn in sales was accompanied by recovered exports, with international orders advancing for the first time in five months. Meanwhile, output grew the most since early 2019, prompting firms to scale up buying and hire extra staff. On input costs, inflation waned and stayed broadly in line with its long-run average. The future outlook was boosted by plans to price competitively, marketing initiatives, favorable tourism, and forecasts of strong sales trends. Nearshoring potential as businesses shift away from Asia into Mexico to fulfill demand from the US also added optimism.","country":"Mexico","category":"Manufacturing PMI","symbol":"MEXICOMANPMI","url":"/mexico/manufacturing-pmi","importance":1},{"id":"382595","title":"Mexican Business Confidence Rises to Almost 5-Year High","date":"2023-08-01T13:08:00","description":"Mexico’s business confidence indicator edged up to 53.6 in July of 2023, the highest since August 2018 from an upwardly revised 53.4 in the previous month. Sentiment improved regarding the investment environment (44.3 vs 43.1 in June), Mexico’s current macroeconomic situation (53.8 vs 52.4), and firms’ current financial situation (55 vs 54.9). Still, companies were less optimistic about the future, noting a slight deterioration in future expectations for Mexico’s economy (55.5 vs 56.5) and expectations for respective companies (59.5 vs 59.7).","country":"Mexico","category":"Business Confidence","symbol":"MexicoBC","url":"/mexico/business-confidence","importance":1},{"id":"382424","title":"Mexican Annual GDP Growth Surpasses Expectations","date":"2023-07-31T12:42:27.297","description":"Mexico’s gross domestic product expanded by 3.7% from a year earlier in the second quarter of 2023, firmly above market estimates of a 3.4% increase and growing at the same pace as the previous quarter. It was the ninth consecutive period of annual growth in the Mexican economy, outperforming its North American counterparts and defying the Bank of Mexico’s aggressive tightening campaign. Growth was led by the services sector (4.2% vs 4.3% in Q1), followed by steady expansion in the manufacturing (2.6% vs 2.5%) and primary (2.5% vs 3.2%) sectors.","country":"Mexico","category":"GDP Annual Growth Rate","symbol":"MXGCTOT","url":"/mexico/gdp-growth-annual","importance":0},{"id":"382421","title":"Mexican GDP Grows 0.9% in Q2","date":"2023-07-31T12:19:00","description":"The Mexican economy expanded by 0.9% quarter-on-quarter in the three months ending June of 2023, in line with market estimates, and broadly consistent with the 1% expansion in the previous quarter. It was the seventh consecutive period of growth, outperforming other North American economies and extending the period of marked resilience to Banxico’s aggressive tightening momentum. Growth was distributed among all sectors of the Mexican economy, with services expanding by 1% from 1.5% in the previous quarter, while both manufacturing and primary industries grew by 0.8% from 0.6% and -2.8%, respectively. On a yearly basis, the Mexican GDP increased by 3.7%, unchanged from the first quarter.","country":"Mexico","category":"GDP Growth Rate","symbol":"MXGPQTR","url":"/mexico/gdp-growth","importance":2}]

/news/country/{countries}?f=csv

id,title,date,description,country,category,symbol,url,importance
382742,Mexican Peso Eases from Over-7-Year High,8/2/2023 2:13:26 PM,"The Mexican peso weakened past 17 per USD, easing from the near-eight-year high of 16.7 touched on July 28th as resilience in US economy supported the dollar. Still, the currency remains among the best performers year-to-date, adding 14.6%, as strong economic data has reinforced expectations that the Bank of Mexico will maintain a hawkish stance for an extended period. Mexico’s manufacturing PMI rose to its highest level since July 2016, revealing an ongoing expansion i goods production. The Bank of Mexico chose to keep its benchmark policy rate steady at a record high of 11.25% for the second time in June. High-interest rates have attracted carry trade, leading to increased capital inflows. Also supporting the peso, a wave of foreign companies established factories in Mexico to target the American market and diversify their production from China.",Mexico,Currency,USDMXN,/mexico/currency,1
382617,Mexico Manufacturing PMI at 7-Year Highs,8/1/2023 3:40:51 PM,"The S&P Global Mexico Manufacturing PMI rose to 53.2 in July 2023 from 50.9 in June, marking the sixth period of expansion in the factory activity and the highest reading since May 2016, as all five sub-components contributed positively. New orders posted the strongest increase since February 2019, thanks to easing price pressures, agreeable weather conditions, and buoyant client demand. The upturn in sales was accompanied by recovered exports, with international orders advancing for the first time in five months. Meanwhile, output grew the most since early 2019, prompting firms to scale up buying and hire extra staff. On input costs, inflation waned and stayed broadly in line with its long-run average. The future outlook was boosted by plans to price competitively, marketing initiatives, favorable tourism, and forecasts of strong sales trends. Nearshoring potential as businesses shift away from Asia into Mexico to fulfill demand from the US also added optimism.",Mexico,Manufacturing PMI,MEXICOMANPMI,/mexico/manufacturing-pmi,1
382595,Mexican Business Confidence Rises to Almost 5-Year High,8/1/2023 1:08:00 PM,"Mexico’s business confidence indicator edged up to 53.6 in July of 2023, the highest since August 2018 from an upwardly revised 53.4 in the previous month. Sentiment improved regarding the investment environment (44.3 vs 43.1 in June), Mexico’s current macroeconomic situation (53.8 vs 52.4), and firms’ current financial situation (55 vs 54.9). Still, companies were less optimistic about the future, noting a slight deterioration in future expectations for Mexico’s economy (55.5 vs 56.5) and expectations for respective companies (59.5 vs 59.7).",Mexico,Business Confidence,MexicoBC,/mexico/business-confidence,1

/news/country/{countries}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Currency</category>
<country>Mexico</country>
<date>2023-08-02T14:13:26.593</date>
<description>The Mexican peso weakened past 17 per USD, easing from the near-eight-year high of 16.7 touched on July 28th as resilience in US economy supported the dollar. Still, the currency remains among the best performers year-to-date, adding 14.6%, as strong economic data has reinforced expectations that the Bank of Mexico will maintain a hawkish stance for an extended period. Mexico’s manufacturing PMI rose to its highest level since July 2016, revealing an ongoing expansion i goods production. The Bank of Mexico chose to keep its benchmark policy rate steady at a record high of 11.25% for the second time in June. High-interest rates have attracted carry trade, leading to increased capital inflows. Also supporting the peso, a wave of foreign companies established factories in Mexico to target the American market and diversify their production from China.</description>
<id>382742</id>
<importance>1</importance>
<symbol>USDMXN</symbol>
<title>Mexican Peso Eases from Over-7-Year High</title>
<url>/mexico/currency</url>
</ArticlePreview>
<ArticlePreview>
<category>Manufacturing PMI</category>
<country>Mexico</country>
<date>2023-08-01T15:40:51.617</date>
<description>The S&P Global Mexico Manufacturing PMI rose to 53.2 in July 2023 from 50.9 in June, marking the sixth period of expansion in the factory activity and the highest reading since May 2016, as all five sub-components contributed positively. New orders posted the strongest increase since February 2019, thanks to easing price pressures, agreeable weather conditions, and buoyant client demand. The upturn in sales was accompanied by recovered exports, with international orders advancing for the first time in five months. Meanwhile, output grew the most since early 2019, prompting firms to scale up buying and hire extra staff. On input costs, inflation waned and stayed broadly in line with its long-run average. The future outlook was boosted by plans to price competitively, marketing initiatives, favorable tourism, and forecasts of strong sales trends. Nearshoring potential as businesses shift away from Asia into Mexico to fulfill demand from the US also added optimism.</description>
<id>382617</id>
<importance>1</importance>
<symbol>MEXICOMANPMI</symbol>
<title>Mexico Manufacturing PMI at 7-Year Highs</title>
<url>/mexico/manufacturing-pmi</url>
</ArticlePreview>
<ArticlePreview>
<category>Business Confidence</category>
<country>Mexico</country>
<date>2023-08-01T13:08:00</date>
<description>Mexico’s business confidence indicator edged up to 53.6 in July of 2023, the highest since August 2018 from an upwardly revised 53.4 in the previous month. Sentiment improved regarding the investment environment (44.3 vs 43.1 in June), Mexico’s current macroeconomic situation (53.8 vs 52.4), and firms’ current financial situation (55 vs 54.9). Still, companies were less optimistic about the future, noting a slight deterioration in future expectations for Mexico’s economy (55.5 vs 56.5) and expectations for respective companies (59.5 vs 59.7).</description>
<id>382595</id>
<importance>1</importance>
<symbol>MexicoBC</symbol>
<title>Mexican Business Confidence Rises to Almost 5-Year High</title>
<url>/mexico/business-confidence</url>
</ArticlePreview>
<ArticlePreview>
<category>GDP Annual Growth Rate</category>
<country>Mexico</country>
<date>2023-07-31T12:42:27.297</date>
<description>Mexico’s gross domestic product expanded by 3.7% from a year earlier in the second quarter of 2023, firmly above market estimates of a 3.4% increase and growing at the same pace as the previous quarter. It was the ninth consecutive period of annual growth in the Mexican economy, outperforming its North American counterparts and defying the Bank of Mexico’s aggressive tightening campaign. Growth was led by the services sector (4.2% vs 4.3% in Q1), followed by steady expansion in the manufacturing (2.6% vs 2.5%) and primary (2.5% vs 3.2%) sectors.</description>
<id>382424</id>
<importance>0</importance>
<symbol>MXGCTOT</symbol>
<title>Mexican Annual GDP Growth Surpasses Expectations</title>
<url>/mexico/gdp-growth-annual</url>
</ArticlePreview>
<ArticlePreview>
<category>GDP Growth Rate</category>
<country>Mexico</country>
<date>2023-07-31T12:19:00</date>
<description>The Mexican economy expanded by 0.9% quarter-on-quarter in the three months ending June of 2023, in line with market estimates, and broadly consistent with the 1% expansion in the previous quarter. It was the seventh consecutive period of growth, outperforming other North American economies and extending the period of marked resilience to Banxico’s aggressive tightening momentum. Growth was distributed among all sectors of the Mexican economy, with services expanding by 1% from 1.5% in the previous quarter, while both manufacturing and primary industries grew by 0.8% from 0.6% and -2.8%, respectively. On a yearly basis, the Mexican GDP increased by 3.7%, unchanged from the first quarter.</description>
<id>382421</id>
<importance>2</importance>
<symbol>MXGPQTR</symbol>
<title>Mexican GDP Grows 0.9% in Q2</title>
<url>/mexico/gdp-growth</url>
</ArticlePreview>
</ArrayOfArticlePreview>

By country and date

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news/country/mexico?c={api_key}&d1=2021-02-02&d2=2021-03-03'
data = requests.get(url).json()
print(data)

Or using our package:

te.getNews(country = 'mexico', start_date = '2021-02-02',
 end_date = '2021-03-03')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news/country/mexico?c=${api_key}&d1=2021-02-02&d2=2021-03-03`)
    console.log(response.data)
})()

Or using our package:

data = te.getNews(country = 'mexico', start_date = '2021-02-02',
 end_date = '2021-03-03').then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/country/mexico?c=your_api_key&d1=2021-02-02&d2=2021-03-03");

/news/country/{countries}?c=your_api_key&d1={date}&d2={date}

idtitledatedescriptioncountrycategorysymbolurlimportance
140310Mexican Stocks Surge 2% on Tuesday3/2/2021 9:41:00 PM“Mexico’s IPC gained 2% to 45,682 on Tuesday to extend the rally, as improving…”MexicoStock MarketMEXBOL/mexico/stock-market1
140301Mexican Peso Almost Steady3/2/2021 5:25:00 PM“The Mexican peso was little changed at 20.7 per USD, as oil prices held steady and as…”MexicoCurrencyUSDMXN/mexico/currency1
140193Mexican Stocks Extend Gains3/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…”MexicoStock MarketMEXBOL/mexico/stock-market1

/news/country/{countries}?c=your_api_key&d1={date}&d2={date}?f=json

[{"id":"140310","title":"Mexican Stocks Surge 2% on Tuesday","date":"2021-03-02T21:41:00","description":"Mexico’s IPC gained 2% to 45,682 on Tuesday to extend the rally, as improving macroeconomic data, falling COVID-19 cases, and faster vaccine rollouts continue to nudge sentiment. On the pandemic side, Mexico announced it has now received nearly 4 million doses from AstraZeneca, Pfizer, Sinavoc, Sputnik, and CanSino vaccines. On Tuesday, 852 thousand Pfizer doses arrived in Mexico. On the macro side, the AMLO administration announced that more than 140 thousand jobs were created in February. On Monday, business confidence improved to 43.9 in February from 43.2 in the previous month, while the manufacturing PMI increased to 44.2 from 43.","country":"Mexico","category":"Stock Market","symbol":"MEXBOL","url":"/mexico/stock-market","importance":1},{"id":"140301","title":"Mexican Peso Almost Steady","date":"2021-03-02T17:25:00","description":"The Mexican peso was little changed at 20.7 per USD, as oil prices held steady and as Treasury bond yields continued to retreat. Locally, investors await more developments about the passage of a controversial bill that gives priority to the state-owned power utility over private generators. On the data front, recent PMI survey showed Mexico's manufacturing sector remained stuck in contraction in February amid ongoing Covid-19 restrictions. Also, business sentiment among manufacturers was the strongest in almost a year.","country":"Mexico","category":"Currency","symbol":"USDMXN","url":"/mexico/currency","importance":1},{"id":"140193","title":"Mexican Stocks Extend Gains","date":"2021-03-01T21:31:00","description":"Mexico’s IPC gained 0.4% or 192 points to 44,785 on Monday to extend gains, as improving macroeconomic data, falling COVID-19 cases, and faster vaccine rollouts continue to nudge sentiment. On the macro side, business confidence improved to 43.9 in February from 43.2 in the previous month, while the manufacturing PMI increased to 44.2 from 43. On the pandemic side, Mexico surpassed 2.5 million inoculations, while new 800 thousand doses arrived from China’s Sinovac. On Thursday of last week, GDP growth for the fourth quarter was revised upwardly to 3.3% QoQ from 3.1% in the preliminary reading, as economic activity in December expanded 0.1% on a monthly basis compared to expectations of a 0.6% decline.","country":"Mexico","category":"Stock Market","symbol":"MEXBOL","url":"/mexico/stock-market","importance":1}]

/news/country/{countries}?c=your_api_key&d1={date}&d2={date}?f=csv

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 macroeconomic data, falling COVID-19 cases, and faster vaccine rollouts continue to nudge sentiment. On the pandemic side, Mexico announced it has now received nearly 4 million doses from AstraZeneca, Pfizer, Sinavoc, Sputnik, and CanSino vaccines. On Tuesday, 852 thousand Pfizer doses arrived in Mexico. On the macro side, the AMLO administration announced that more than 140 thousand jobs were created in February. On Monday, business confidence improved to 43.9 in February from 43.2 in the previous month, while the manufacturing PMI increased to 44.2 from 43.",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 Treasury bond yields continued to retreat. Locally, investors await more developments about the passage of a controversial bill that gives priority to the state-owned power utility over private generators. On the data front, recent PMI survey showed Mexico's manufacturing sector remained stuck in contraction in February amid ongoing Covid-19 restrictions. Also, business sentiment among manufacturers was the strongest in almost a year.",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 macroeconomic data, falling COVID-19 cases, and faster vaccine rollouts continue to nudge sentiment. On the macro side, business confidence improved to 43.9 in February from 43.2 in the previous month, while the manufacturing PMI increased to 44.2 from 43. On the pandemic side, Mexico surpassed 2.5 million inoculations, while new 800 thousand doses arrived from China’s Sinovac. On Thursday of last week, GDP growth for the fourth quarter was revised upwardly to 3.3% QoQ from 3.1% in the preliminary reading, as economic activity in December expanded 0.1% on a monthly basis compared to expectations of a 0.6% decline.",Mexico,Stock Market,MEXBOL,/mexico/stock-market,1

/news/country/{countries}?c=your_api_key&d1={date}&d2={date}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Stock Market</category>
<country>Mexico</country>
<date>2021-03-02T21:41:00</date>
<description>Mexico’s IPC gained 2% to 45,682 on Tuesday to extend the rally, as improving macroeconomic data, falling COVID-19 cases, and faster vaccine rollouts continue to nudge sentiment. On the pandemic side, Mexico announced it has now received nearly 4 million doses from AstraZeneca, Pfizer, Sinavoc, Sputnik, and CanSino vaccines. On Tuesday, 852 thousand Pfizer doses arrived in Mexico. On the macro side, the AMLO administration announced that more than 140 thousand jobs were created in February. On Monday, business confidence improved to 43.9 in February from 43.2 in the previous month, while the manufacturing PMI increased to 44.2 from 43.</description>
<id>140310</id>
<importance>1</importance>
<symbol>MEXBOL</symbol>
<title>Mexican Stocks Surge 2% on Tuesday</title>
<url>/mexico/stock-market</url>
</ArticlePreview>
<ArticlePreview>
<category>Currency</category>
<country>Mexico</country>
<date>2021-03-02T17:25:00</date>
<description>The Mexican peso was little changed at 20.7 per USD, as oil prices held steady and as Treasury bond yields continued to retreat. Locally, investors await more developments about the passage of a controversial bill that gives priority to the state-owned power utility over private generators. On the data front, recent PMI survey showed Mexico's manufacturing sector remained stuck in contraction in February amid ongoing Covid-19 restrictions. Also, business sentiment among manufacturers was the strongest in almost a year.</description>
<id>140301</id>
<importance>1</importance>
<symbol>USDMXN</symbol>
<title>Mexican Peso Almost Steady</title>
<url>/mexico/currency</url>
</ArticlePreview>
<ArticlePreview>
<category>Stock Market</category>
<country>Mexico</country>
<date>2021-03-01T21:31:00</date>
<description>Mexico’s IPC gained 0.4% or 192 points to 44,785 on Monday to extend gains, as improving macroeconomic data, falling COVID-19 cases, and faster vaccine rollouts continue to nudge sentiment. On the macro side, business confidence improved to 43.9 in February from 43.2 in the previous month, while the manufacturing PMI increased to 44.2 from 43. On the pandemic side, Mexico surpassed 2.5 million inoculations, while new 800 thousand doses arrived from China’s Sinovac. On Thursday of last week, GDP growth for the fourth quarter was revised upwardly to 3.3% QoQ from 3.1% in the preliminary reading, as economic activity in December expanded 0.1% on a monthly basis compared to expectations of a 0.6% decline.</description>
<id>140193</id>
<importance>1</importance>
<symbol>MEXBOL</symbol>
<title>Mexican Stocks Extend Gains</title>
<url>/mexico/stock-market</url>
</ArticlePreview>
</ArrayOfArticlePreview>

By indicator

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news/indicator/inflation%20rate?c={api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

te.getNews(indicator = 'inflation rate')

With multi indicators:

te.getNews(indicator = ['inflation rate','gdp'])

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getNews(indicator = 'inflation rate').then(function(data){
    console.log(data)     
});

With multi indicators:

data = te.getNews(indicator = ['inflation rate','gdp']).then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=your_api_key");

With multi indicators:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/indicator/inflation%20rate,gdp?c=your_api_key");

/news/indicator/{indicators}

idtitledatedescriptioncountrycategorysymbolurlimportance
377135Iceland Current Account Deficit Narrows in Q16/1/2023 9:17:38 AM“The current account deficit in Iceland narrowed sharply to ISK 10.1 billion in…”IcelandCurrent AccountICCACURR/iceland/current-account1
377031Ukraine Current Account Shrinks in April5/31/2023 3:38:00 PM“Ukraine’s current account surplus shrank to USD 0.285 billion in April 2023 from USD…”UkraineCurrent AccountUkraineCA/ukraine/current-account0
376967Macedonia Current Account Surplus Largest in 20 Months5/31/2023 9:26:00 AM“Macedonia’s current account recorded a USD 108.9 million surplus in March 2023, the largest figure …”MacedoniaCurrent AccountMacedoniaCA/macedonia/current-account1

/news/indicator/{indicators}?f=json

[{"id":"385441","title":"Thailand Current Account Deficit Narrows in July","date":"2023-08-31T07:41:00","description":"Thailand’s current account deficit narrowed to USD 0.4 billion in July of 2023 from a USD 3.9 billion deficit in the corresponding month of the previous year. The trade balance shifted to a surplus of USD 0.4 billion from a USD 1.3 billion deficit in July 2022, as exports fell softer (-5.5%) than imports (-12%). Moreover, the deficit for net services, primary & secondary income decreased sharply to USD 0.8 billion from USD 2.6 billion in the same period last year.","country":"Thailand","category":"Current Account","symbol":"THCA","url":"/thailand/current-account","importance":1},{"id":"384950","title":"Brazil Current Account Gap Below Expectations","date":"2023-08-25T11:51:00","description":"Brazil's current account deficit shrank to USD 3.61 billion in July 2023, down from a USD 5.29 billion gap a year ago and below market forecasts of a USD 4 billion shortfall. Still, it was the largest current account deficit in five months. The services shortfall edged down to USD 3.17 billion from USD 3.20 billion a year ago: and the goods surplus increased to USD 7.23 billion from USD 4.13 billion in July 2022. Meanwhile, the primary income gap rose to USD 7.73 billion from USD 6.57 billion a year ago; and the secondary income surplus fell to USD 0.07 billion from USD 0.36 billion.","country":"Brazil","category":"Current Account","symbol":"BZCACURR","url":"/brazil/current-account","importance":1},{"id":"384571","title":"Italy Current Account Surplus Largest Since July 2021","date":"2023-08-22T09:28:10.577","description":"Italy's current account surplus expanded to EUR 5.995 billion in June 2023 from EUR 0.938 billion in the same month of the previous year, as energy prices continued to ease, limiting imports in the Italian economy. The goods account switched to a surplus of EUR 8.102 billion from a deficit of EUR 0.744 billion, prompted by a 0.6% rise in credits and a 16.3% plunge in debits. The secondary income shortfall also lowered to EUR 1.837 billion from EUR 1.996 billion. On the other hand, the primary income account turned negative (EUR -0.818 billion vs EUR 1.034 billion in the corresponding period of 2022) and the services surplus narrowed to EUR 0.548 billion (vs EUR 0.768).","country":"Italy","category":"Current Account","symbol":"ITCAEUR","url":"/italy/current-account","importance":1},{"id":"384558","title":"Eurozone Current Account Surplus Nears 2-Year High","date":"2023-08-22T08:20:00","description":"The Eurozone recorded a current account surplus of EUR 36.8 billion in June 2023, in contrast to a revised EUR 4.4 billion deficit in the same month the previous year. This marked the largest current account surplus since September 2021, driven by the goods account which transitioned to a surplus of EUR 42.7 billion from last year's EUR 8.0 billion gap. Additionally, the secondary income deficit narrowed to EUR 12.5 billion from EUR 15.7 billion. Conversely, the primary income showed a deficit of EUR 5.6 billion, compared to a surplus of EUR 0.4 billion the previous year, while the services surplus reduced to EUR 12.1 billion from EUR 18.9 billion. Considering the first half of the year, the Eurozone posted a current account surplus of EUR 59.5 billion, compared with a EUR 42.1 billion gap in the same period of 2022.","country":"Euro Area","category":"Current Account","symbol":"EUCQCA11","url":"/euro-area/current-account","importance":2},{"id":"384551","title":"Slovakia Current Account Swings to Surplus","date":"2023-08-22T07:12:31.773","description":"Slovakia posted a current account surplus of EUR 219.5 million in June 2023, compared to a deficit of EUR 719.3 million in the corresponding month of the previous year. Goods account shifted to a surplus of EUR 506.7 million from a deficit of EUR 328.5 million from a year ago, while services surplus sharply increased to EUR 66 million from EUR 14.4 million. Meanwhile, primary income deficit widened to EUR 231.1 million from EUR 205.5 million, whereas the secondary income shortfall decreased to EUR 122.5 million from EUR 199.7 million in the same month of the previous year.","country":"Slovakia","category":"Current Account","symbol":"SlovakiaCA","url":"/slovakia/current-account","importance":1}]

/news/indicator/{indicators}?f=csv

id,title,date,description,country,category,symbol,url,importance
385441,Thailand Current Account Deficit Narrows in July,8/31/2023 7:41:00 AM,"Thailand’s current account deficit narrowed to USD 0.4 billion in July of 2023 from a USD 3.9 billion deficit in the corresponding month of the previous year. The trade balance shifted to a surplus of USD 0.4 billion from a USD 1.3 billion deficit in July 2022, as exports fell softer (-5.5%) than imports (-12%). Moreover, the deficit for net services, primary & secondary income decreased sharply to USD 0.8 billion from USD 2.6 billion in the same period last year.",Thailand,Current Account,THCA,/thailand/current-account,1
384950,Brazil Current Account Gap Below Expectations,8/25/2023 11:51:00 AM,"Brazil's current account deficit shrank to USD 3.61 billion in July 2023, down from a USD 5.29 billion gap a year ago and below market forecasts of a USD 4 billion shortfall. Still, it was the largest current account deficit in five months. The services shortfall edged down to USD 3.17 billion from USD 3.20 billion a year ago: and the goods surplus increased to USD 7.23 billion from USD 4.13 billion in July 2022. Meanwhile, the primary income gap rose to USD 7.73 billion from USD 6.57 billion a year ago; and the secondary income surplus fell to USD 0.07 billion from USD 0.36 billion.",Brazil,Current Account,BZCACURR,/brazil/current-account,1
384571,Italy Current Account Surplus Largest Since July 2021,8/22/2023 9:28:10 AM,"Italy's current account surplus expanded to EUR 5.995 billion in June 2023 from EUR 0.938 billion in the same month of the previous year, as energy prices continued to ease, limiting imports in the Italian economy. The goods account switched to a surplus of EUR 8.102 billion from a deficit of EUR 0.744 billion, prompted by a 0.6% rise in credits and a 16.3% plunge in debits. The secondary income shortfall also lowered to EUR 1.837 billion from EUR 1.996 billion. On the other hand, the primary income account turned negative (EUR -0.818 billion vs EUR 1.034 billion in the corresponding period of 2022) and the services surplus narrowed to EUR 0.548 billion (vs EUR 0.768).",Italy,Current Account,ITCAEUR,/italy/current-account,1

/news/indicator/{indicators}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Current Account</category>
<country>Thailand</country>
<date>2023-08-31T07:41:00</date>
<description>Thailand’s current account deficit narrowed to USD 0.4 billion in July of 2023 from a USD 3.9 billion deficit in the corresponding month of the previous year. The trade balance shifted to a surplus of USD 0.4 billion from a USD 1.3 billion deficit in July 2022, as exports fell softer (-5.5%) than imports (-12%). Moreover, the deficit for net services, primary & secondary income decreased sharply to USD 0.8 billion from USD 2.6 billion in the same period last year.</description>
<id>385441</id>
<importance>1</importance>
<symbol>THCA</symbol>
<title>Thailand Current Account Deficit Narrows in July</title>
<url>/thailand/current-account</url>
</ArticlePreview>
<ArticlePreview>
<category>Current Account</category>
<country>Brazil</country>
<date>2023-08-25T11:51:00</date>
<description>Brazil's current account deficit shrank to USD 3.61 billion in July 2023, down from a USD 5.29 billion gap a year ago and below market forecasts of a USD 4 billion shortfall. Still, it was the largest current account deficit in five months. The services shortfall edged down to USD 3.17 billion from USD 3.20 billion a year ago: and the goods surplus increased to USD 7.23 billion from USD 4.13 billion in July 2022. Meanwhile, the primary income gap rose to USD 7.73 billion from USD 6.57 billion a year ago; and the secondary income surplus fell to USD 0.07 billion from USD 0.36 billion.</description>
<id>384950</id>
<importance>1</importance>
<symbol>BZCACURR</symbol>
<title>Brazil Current Account Gap Below Expectations</title>
<url>/brazil/current-account</url>
</ArticlePreview>
<ArticlePreview>
<category>Current Account</category>
<country>Italy</country>
<date>2023-08-22T09:28:10.577</date>
<description>Italy's current account surplus expanded to EUR 5.995 billion in June 2023 from EUR 0.938 billion in the same month of the previous year, as energy prices continued to ease, limiting imports in the Italian economy. The goods account switched to a surplus of EUR 8.102 billion from a deficit of EUR 0.744 billion, prompted by a 0.6% rise in credits and a 16.3% plunge in debits. The secondary income shortfall also lowered to EUR 1.837 billion from EUR 1.996 billion. On the other hand, the primary income account turned negative (EUR -0.818 billion vs EUR 1.034 billion in the corresponding period of 2022) and the services surplus narrowed to EUR 0.548 billion (vs EUR 0.768).</description>
<id>384571</id>
<importance>1</importance>
<symbol>ITCAEUR</symbol>
<title>Italy Current Account Surplus Largest Since July 2021</title>
<url>/italy/current-account</url>
</ArticlePreview>
<ArticlePreview>
<category>Current Account</category>
<country>Euro Area</country>
<date>2023-08-22T08:20:00</date>
<description>The Eurozone recorded a current account surplus of EUR 36.8 billion in June 2023, in contrast to a revised EUR 4.4 billion deficit in the same month the previous year. This marked the largest current account surplus since September 2021, driven by the goods account which transitioned to a surplus of EUR 42.7 billion from last year's EUR 8.0 billion gap. Additionally, the secondary income deficit narrowed to EUR 12.5 billion from EUR 15.7 billion. Conversely, the primary income showed a deficit of EUR 5.6 billion, compared to a surplus of EUR 0.4 billion the previous year, while the services surplus reduced to EUR 12.1 billion from EUR 18.9 billion. Considering the first half of the year, the Eurozone posted a current account surplus of EUR 59.5 billion, compared with a EUR 42.1 billion gap in the same period of 2022.</description>
<id>384558</id>
<importance>2</importance>
<symbol>EUCQCA11</symbol>
<title>Eurozone Current Account Surplus Nears 2-Year High</title>
<url>/euro-area/current-account</url>
</ArticlePreview>
<ArticlePreview>
<category>Current Account</category>
<country>Slovakia</country>
<date>2023-08-22T07:12:31.773</date>
<description>Slovakia posted a current account surplus of EUR 219.5 million in June 2023, compared to a deficit of EUR 719.3 million in the corresponding month of the previous year. Goods account shifted to a surplus of EUR 506.7 million from a deficit of EUR 328.5 million from a year ago, while services surplus sharply increased to EUR 66 million from EUR 14.4 million. Meanwhile, primary income deficit widened to EUR 231.1 million from EUR 205.5 million, whereas the secondary income shortfall decreased to EUR 122.5 million from EUR 199.7 million in the same month of the previous year.</description>
<id>384551</id>
<importance>1</importance>
<symbol>SlovakiaCA</symbol>
<title>Slovakia Current Account Swings to Surplus</title>
<url>/slovakia/current-account</url>
</ArticlePreview>
</ArrayOfArticlePreview>

By indicator and date

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=${api_key}&d1=2021-02-02&d2=2021-03-03'
data = requests.get(url).json()
print(data)

Or using our package:

te.getNews(indicator = 'inflation rate', start_date = '2021-02-02',
 end_date = '2021-03-03')

With multi indicators:

te.getNews(indicator = ['inflation rate', 'imports'], start_date = '2021-02-02',
 end_date = '2021-03-03')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=${api_key}&d1=2021-02-02&d2=2021-03-03`)
    console.log(response.data)
})()

Or using our package:

data = te.getNews(indicator = 'inflation rate', start_date = '2021-01-01',
 end_date = '2021-02-02').then(function(data){
    console.log(data)     
});

With multi indicators:

data = te.getNews(indicator = ['inflation rate', 'imports'], start_date = '2021-01-01',
 end_date = '2021-02-02').then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=your_api_key&d1=2021-02-02&d2=2021-03-03");

With multi indicators:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/indicator/inflation%20rate,imports?c=your_api_key&d1=2021-02-02&d2=2021-03-03");

/news/indicator/{indicators}?c=your_api_key&d1={date}&d2={date}

idtitledatedescriptioncountrycategorysymbolurlimportance
140204Australia Current Account Surplus Widens in Q43/2/2021 12:42:00 AM“Australia’s current account surplus widened to AUD 14.52 billion in the fourth quarter of…”AustraliaCurrent AccountAUCABAL/australia/current-account1
140154Canada Current Account Gap Lower than Expected3/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…”CanadaCurrent AccountCACURENT/canada/current-account1
139959Taiwan Posts 2nd Largest Current Account Surplus on Record2/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…”TaiwanCurrent AccountTaiwanCA/taiwan/current-account1

/news/indicator/{indicators}?c=your_api_key&d1={date}&d2={date}?f=json

[{"id":"140204","title":"Australia Current Account Surplus Widens in Q4","date":"2021-03-02T00:42:00","description":"Australia's current account surplus widened to AUD 14.52 billion in the fourth quarter of 2020, from an upwardly revised AUD 10.71 billion in the previous period and above market expectations of AUD 13.1 billion, as the goods surplus increased sharply to AUD 14.25 billion from AUD 9.66 billion. Meanwhile, the services surplus declined slightly to AUD 3.87 billion from AUD 4.04 billion in the previous three-month period, while the primary income gap rose to AUD 3.17 billion from AUD 2.72 billion and the secondary income deficit went up to AUD 0.43 billion from AUD 0.27 billion.","country":"Australia","category":"Current Account","symbol":"AUCABAL","url":"/australia/current-account","importance":1},{"id":"140154","title":"Canada Current Account Gap Lower than Expected","date":"2021-03-01T13:37:00","description":"Canada's current account deficit narrowed by CAD 3.2 billion to CAD 7.3 billion in the fourth quarter of 2020, compared to market forecasts of CAD 8.3 billion. This reduction reflected a higher investment income surplus and, to a lesser extent, a lower trade in goods and services deficit. Investment income receipts were up after three consecutive quarterly reductions, while payments were down for the fourth quarter in a row. The investment income surplus rose by CAD 3 billion to CAD 4.2 billion, almost entirely as a result of higher profits earned by Canadian direct investors abroad, as direct investment profits earned by foreigners in Canada edged up slightly. At the same time, the deficit in trade in goods and services dropped by CAD 421 million to CAD 9.2 billion, driven by a lower trade in goods deficit and a higher trade in services surplus. Considering full 2020, the current account deficit dropped by CAD 4.7 billion to CAD 42.7 billion.","country":"Canada","category":"Current Account","symbol":"CACURENT","url":"/canada/current-account","importance":1},{"id":"139959","title":"Taiwan Posts 2nd Largest Current Account Surplus on Record","date":"2021-02-26T10:46:00","description":"The current account surplus in Taiwan rose by $10.37 billion to $27.33 billion in the Q4 of 2020 from $16.96 billion a year ago. It was the 2nd largest current account surplus ever recorded, as the goods surplus increased by $8.90 billion to $23.04 billion, mainly boosted by orders for emerging technology applications and remote working-related products, as well as rising demand for traditional manufacturing goods. Meantime, the services account shifted to a $1.38 billion surplus compared to a $1.08 billion deficit, due to an increase in freight proceeds and a smaller travel deficit. On the other hand, the primary income account surplus fell by $1.11 billion to $3.66 billion, amid decreases in residents' income from outward foreign direct investment and in banks' overseas interest income. The secondary income gap fell by $0.18 billion to $0.75 billion, on lower expenditures on gifts and samples. In 2020, the country's current account surplus rose by $29.1 billion to $94.3 billion.","country":"Taiwan","category":"Current Account","symbol":"TaiwanCA","url":"/taiwan/current-account","importance":1}]

/news/indicator/{indicators}?c=your_api_key&d1={date}&d2={date}?f=csv

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 2020, from an upwardly revised AUD 10.71 billion in the previous period and above market expectations of AUD 13.1 billion, as the goods surplus increased sharply to AUD 14.25 billion from AUD 9.66 billion. Meanwhile, the services surplus declined slightly to AUD 3.87 billion from AUD 4.04 billion in the previous three-month period, while the primary income gap rose to AUD 3.17 billion from AUD 2.72 billion and the secondary income deficit went up to AUD 0.43 billion from AUD 0.27 billion.",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 quarter of 2020, compared to market forecasts of CAD 8.3 billion. This reduction reflected a higher investment income surplus and, to a lesser extent, a lower trade in goods and services deficit. Investment income receipts were up after three consecutive quarterly reductions, while payments were down for the fourth quarter in a row. The investment income surplus rose by CAD 3 billion to CAD 4.2 billion, almost entirely as a result of higher profits earned by Canadian direct investors abroad, as direct investment profits earned by foreigners in Canada edged up slightly. At the same time, the deficit in trade in goods and services dropped by CAD 421 million to CAD 9.2 billion, driven by a lower trade in goods deficit and a higher trade in services surplus. Considering full 2020, the current account deficit dropped by CAD 4.7 billion to CAD 42.7 billion.",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 from $16.96 billion a year ago. It was the 2nd largest current account surplus ever recorded, as the goods surplus increased by $8.90 billion to $23.04 billion, mainly boosted by orders for emerging technology applications and remote working-related products, as well as rising demand for traditional manufacturing goods. Meantime, the services account shifted to a $1.38 billion surplus compared to a $1.08 billion deficit, due to an increase in freight proceeds and a smaller travel deficit. On the other hand, the primary income account surplus fell by $1.11 billion to $3.66 billion, amid decreases in residents' income from outward foreign direct investment and in banks' overseas interest income. The secondary income gap fell by $0.18 billion to $0.75 billion, on lower expenditures on gifts and samples. In 2020, the country's current account surplus rose by $29.1 billion to $94.3 billion.",Taiwan,Current Account,TaiwanCA,/taiwan/current-account,1

/news/indicator/{indicators}?c=your_api_key&d1={date}&d2={date}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Current Account</category>
<country>Australia</country>
<date>2021-03-02T00:42:00</date>
<description>Australia's current account surplus widened to AUD 14.52 billion in the fourth quarter of 2020, from an upwardly revised AUD 10.71 billion in the previous period and above market expectations of AUD 13.1 billion, as the goods surplus increased sharply to AUD 14.25 billion from AUD 9.66 billion. Meanwhile, the services surplus declined slightly to AUD 3.87 billion from AUD 4.04 billion in the previous three-month period, while the primary income gap rose to AUD 3.17 billion from AUD 2.72 billion and the secondary income deficit went up to AUD 0.43 billion from AUD 0.27 billion.</description>
<id>140204</id>
<importance>1</importance>
<symbol>AUCABAL</symbol>
<title>Australia Current Account Surplus Widens in Q4</title>
<url>/australia/current-account</url>
</ArticlePreview>
<ArticlePreview>
<category>Current Account</category>
<country>Canada</country>
<date>2021-03-01T13:37:00</date>
<description>Canada's current account deficit narrowed by CAD 3.2 billion to CAD 7.3 billion in the fourth quarter of 2020, compared to market forecasts of CAD 8.3 billion. This reduction reflected a higher investment income surplus and, to a lesser extent, a lower trade in goods and services deficit. Investment income receipts were up after three consecutive quarterly reductions, while payments were down for the fourth quarter in a row. The investment income surplus rose by CAD 3 billion to CAD 4.2 billion, almost entirely as a result of higher profits earned by Canadian direct investors abroad, as direct investment profits earned by foreigners in Canada edged up slightly. At the same time, the deficit in trade in goods and services dropped by CAD 421 million to CAD 9.2 billion, driven by a lower trade in goods deficit and a higher trade in services surplus. Considering full 2020, the current account deficit dropped by CAD 4.7 billion to CAD 42.7 billion.</description>
<id>140154</id>
<importance>1</importance>
<symbol>CACURENT</symbol>
<title>Canada Current Account Gap Lower than Expected</title>
<url>/canada/current-account</url>
</ArticlePreview>
<ArticlePreview>
<category>Current Account</category>
<country>Taiwan</country>
<date>2021-02-26T10:46:00</date>
<description>The current account surplus in Taiwan rose by $10.37 billion to $27.33 billion in the Q4 of 2020 from $16.96 billion a year ago. It was the 2nd largest current account surplus ever recorded, as the goods surplus increased by $8.90 billion to $23.04 billion, mainly boosted by orders for emerging technology applications and remote working-related products, as well as rising demand for traditional manufacturing goods. Meantime, the services account shifted to a $1.38 billion surplus compared to a $1.08 billion deficit, due to an increase in freight proceeds and a smaller travel deficit. On the other hand, the primary income account surplus fell by $1.11 billion to $3.66 billion, amid decreases in residents' income from outward foreign direct investment and in banks' overseas interest income. The secondary income gap fell by $0.18 billion to $0.75 billion, on lower expenditures on gifts and samples. In 2020, the country's current account surplus rose by $29.1 billion to $94.3 billion.</description>
<id>139959</id>
<importance>1</importance>
<symbol>TaiwanCA</symbol>
<title>Taiwan Posts 2nd Largest Current Account Surplus on Record</title>
<url>/taiwan/current-account</url>
</ArticlePreview>
</ArrayOfArticlePreview>

By country and indicator

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c={api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

te.getNews(country = 'mexico', indicator = 'inflation rate')  

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getNews(country = 'mexico', indicator = 'inflation rate').then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c=your_api_key");

/news/country/{countries}/{indicators}

idtitledatedescriptioncountrycategorysymbolurlimportance
353429Mexico Inflation Rate Hits Highest Level Since 20009/8/2022 11:15:00 AM“Mexico’s annual inflation rate rose to 8.70 percent in August of 2022 from 8.15 percent…”MexicoInflation RateMXCPYOY/mexico/inflation-cpi2
350967Mexico Inflation Rate at 21-Year High8/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…”MexicoInflation RateMXCPYOY/mexico/inflation-cpi2
347712Mexico Inflation Rate at 21-Year High7/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…”MexicoInflation RateMXCPYOY/mexico/inflation-cpi1

/news/country/{countries}/{indicators}?f=json

[{"id":"364348","title":"Mexico Inflation Rate Close to 6-Month Lows","date":"2023-01-09T12:12:00","description":"Mexico’s annual inflation rate rose marginally to 7.82% in December of 2022, from 7.80% in the prior month, but holding close to six-month lows and below market forecasts of 7.86%. Prices increased slightly faster for food & non-alcoholic beverages (12.70% vs 12.41% in November); housing & utilities (2.26% vs 1.38%) and health (6.50% vs 6.33%). Meanwhile, there was a slowdown in prices of other CPI items such as alcoholic beverages & tobacco (9.02% vs 9.27%); furnishings & household equipment (8.21% vs 8.63%); transportation (6.52% vs 7.74%); recreation & culture (4.68% vs 5.50%) and clothing & footwear (6% vs 6.74%). The annual core inflation rate eased to 8.35% from an over 22-year high of 8.51% in the prior month and roughly in line with market expectations of 8.36%. On a monthly basis, consumer prices rose by 0.38% in December, the least in seven months and under market estimates of a 0.43% increase.","country":"Mexico","category":"Inflation Rate","symbol":"MXCPYOY","url":"/mexico/inflation-cpi","importance":2},{"id":"361985","title":"Mexico November Inflation Rate Falls to 7.8%","date":"2022-12-08T12:11:00","description":"Mexico’s annual inflation rate eased for the second month to 7.8% in November of 2022, from 8.41% in the prior month, below a two-decade high of 8.7% in August and September, and market estimates of 7.93%. This was the lowest reading since May largely due to the impact of pre-Christmas offers and discounts known as \"Buen Fin\" on some goods and services. Prices slowed down mostly for food & non-alcoholic beverages (12.41% vs  14.54% in October); furnishing & household equipment (8.63% vs 8.8%) and transportation (7.74% vs 7.86%). Meanwhile, prices accelerated for restaurants & hotels (12.42% vs 12.26%); miscellaneous goods & services (10.44% vs 10.18%), and clothing & footwear (6.74% vs 6.03%). Still, the annual core inflation rate ticked up to 8.51%, the highest since August of 2000, from 8.42% in the previous month. On a monthly basis, consumer prices were up by 0.58% in November, up slightly from a 0.57% rise in October but below market forecasts of a 0.69% increase.","country":"Mexico","category":"Inflation Rate","symbol":"MXCPYOY","url":"/mexico/inflation-cpi","importance":2},{"id":"359188","title":"Mexico Inflation Remains Near 2-Decade High","date":"2022-11-09T12:11:00","description":"Mexico’s annual inflation rate eased to 8.41% in October of 2022, from 8.70% in September but remained close to the highest level in nearly 22 years, well above the central bank’s 2%–4.0% target range. The reading came slightly below market forecasts of 8.46%. Prices slowed a bit for food & non-alcoholic beverages (14.54% vs 14.55% in September); furnishings & household equipment (8.80% vs 9.10%); recreation & culture (5.54% vs 5.73%) and housing & utilities (1.75% vs 3.60%). Meanwhile, prices continued to climb for other CPI items, such as restaurants & hotels (12.26% vs 11.49%); miscellaneous goods & services (10.18% vs 9.94%); transportation (7.86% vs 7.53%); alcoholic beverages & tobacco (9.52% vs 9.03%) and clothing & footwear (6.03% vs 5.79%). The annual core inflation rate rose to 8.42%, the highest since late 2000,  quickening from 8.28% in the previous month. On a monthly basis, consumer prices were up by 0.57% in October, the least in five months and below forecasts of 0.61%.","country":"Mexico","category":"Inflation Rate","symbol":"MXCPYOY","url":"/mexico/inflation-cpi","importance":3},{"id":"356019","title":"Mexico Inflation Rate Steady at Highest Since 2000","date":"2022-10-07T11:26:43.877","description":"Consumer prices in Mexico rose 8.7 percent year-on-year in September of 2022, the same as in the previous month, remaining the highest inflation rate since December 2000 and almost in line with market expectations of 8.75 percent. On a monthly basis, consumer prices went up 0.62 percent, below forecasts of 0.67 percent and easing from a 0.7 percent increase in August.","country":"Mexico","category":"Inflation Rate","symbol":"MXCPYOY","url":"/mexico/inflation-cpi","importance":1},{"id":"353429","title":"Mexico Inflation Rate Hits Highest Level Since 2000","date":"2022-09-08T11:15:00","description":"Mexico’s annual inflation rate rose to 8.70 percent in August of 2022 from 8.15 percent in the previous month, the highest reading since December of 2000 and slightly above expectations of 8.67 percent. Prices accelerated for both goods (10.55 percent vs. 10.07 percent in July), due to processed foods and beverages (12.94 percent vs. 12.09 percent), and services (5.19 percent vs. 4.90 percent), as housing costs edged higher (3.12 percent vs. 3.02 percent). At the same time, energy prices rose faster (7.25 percent vs. 4.76 percent). The core inflation rate rose to 8.05 percent, the highest since 2000, and picked up from 7.65 percent in the prior month. Monthly, consumer prices rose by 0.70 percent, above market expectations of 0.66 percent, but easing from the 0.74 percent increase in July.","country":"Mexico","category":"Inflation Rate","symbol":"MXCPYOY","url":"/mexico/inflation-cpi","importance":2}]

/news/country/{countries}/{indicators}?f=csv

id,title,date,description,country,category,symbol,url,importance
364348,Mexico Inflation Rate Close to 6-Month Lows,1/9/2023 12:12:00 PM,"Mexico’s annual inflation rate rose marginally to 7.82% in December of 2022, from 7.80% in the prior month, but holding close to six-month lows and below market forecasts of 7.86%. Prices increased slightly faster for food & non-alcoholic beverages (12.70% vs 12.41% in November); housing & utilities (2.26% vs 1.38%) and health (6.50% vs 6.33%). Meanwhile, there was a slowdown in prices of other CPI items such as alcoholic beverages & tobacco (9.02% vs 9.27%); furnishings & household equipment (8.21% vs 8.63%); transportation (6.52% vs 7.74%); recreation & culture (4.68% vs 5.50%) and clothing & footwear (6% vs 6.74%). The annual core inflation rate eased to 8.35% from an over 22-year high of 8.51% in the prior month and roughly in line with market expectations of 8.36%. On a monthly basis, consumer prices rose by 0.38% in December, the least in seven months and under market estimates of a 0.43% increase.",Mexico,Inflation Rate,MXCPYOY,/mexico/inflation-cpi,2
361985,Mexico November Inflation Rate Falls to 7.8%,12/8/2022 12:11:00 PM,"Mexico’s annual inflation rate eased for the second month to 7.8% in November of 2022, from 8.41% in the prior month, below a two-decade high of 8.7% in August and September, and market estimates of 7.93%. This was the lowest reading since May largely due to the impact of pre-Christmas offers and discounts known as ""Buen Fin"" on some goods and services. Prices slowed down mostly for food & non-alcoholic beverages (12.41% vs  14.54% in October); furnishing & household equipment (8.63% vs 8.8%) and transportation (7.74% vs 7.86%). Meanwhile, prices accelerated for restaurants & hotels (12.42% vs 12.26%); miscellaneous goods & services (10.44% vs 10.18%), and clothing & footwear (6.74% vs 6.03%). Still, the annual core inflation rate ticked up to 8.51%, the highest since August of 2000, from 8.42% in the previous month. On a monthly basis, consumer prices were up by 0.58% in November, up slightly from a 0.57% rise in October but below market forecasts of a 0.69% increase.",Mexico,Inflation Rate,MXCPYOY,/mexico/inflation-cpi,2
359188,Mexico Inflation Remains Near 2-Decade High,11/9/2022 12:11:00 PM,"Mexico’s annual inflation rate eased to 8.41% in October of 2022, from 8.70% in September but remained close to the highest level in nearly 22 years, well above the central bank’s 2%–4.0% target range. The reading came slightly below market forecasts of 8.46%. Prices slowed a bit for food & non-alcoholic beverages (14.54% vs 14.55% in September); furnishings & household equipment (8.80% vs 9.10%); recreation & culture (5.54% vs 5.73%) and housing & utilities (1.75% vs 3.60%). Meanwhile, prices continued to climb for other CPI items, such as restaurants & hotels (12.26% vs 11.49%); miscellaneous goods & services (10.18% vs 9.94%); transportation (7.86% vs 7.53%); alcoholic beverages & tobacco (9.52% vs 9.03%) and clothing & footwear (6.03% vs 5.79%). The annual core inflation rate rose to 8.42%, the highest since late 2000,  quickening from 8.28% in the previous month. On a monthly basis, consumer prices were up by 0.57% in October, the least in five months and below forecasts of 0.61%.",Mexico,Inflation Rate,MXCPYOY,/mexico/inflation-cpi,3

/news/country/{countries}/{indicators}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Inflation Rate</category>
<country>Mexico</country>
<date>2023-01-09T12:12:00</date>
<description>Mexico’s annual inflation rate rose marginally to 7.82% in December of 2022, from 7.80% in the prior month, but holding close to six-month lows and below market forecasts of 7.86%. Prices increased slightly faster for food & non-alcoholic beverages (12.70% vs 12.41% in November); housing & utilities (2.26% vs 1.38%) and health (6.50% vs 6.33%). Meanwhile, there was a slowdown in prices of other CPI items such as alcoholic beverages & tobacco (9.02% vs 9.27%); furnishings & household equipment (8.21% vs 8.63%); transportation (6.52% vs 7.74%); recreation & culture (4.68% vs 5.50%) and clothing & footwear (6% vs 6.74%). The annual core inflation rate eased to 8.35% from an over 22-year high of 8.51% in the prior month and roughly in line with market expectations of 8.36%. On a monthly basis, consumer prices rose by 0.38% in December, the least in seven months and under market estimates of a 0.43% increase.</description>
<id>364348</id>
<importance>2</importance>
<symbol>MXCPYOY</symbol>
<title>Mexico Inflation Rate Close to 6-Month Lows</title>
<url>/mexico/inflation-cpi</url>
</ArticlePreview>
<ArticlePreview>
<category>Inflation Rate</category>
<country>Mexico</country>
<date>2022-12-08T12:11:00</date>
<description>Mexico’s annual inflation rate eased for the second month to 7.8% in November of 2022, from 8.41% in the prior month, below a two-decade high of 8.7% in August and September, and market estimates of 7.93%. This was the lowest reading since May largely due to the impact of pre-Christmas offers and discounts known as "Buen Fin" on some goods and services. Prices slowed down mostly for food & non-alcoholic beverages (12.41% vs 14.54% in October); furnishing & household equipment (8.63% vs 8.8%) and transportation (7.74% vs 7.86%). Meanwhile, prices accelerated for restaurants & hotels (12.42% vs 12.26%); miscellaneous goods & services (10.44% vs 10.18%), and clothing & footwear (6.74% vs 6.03%). Still, the annual core inflation rate ticked up to 8.51%, the highest since August of 2000, from 8.42% in the previous month. On a monthly basis, consumer prices were up by 0.58% in November, up slightly from a 0.57% rise in October but below market forecasts of a 0.69% increase.</description>
<id>361985</id>
<importance>2</importance>
<symbol>MXCPYOY</symbol>
<title>Mexico November Inflation Rate Falls to 7.8%</title>
<url>/mexico/inflation-cpi</url>
</ArticlePreview>
<ArticlePreview>
<category>Inflation Rate</category>
<country>Mexico</country>
<date>2022-11-09T12:11:00</date>
<description>Mexico’s annual inflation rate eased to 8.41% in October of 2022, from 8.70% in September but remained close to the highest level in nearly 22 years, well above the central bank’s 2%–4.0% target range. The reading came slightly below market forecasts of 8.46%. Prices slowed a bit for food & non-alcoholic beverages (14.54% vs 14.55% in September); furnishings & household equipment (8.80% vs 9.10%); recreation & culture (5.54% vs 5.73%) and housing & utilities (1.75% vs 3.60%). Meanwhile, prices continued to climb for other CPI items, such as restaurants & hotels (12.26% vs 11.49%); miscellaneous goods & services (10.18% vs 9.94%); transportation (7.86% vs 7.53%); alcoholic beverages & tobacco (9.52% vs 9.03%) and clothing & footwear (6.03% vs 5.79%). The annual core inflation rate rose to 8.42%, the highest since late 2000, quickening from 8.28% in the previous month. On a monthly basis, consumer prices were up by 0.57% in October, the least in five months and below forecasts of 0.61%.</description>
<id>359188</id>
<importance>3</importance>
<symbol>MXCPYOY</symbol>
<title>Mexico Inflation Remains Near 2-Decade High</title>
<url>/mexico/inflation-cpi</url>
</ArticlePreview>
<ArticlePreview>
<category>Inflation Rate</category>
<country>Mexico</country>
<date>2022-10-07T11:26:43.877</date>
<description>Consumer prices in Mexico rose 8.7 percent year-on-year in September of 2022, the same as in the previous month, remaining the highest inflation rate since December 2000 and almost in line with market expectations of 8.75 percent. On a monthly basis, consumer prices went up 0.62 percent, below forecasts of 0.67 percent and easing from a 0.7 percent increase in August.</description>
<id>356019</id>
<importance>1</importance>
<symbol>MXCPYOY</symbol>
<title>Mexico Inflation Rate Steady at Highest Since 2000</title>
<url>/mexico/inflation-cpi</url>
</ArticlePreview>
<ArticlePreview>
<category>Inflation Rate</category>
<country>Mexico</country>
<date>2022-09-08T11:15:00</date>
<description>Mexico’s annual inflation rate rose to 8.70 percent in August of 2022 from 8.15 percent in the previous month, the highest reading since December of 2000 and slightly above expectations of 8.67 percent. Prices accelerated for both goods (10.55 percent vs. 10.07 percent in July), due to processed foods and beverages (12.94 percent vs. 12.09 percent), and services (5.19 percent vs. 4.90 percent), as housing costs edged higher (3.12 percent vs. 3.02 percent). At the same time, energy prices rose faster (7.25 percent vs. 4.76 percent). The core inflation rate rose to 8.05 percent, the highest since 2000, and picked up from 7.65 percent in the prior month. Monthly, consumer prices rose by 0.70 percent, above market expectations of 0.66 percent, but easing from the 0.74 percent increase in July.</description>
<id>353429</id>
<importance>2</importance>
<symbol>MXCPYOY</symbol>
<title>Mexico Inflation Rate Hits Highest Level Since 2000</title>
<url>/mexico/inflation-cpi</url>
</ArticlePreview>
</ArrayOfArticlePreview>

By country, indicator and date

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c={api_key}&d1=2021-02-02&d2=2021-03-03'
data = requests.get(url).json()
print(data)

Or using our package:

te.getNews(country = 'mexico', indicator = 'inflation rate', start_date = '2021-02-02',
 end_date = '2021-03-03')  

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c=${api_key}&d1=2021-02-02&d2=2021-03-03`)
    console.log(response.data)
})()

Or using our package:

data = te.getNews(country = 'mexico', indicator = 'inflation rate',
 start_date = '2021-02-02', end_date = '2021-03-03').then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/news/country/mexico/inflation%20rate?c=your_api_key&d1=2021-02-02&d2=2021-03-03");

/news/country/{countries}/{indicators}?c=your_api_key&d1={date}&d2={date}

idtitledatedescriptioncountrycategorysymbolurlimportance
138307Mexico Inflation Rate Picks Up to 3.54% in January2/9/2021 12:11:24 PM“The annual inflation rate in Mexico increased to 3.54 percent in January of 2021 from a…”MexicoInflation RateMXCPYOY/mexico/inflation-cpi2

/news/country/{countries}/{indicators}?c=your_api_key&d1={date}&d2={date}?f=json

[{"id":"138307","title":"Mexico Inflation Rate Picks Up to 3.54% in January","date":"2021-02-09T12:11:24.75","description":"The annual inflation rate in Mexico increased to 3.54 percent in January of 2021 from a seven-month low of 3.15 percent in the previous month and compared to market expectations of 3.46 percent. On a monthly basis, consumer prices climbed 0.86 percent, following a 0.38 percent gain in December. The core index, which strips out some volatile food and energy prices advanced 0.36 percent from a month earlier, after a 0.55 percent rise in December.","country":"Mexico","category":"Inflation Rate","symbol":"MXCPYOY","url":"/mexico/inflation-cpi","importance":2}]

/news/country/{countries}/{indicators}?c=your_api_key&d1={date}&d2={date}?f=csv

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 seven-month low of 3.15 percent in the previous month and compared to market expectations of 3.46 percent. On a monthly basis, consumer prices climbed 0.86 percent, following a 0.38 percent gain in December. The core index, which strips out some volatile food and energy prices advanced 0.36 percent from a month earlier, after a 0.55 percent rise in December.",Mexico,Inflation Rate,MXCPYOY,/mexico/inflation-cpi,2

/news/country/{countries}/{indicators}?c=your_api_key&d1={date}&d2={date}?f=xml

<ArrayOfArticlePreview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ArticlePreview>
<category>Inflation Rate</category>
<country>Mexico</country>
<date>2021-02-09T12:11:24.75</date>
<description>The annual inflation rate in Mexico increased to 3.54 percent in January of 2021 from a seven-month low of 3.15 percent in the previous month and compared to market expectations of 3.46 percent. On a monthly basis, consumer prices climbed 0.86 percent, following a 0.38 percent gain in December. The core index, which strips out some volatile food and energy prices advanced 0.36 percent from a month earlier, after a 0.55 percent rise in December.</description>
<id>138307</id>
<importance>2</importance>
<symbol>MXCPYOY</symbol>
<title>Mexico Inflation Rate Picks Up to 3.54% in January</title>
<url>/mexico/inflation-cpi</url>
</ArticlePreview>
</ArrayOfArticlePreview>