News by Indicator and Date
This endpoint allows for the retrieval of news filtered by indicator and date.
Using Requests:
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/news/indicator/inflation%20rate?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(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 your_api_key = 'your_api_key'
const response = await axios.get(`https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=${your_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");
https://api.tradingeconomics.com/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
}
]
https://api.tradingeconomics.com/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
https://api.tradingeconomics.com/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>
https://api.tradingeconomics.com/news/indicator/{indicators}?c={your_api_key}&d1={date}&d2={date}
| id | title | date | description | country | category | symbol | url | importance |
|---|---|---|---|---|---|---|---|---|
| 140204 | Australia Current Account Surplus Widens in Q4 | 3/2/2021 12:42:00 AM | “Australia’s current account surplus widened to AUD 14.52 billion in the fourth quarter of…” | Australia | Current Account | AUCABAL | /australia/current-account | 1 |
| 140154 | Canada Current Account Gap Lower than Expected | 3/1/2021 1:37:00 PM | “Canada’s current account deficit narrowed by CAD 3.2 billion to CAD 7.3 billion in the fourth…” | Canada | Current Account | CACURENT | /canada/current-account | 1 |
| 139959 | Taiwan Posts 2nd Largest Current Account Surplus on Record | 2/26/2021 10:46:00 AM | “The current account surplus in Taiwan rose by $10.37 billion to $27.33 billion in the Q4 of 2020…” | Taiwan | Current Account | TaiwanCA | /taiwan/current-account | 1 |