News by Country

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

Using Requests:

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