News by Country and Date

This endpoint allows for the retrieval of news filtered by country and date.

Using Requests:

import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/news/country/mexico?c={your_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 your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/news/country/mexico?c=${your_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");
https://api.tradingeconomics.com/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
  }
]
https://api.tradingeconomics.com/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
https://api.tradingeconomics.com/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>
https://api.tradingeconomics.com/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