Changes

This section’s endpoints provide a list of the latest Economic Indicators that have undergone changes in their data series, along with the reason for the modification.

All changes

Using Requests:

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

Or using our package:

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

Using Requests:

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

Or using our package:

const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getIndicatorChanges().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/changes?client=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.

/changes

CountryCategoryTickerReasonDate
SerbiaLabour CostsSERBIALABCOSFrequency10/29/2024 3:47:29 AM
Saudi ArabiaHousing IndexSAUDIARABHOUINDBase year10/28/2024 3:19:33 PM
IndiaWagesINDIAWAGReplacement10/28/2024 11:42:54 AM

/changes?f=json

[{"Country":"Serbia","Category":"Labour Costs","Ticker":"SERBIALABCOS","Reason":"Frequency","Date":"2024-10-29T03:47:29.33"},{"Country":"Saudi Arabia","Category":"Housing Index","Ticker":"SAUDIARABHOUIND","Reason":"Base year","Date":"2024-10-28T15:19:33.473"},{"Country":"India","Category":"Wages","Ticker":"INDIAWAG","Reason":"Replacement","Date":"2024-10-28T11:42:54.78"}]

/changes?f=csv

Country,Category,Ticker,Reason,Date
Serbia,Labour Costs,SERBIALABCOS,Frequency,10/29/2024 3:47:29 AM
Saudi Arabia,Housing Index,SAUDIARABHOUIND,Base year,10/28/2024 3:19:33 PM
India,Wages,INDIAWAG,Replacement,10/28/2024 11:42:54 AM

/changes?f=xml

<ArrayOfChangesItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ChangesItem>
<Category>Labour Costs</Category>
<Country>Serbia</Country>
<Date>2024-10-29T03:47:29.33</Date>
<Reason>Frequency</Reason>
<Ticker>SERBIALABCOS</Ticker>
</ChangesItem>
<ChangesItem>
<Category>Housing Index</Category>
<Country>Saudi Arabia</Country>
<Date>2024-10-28T15:19:33.473</Date>
<Reason>Base year</Reason>
<Ticker>SAUDIARABHOUIND</Ticker>
</ChangesItem>
<ChangesItem>
<Category>Wages</Category>
<Country>India</Country>
<Date>2024-10-28T11:42:54.78</Date>
<Reason>Replacement</Reason>
<Ticker>INDIAWAG</Ticker>
</ChangesItem>
</ArrayOfChangesItem>

By date

Using Requests:

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

Or using our package:

te.getIndicatorChanges(start_date = '2024-10-01')

Using Requests:

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

Or using our package:

data = te.getIndicatorChanges(start_date = '2024-10-01').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/changes/2024-10-01?client=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);
        }
    }
}

/changes/{date}

CountryCategoryTickerReasonDate
SerbiaLabour CostsSERBIALABCOSFrequency10/29/2024 3:47:29 AM
Saudi ArabiaHousing IndexSAUDIARABHOUINDBase year10/28/2024 3:19:33 PM
IndiaWagesINDIAWAGReplacement10/28/2024 11:42:54 AM

/changes/{date}?f=json

[{"Country":"Serbia","Category":"Labour Costs","Ticker":"SERBIALABCOS","Reason":"Frequency","Date":"2024-10-29T03:47:29.33"},{"Country":"Saudi Arabia","Category":"Housing Index","Ticker":"SAUDIARABHOUIND","Reason":"Base year","Date":"2024-10-28T15:19:33.473"},{"Country":"India","Category":"Wages","Ticker":"INDIAWAG","Reason":"Replacement","Date":"2024-10-28T11:42:54.78"}]

/changes/{date}?f=csv

Country,Category,Ticker,Reason,Date
Serbia,Labour Costs,SERBIALABCOS,Frequency,10/29/2024 3:47:29 AM
Saudi Arabia,Housing Index,SAUDIARABHOUIND,Base year,10/28/2024 3:19:33 PM
India,Wages,INDIAWAG,Replacement,10/28/2024 11:42:54 AM

/changes/{date}?f=xml

<ArrayOfChangesItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<ChangesItem>
<Category>Labour Costs</Category>
<Country>Serbia</Country>
<Date>2024-10-29T03:47:29.33</Date>
<Reason>Frequency</Reason>
<Ticker>SERBIALABCOS</Ticker>
</ChangesItem>
<ChangesItem>
<Category>Housing Index</Category>
<Country>Saudi Arabia</Country>
<Date>2024-10-28T15:19:33.473</Date>
<Reason>Base year</Reason>
<Ticker>SAUDIARABHOUIND</Ticker>
</ChangesItem>
<ChangesItem>
<Category>Wages</Category>
<Country>India</Country>
<Date>2024-10-28T11:42:54.78</Date>
<Reason>Replacement</Reason>
<Ticker>INDIAWAG</Ticker>
</ChangesItem>
</ArrayOfChangesItem>

Response fields

FieldTypeDescriptionExample
CountrystringCountry name“Serbia”
CategorystringCategory name“Labour Costs”
TickerstringUnique ticker used by Trading Economics“SERBIALABCOS”
ReasonstringReason of the change“Frequency”
DatestringDate of the change“10/29/2024 3:47:29 AM”