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.
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 |
[{"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"}]
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
<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);
}
}
}
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 |
[{"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"}]
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
<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
Field | Type | Description | Example |
---|---|---|---|
Country | string | Country name | “Serbia” |
Category | string | Category name | “Labour Costs” |
Ticker | string | Unique ticker used by Trading Economics | “SERBIALABCOS” |
Reason | string | Reason of the change | “Frequency” |
Date | string | Date of the change | “10/29/2024 3:47:29 AM” |