News by Date

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

Using Requests:

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

https://api.tradingeconomics.com/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
  }
]
https://api.tradingeconomics.com/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
https://api.tradingeconomics.com/news?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>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>
https://api.tradingeconomics.com/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