News by Indicator
This endpoint allows for the retrieval of news filtered by indicator.
Using Requests:
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/news/indicator/inflation%20rate?c={your_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 your_api_key = 'your_api_key'
const response = await axios.get(`https://api.tradingeconomics.com/news/indicator/inflation%20rate?c=${your_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");
https://api.tradingeconomics.com/news/indicator/{indicators}?c={your_api_key}&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
}
]
https://api.tradingeconomics.com/news/indicator/{indicators}?c={your_api_key}&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
https://api.tradingeconomics.com/news/indicator/{indicators}?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>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>
https://api.tradingeconomics.com/news/indicator/{indicators}?c={your_api_key}
| id | title | date | description | country | category | symbol | url | importance |
|---|---|---|---|---|---|---|---|---|
| 377135 | Iceland Current Account Deficit Narrows in Q1 | 6/1/2023 9:17:38 AM | “The current account deficit in Iceland narrowed sharply to ISK 10.1 billion in…” | Iceland | Current Account | ICCACURR | /iceland/current-account | 1 |
| 377031 | Ukraine Current Account Shrinks in April | 5/31/2023 3:38:00 PM | “Ukraine’s current account surplus shrank to USD 0.285 billion in April 2023 from USD…” | Ukraine | Current Account | UkraineCA | /ukraine/current-account | 0 |
| 376967 | Macedonia Current Account Surplus Largest in 20 Months | 5/31/2023 9:26:00 AM | “Macedonia’s current account recorded a USD 108.9 million surplus in March 2023, the largest figure …” | Macedonia | Current Account | MacedoniaCA | /macedonia/current-account | 1 |