Financials Earnings and Revenues by Sector
Use the following API endpoints to list and obtain financial data by sector.
You can refine your search by specifying the sector of companies.
List of stock sectors
Using Requests:
Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/sectors?c={your_api_key}'
data = requests.get(url).json()
print(data)Or using our package:
Python
import tradingeconomics as te
te.login('your_api_key')
te.getSectors()Using Requests:
JavaScript
const axios = require('axios');
(async () => {
const your_api_key = 'your_api_key'
const response = await axios.get(`https://api.tradingeconomics.com/sectors?c=${your_api_key}`)
console.log(response.data)
})()Or using our package:
JavaScript
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getSectors().then(function(data){
console.log(data)
});Using Requests:
C#
using (var httpClient = new HttpClient())
{
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/sectors?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.
Text
https://api.tradingeconomics.com/sectors?c={your_api_key}&f=jsonJSON
[
{
"Sector": "Communication Services"
},
{
"Sector": "Communications"
},
{
"Sector": "Consumer Discretionary"
},
{
"Sector": "Consumer Staples"
},
{
"Sector": "Energy"
},
{
"Sector": "Financials"
},
{
"Sector": "Health Care"
},
{
"Sector": "Industrials"
},
{
"Sector": "Information Technology"
},
{
"Sector": "Materials"
},
{
"Sector": "Period End Date"
},
{
"Sector": "Real Estate"
},
{
"Sector": "Technology"
},
{
"Sector": "Utilities"
}
]Text
https://api.tradingeconomics.com/sectors?c={your_api_key}&f=csvBash
Sector
Communication Services
Communications
Consumer DiscretionaryText
https://api.tradingeconomics.com/sectors?c={your_api_key}| Sector |
|---|
| Communication Services |
| Communications |
| Consumer Discretionary |
By sector
Using Requests:
Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/earnings-revenues/sector/materials?c={your_api_key}'
data = requests.get(url).json()
print(data)Or using our package:
Python
te.getEarnings(sector = 'materials')Using Requests:
JavaScript
const axios = require('axios');
(async () => {
const your_api_key = 'your_api_key'
const response = await axios.get(`https://api.tradingeconomics.com/earnings-revenues/sector/materials?c=${your_api_key}`)
console.log(response.data)
})()Or using our package:
JavaScript
data = te.getEarnings(sector = 'materials').then(function(data){
console.log(data)
});Using Requests:
C#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/earnings-revenues/sector/materials?c=your_api_key");Text
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&f=jsonJSON
[
{
"Date": "2023-09-04",
"Symbol": "ARI:SJ",
"Name": "African Rainbow Minerals",
"Actual": "19.37",
"ActualValue": 19.37,
"Forecast": "0.00",
"ForecastValue": 0.0,
"Previous": "39.15",
"PreviousValue": 39.15,
"Revenue": "6.72B",
"RevenueValue": 6720000000.0,
"RevenueForecast": "",
"RevenueForecastValue": null,
"RevenuePrevious": "9.85B",
"RevenuePreviousValue": 9850000000.0,
"MarketCapUSD": 1726756424,
"FiscalTag": "FY2023H2",
"FiscalReference": "H2",
"CalendarReference": "2023-06-30",
"Country": "South Africa",
"Currency": "ZAR",
"Importance": 1,
"Session": 24,
"MarketRelease": "by_day_end",
"LastUpdate": "2023-09-22T12:51:00"
},
{
"Date": "2023-09-05",
"Symbol": "MDI:CN",
"Name": "Major Drilling",
"Actual": "0.26",
"ActualValue": 0.26,
"Forecast": "0.26",
"ForecastValue": 0.26,
"Previous": "0.29",
"PreviousValue": 0.29,
"Revenue": "198.88M",
"RevenueValue": 198880000.0,
"RevenueForecast": "203.35M",
"RevenueForecastValue": 203350000.0,
"RevenuePrevious": "199.84M",
"RevenuePreviousValue": 199840000.0,
"MarketCapUSD": 492164453,
"FiscalTag": "FY2024Q1",
"FiscalReference": "Q1",
"CalendarReference": "2023-07-31",
"Country": "Canada",
"Currency": "CAD",
"Importance": 1,
"Session": 21,
"MarketRelease": "after_close",
"LastUpdate": "2023-09-27T13:36:00"
},
{
"Date": "2023-09-27",
"Symbol": "WOR:US",
"Name": "Worthington Industries",
"Actual": "2.06",
"ActualValue": 2.06,
"Forecast": "2.04",
"ForecastValue": 2.04,
"Previous": "1.61",
"PreviousValue": 1.61,
"Revenue": "1.2B",
"RevenueValue": 1200000000.0,
"RevenueForecast": "1.23B",
"RevenueForecastValue": 1230000000.0,
"RevenuePrevious": "1.41B",
"RevenuePreviousValue": 1410000000.0,
"MarketCapUSD": 3053300000,
"FiscalTag": "FY2024Q1",
"FiscalReference": "Q1",
"CalendarReference": "2023-08-31",
"Country": "United States",
"Currency": "USD",
"Importance": 1,
"Session": 13,
"MarketRelease": "before_open",
"LastUpdate": "2023-09-30T04:35:00"
}
]Text
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&f=csvBash
Date,Symbol,Name,Actual,ActualValue,Forecast,ForecastValue,Previous,PreviousValue,Revenue,RevenueValue,RevenueForecast,RevenueForecastValue,RevenuePrevious,RevenuePreviousValue,MarketCapUSD,FiscalTag,FiscalReference,CalendarReference,Country,Currency,Importance,Session,MarketRelease,LastUpdate
2023-09-04,ARI:SJ,African Rainbow Minerals,19.37,19.37,0.00,0,39.15,39.15,6.72B,6720000000,,,9.85B,9850000000,1726756424,FY2023H2,H2,2023-06-30,South Africa,ZAR,1,24,by_day_end,9/22/2023 12:51:00 PM
2023-09-05,MDI:CN,Major Drilling,0.26,0.26,0.26,0.26,0.29,0.29,198.88M,198880000,203.35M,203350000,199.84M,199840000,492164453,FY2024Q1,Q1,2023-07-31,Canada,CAD,1,21,after_close,9/27/2023 1:36:00 PM
2023-09-27,WOR:US,Worthington Industries,2.06,2.06,2.04,2.04,1.61,1.61,1.2B,1200000000,1.23B,1230000000,1.41B,1410000000,3053300000,FY2024Q1,Q1,2023-08-31,United States,USD,1,13,before_open,9/30/2023 4:35:00 AMText
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}| Date | Symbol | Name | Actual | ActualValue | Forecast | ForecastValue | Previous | PreviousValue | Revenue | RevenueValue | RevenueForecast | RevenueForecastValue | RevenuePrevious | RevenuePreviousValue | MarketCapUSD | FiscalTag | FiscalReference | CalendarReference | Country | Currency | Importance | Session | MarketRelease | LastUpdate |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2023-06-13 | MDI:CN | Major Drilling | 0.25 | 0.25 | 0.26 | 0.26 | 0.27 | 0.27 | 184.97M | 184970000 | 192.04M | 192040000 | 189.98M | 189980000 | 586712712 | FY2023Q4 | Q4 | 2023-03-31 | Canada | CAD | 1 | 21 | after_close | 6/17/2023 8:10:00 AM |
| 2023-06-22 | CMC:US | Commercial Metals | 2.02 | 2.02 | 1.83 | 1.83 | 2.61 | 2.61 | 2.34B | 2340000000 | 2.33B | 2330000000 | 2.52B | 2520000000 | 6623500000 | FY2023Q3 | Q3 | 2023-03-31 | United States | USD | 1 | 13 | before_open | 6/22/2023 9:01:00 PM |
| 2023-06-22 | 5714:JP | Dowa | 219.54 | 219.54 | 209.93B | 209930000000 | 1978619640 | FY2024Q1 | Q1 | 2023-06-30 | Japan | JPY | 1 | 4 | after_close | 4/21/2023 6:58:00 PM |
By sector and date
Using Requests:
Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/earnings-revenues/sector/materials?d1=2016-01-01&d2=2023-12-31&c={your_api_key}'
data = requests.get(url).json()
print(data)Or using our package:
Python
te.getEarnings(sector = 'materials', initDate='2016-01-01', endDate='2023-12-31')Using Requests:
JavaScript
const axios = require('axios');
(async () => {
const your_api_key = 'your_api_key'
const response = await axios.get(`https://api.tradingeconomics.com/earnings-revenues/sector/materials?d1=2016-01-01&d2=2023-12-31&c=${your_api_key}`)
console.log(response.data)
})()Or using our package:
JavaScript
data = te.getEarnings(sector = 'materials', start_date = '2016-01-01', end_date = '2023-12-31').then(function(data){
console.log(data)
});Using Requests:
C#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/earnings-revenues/sector/materials?d1=2016-01-01&d2=2023-12-31&c=your_api_key");Text
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=jsonJSON
[
{
"Date": "2016-01-05",
"Symbol": "CMC:US",
"Name": "Commercial Metals",
"Actual": "0.22",
"ActualValue": 0.22,
"Forecast": "0.23",
"ForecastValue": 0.23,
"Previous": "0.32",
"PreviousValue": 0.32,
"Revenue": "1.15B",
"RevenueValue": 1150000000.0,
"RevenueForecast": "",
"RevenueForecastValue": null,
"RevenuePrevious": "1.68B",
"RevenuePreviousValue": 1680000000.0,
"MarketCapUSD": 5770400000,
"FiscalTag": "FY2016Q1",
"FiscalReference": "Q1",
"CalendarReference": "2015-11-30",
"Country": "United States",
"Currency": "USD",
"Importance": 1,
"Session": 13,
"MarketRelease": "before_open",
"LastUpdate": "2023-08-14T15:08:00"
},
{
"Date": "2016-01-06",
"Symbol": "RPM:US",
"Name": "RPM International",
"Actual": "0.62",
"ActualValue": 0.62,
"Forecast": "0.57",
"ForecastValue": 0.57,
"Previous": "0.53",
"PreviousValue": 0.53,
"Revenue": "1.16B",
"RevenueValue": 1160000000.0,
"RevenueForecast": "",
"RevenueForecastValue": null,
"RevenuePrevious": "1.07B",
"RevenuePreviousValue": 1070000000.0000001,
"MarketCapUSD": 12223000000,
"FiscalTag": "FY2016Q2",
"FiscalReference": "Q2",
"CalendarReference": "2015-11-30",
"Country": "United States",
"Currency": "USD",
"Importance": 2,
"Session": 13,
"MarketRelease": "before_open",
"LastUpdate": "2023-08-14T17:28:00"
},
{
"Date": "2016-01-07",
"Symbol": "WDFC:US",
"Name": "Wd 40",
"Actual": "0.83",
"ActualValue": 0.83,
"Forecast": "0.79",
"ForecastValue": 0.79,
"Previous": "0.73",
"PreviousValue": 0.73,
"Revenue": "92.52M",
"RevenueValue": 92520000.0,
"RevenueForecast": "",
"RevenueForecastValue": null,
"RevenuePrevious": "96.35M",
"RevenuePreviousValue": 96350000.0,
"MarketCapUSD": 2739800000,
"FiscalTag": "FY2016Q1",
"FiscalReference": "Q1",
"CalendarReference": "2015-11-30",
"Country": "United States",
"Currency": "USD",
"Importance": 1,
"Session": 21,
"MarketRelease": "after_close",
"LastUpdate": "2023-08-14T18:34:00"
}
]Text
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=csvBash
Date,Symbol,Name,Actual,ActualValue,Forecast,ForecastValue,Previous,PreviousValue,Revenue,RevenueValue,RevenueForecast,RevenueForecastValue,RevenuePrevious,RevenuePreviousValue,MarketCapUSD,FiscalTag,FiscalReference,CalendarReference,Country,Currency,Importance,Session,MarketRelease,LastUpdate
2016-01-05,CMC:US,Commercial Metals,0.22,0.22,0.23,0.23,0.32,0.32,1.15B,1150000000,,,1.68B,1680000000,5770400000,FY2016Q1,Q1,2015-11-30,United States,USD,1,13,before_open,8/14/2023 3:08:00 PM
2016-01-06,RPM:US,RPM International,0.62,0.62,0.57,0.57,0.53,0.53,1.16B,1160000000,,,1.07B,1070000000,12223000000,FY2016Q2,Q2,2015-11-30,United States,USD,2,13,before_open,8/14/2023 5:28:00 PM
2016-01-07,WDFC:US,Wd 40,0.83,0.83,0.79,0.79,0.73,0.73,92.52M,92520000,,,96.35M,96350000,2739800000,FY2016Q1,Q1,2015-11-30,United States,USD,1,21,after_close,8/14/2023 6:34:00 PMText
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd| Date | Symbol | Name | Actual | ActualValue | Forecast | ForecastValue | Previous | PreviousValue | Revenue | RevenueValue | RevenueForecast | RevenueForecastValue | RevenuePrevious | RevenuePreviousValue | MarketCapUSD | FiscalTag | FiscalReference | CalendarReference | Country | Currency | Importance | Session | MarketRelease | LastUpdate |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2016-01-06 | RPM:US | Rpm International | 0.14 | 0.14 | 0.20 | 0.2 | 11812500000 | FY2016Q3 | Q3 | 2015-12-31 | United States | USD | 2 | 21 | after_close | 12/11/2022 6:55:00 PM | ||||||||
| 2016-01-07 | SCHN:US | Schnitzer Steel Industries | -0.13 | -0.13 | -0.43 | -0.43 | 870700000 | FY2016Q2 | Q2 | 2015-12-31 | United States | USD | 1 | 21 | after_close | 12/11/2022 6:42:00 PM | ||||||||
| 2016-01-07 | WDFC:US | Wd 40 | 0.83 | 0.83 | 0.76 | 0.76 | 3152200000 | FY2016Q2 | Q2 | 2015-12-31 | United States | USD | 1 | 21 | after_close | 12/11/2022 3:10:00 PM |
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
| Date | string | Earnings release date in UTC | “2023-03-15” |
| Symbol | string | Unique Trading Economics symbol identifying the company | “ADBE:US” |
| Name | string | Company name | “Adobe Systems” |
| Actual | string | Reported earnings per share (EPS) | “3.80” |
| ActualValue | number | Reported earnings per share (EPS) as a numeric value | 3.80 |
| Forecast | string | Average analyst EPS forecast | “3.68” |
| ForecastValue | number | Average analyst EPS forecast as a numeric value | 3.68 |
| Previous | string | Previously reported EPS | “3.37” |
| PreviousValue | number | Previously reported EPS as a numeric value | 3.37 |
| Revenue | string | Reported company revenue | “4.66B” |
| RevenueValue | number | Reported Revenue as a numeric value | 4660000000 |
| RevenueForecast | string | Average analyst Revenue forecast | “4.62B” |
| RevenueForecastValue | number | Average analyst Revenue forecast as a numeric value | 4620000000 |
| RevenuePrevious | string | Previously reported Revenue | “4.26B” |
| RevenuePreviousValue | number | Previously reported Revenue as a numeric value | 4260000000 |
| MarketCapUSD | number | Company market capitalization in US dollars | 173177600000 |
| FiscalTag | string | Fiscal year and quarter tag | “FY2023Q1” |
| FiscalReference | string | Fiscal quarter in simplified format | “Q1” |
| CalendarReference | string | Calendar date for the fiscal quarter end | “2022-12-31” |
| Country | string | Country where the company is based | “United States” |
| Currency | string | Reporting currency | “USD” |
| Importance | number | Indicator importance: 1 = low, 2 = medium, 3 = high | 3 |
| Session | number | Expected release hour in UTC | 21 |
| MarketRelease | string | Type of release: after_close, before_open, or by_day_end | “after_close” |
| LastUpdate | string | Timestamp of the latest data update in UTC | “2023-03-18T16:15:00” |
Fields in ‘List of stock sectors’
| Field | Type | Description | Example |
|---|---|---|---|
| Sector | string | Economic or market sector classification name | “Communication Services” |