Forecast Updates

List all forecast updates with their related country, category, and ticker.

Updates

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/forecast/updates?c={api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

import tradingeconomics as te
te.login('your_api_key')
te.getForecastUpdates()

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/updates?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getForecastsUpdates().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/forecast/updates?c=your_api_key"))
    {
        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.

/forecasts/updates

CountryCategoryTickerLastUpdate
AlbaniaCPI TransportationALBANIACPITRA12/2/2024 6:15:00 PM
AlbaniaGasoline PricesAlbaniaGasPri12/2/2024 6:15:00 PM
AngolaCPI TransportationANGOLACPITRA12/2/2024 6:15:00 PM

/forecasts/updates?f=json

[{"Country":"Albania","Category":"CPI Transportation","Ticker":"ALBANIACPITRA","LastUpdate":"2024-12-02T18:15:00"},{"Country":"Albania","Category":"Gasoline Prices","Ticker":"AlbaniaGasPri","LastUpdate":"2024-12-02T18:15:00"},{"Country":"Angola","Category":"CPI Transportation","Ticker":"ANGOLACPITRA","LastUpdate":"2024-12-02T18:15:00"}]

/forecasts/updates?f=csv

Country,Category,Ticker,LastUpdate
Albania	CPI Transportation	ALBANIACPITRA	12/2/2024 6:15:00 PM
Albania	Gasoline Prices	AlbaniaGasPri	12/2/2024 6:15:00 PM
Angola	CPI Transportation	ANGOLACPITRA	12/2/2024 6:15:00 PM

By date

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/forecast/updates?start_date=2024-10-30&c={api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

te.getForecastUpdates(init_date = '2024-10-30')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/updates?start_date=2024-10-30&c=${api_key}`)
    console.log(response.data)
})()

Or using our package:


data = te.getForecastsUpdates(start_date = '2024-10-30').then(function(data){
    console.log(data)     
});

Using Requests:

    new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/updates?start_date=2024-10-30&c=your_api_key"

The response data format can be configured by appending the &f= parameter to the URL request.

/forecasts/updates?start_date={yyyy-mm-dd}

CountryCategoryTickerLastUpdate
AlbaniaCPI TransportationALBANIACPITRA12/2/2024 6:15:00 PM
AlbaniaGasoline PricesAlbaniaGasPri12/2/2024 6:15:00 PM
AngolaCPI TransportationANGOLACPITRA12/2/2024 6:15:00 PM

/forecasts/updates?start_date={yyyy-mm-dd}&f=json

[{"Country":"Albania","Category":"CPI Transportation","Ticker":"ALBANIACPITRA","LastUpdate":"2024-12-02T18:15:00"},{"Country":"Albania","Category":"Gasoline Prices","Ticker":"AlbaniaGasPri","LastUpdate":"2024-12-02T18:15:00"},{"Country":"Angola","Category":"CPI Transportation","Ticker":"ANGOLACPITRA","LastUpdate":"2024-12-02T18:15:00"}]

/forecasts/updates?start_date={yyyy-mm-dd}&f=csv

Country,Category,Ticker,LastUpdate
Albania	CPI Transportation	ALBANIACPITRA	12/2/2024 6:15:00 PM
Albania	Gasoline Prices	AlbaniaGasPri	12/2/2024 6:15:00 PM
Angola	CPI Transportation	ANGOLACPITRA	12/2/2024 6:15:00 PM

By country

Using Requests:

import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/forecast/updates?country=albania&c={api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

te.getForecastUpdates(country = 'albania')

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/updates?country=albania&c=${api_key}`)
    console.log(response.data)
})()

Or using our package:


data = te.getForecastsUpdates(country = 'albania').then(function(data){
    console.log(data)     
});

Using Requests:

    new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/updates?country=albania&c=your_api_key"

The response data format can be configured by appending the &f= parameter to the URL request.

/forecasts/updates?country={country}

CountryCategoryTickerLastUpdate
AlbaniaCPI TransportationALBANIACPITRA12/2/2024 6:15:00 PM
AlbaniaGasoline PricesAlbaniaGasPri12/2/2024 6:15:00 PM
AngolaCPI TransportationANGOLACPITRA12/2/2024 6:15:00 PM

/forecasts/updates?country={country}&f=json

[{"Country":"Albania","Category":"CPI Transportation","Ticker":"ALBANIACPITRA","LastUpdate":"2024-12-02T18:15:00"},{"Country":"Albania","Category":"Gasoline Prices","Ticker":"AlbaniaGasPri","LastUpdate":"2024-12-02T18:15:00"},{"Country":"Angola","Category":"CPI Transportation","Ticker":"ANGOLACPITRA","LastUpdate":"2024-12-02T18:15:00"}]

/forecasts/updates?country={country}&f=csv

Country,Category,Ticker,LastUpdate
Albania	CPI Transportation	ALBANIACPITRA	12/2/2024 6:15:00 PM
Albania	Gasoline Prices	AlbaniaGasPri	12/2/2024 6:15:00 PM
Angola	CPI Transportation	ANGOLACPITRA	12/2/2024 6:15:00 PM

Response fields

FieldTypeDescriptionExample
CountrystringCountry name“Albania”
CategorystringCategory name“CPI Transportations”
TickerstringUnique ticker used by Trading Economics“ANGOLACPITRA”
LastUpdatestringLast update date and time“12/2/2024 6:15:00 PM”