Skip to content
Docs
Get API key
Financials

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()

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=json
JSON
[
  {
    "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"
  }
]

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')
Text
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&f=json
JSON
[
  {
    "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"
  }
]

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')
Text
https://api.tradingeconomics.com/earnings-revenues/sector/{sector}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=json
JSON
[
  {
    "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"
  }
]

Response fields

FieldTypeDescriptionExample
DatestringEarnings release date in UTC“2023-03-15”
SymbolstringUnique Trading Economics symbol identifying the company“ADBE:US”
NamestringCompany name“Adobe Systems”
ActualstringReported earnings per share (EPS)“3.80”
ActualValuenumberReported earnings per share (EPS) as a numeric value3.80
ForecaststringAverage analyst EPS forecast“3.68”
ForecastValuenumberAverage analyst EPS forecast as a numeric value3.68
PreviousstringPreviously reported EPS“3.37”
PreviousValuenumberPreviously reported EPS as a numeric value3.37
RevenuestringReported company revenue“4.66B”
RevenueValuenumberReported Revenue as a numeric value4660000000
RevenueForecaststringAverage analyst Revenue forecast“4.62B”
RevenueForecastValuenumberAverage analyst Revenue forecast as a numeric value4620000000
RevenuePreviousstringPreviously reported Revenue“4.26B”
RevenuePreviousValuenumberPreviously reported Revenue as a numeric value4260000000
MarketCapUSDnumberCompany market capitalization in US dollars173177600000
FiscalTagstringFiscal year and quarter tag“FY2023Q1”
FiscalReferencestringFiscal quarter in simplified format“Q1”
CalendarReferencestringCalendar date for the fiscal quarter end“2022-12-31”
CountrystringCountry where the company is based“United States”
CurrencystringReporting currency“USD”
ImportancenumberIndicator importance: 1 = low, 2 = medium, 3 = high3
SessionnumberExpected release hour in UTC21
MarketReleasestringType of release: after_close, before_open, or by_day_end“after_close”
LastUpdatestringTimestamp of the latest data update in UTC“2023-03-18T16:15:00”

Fields in ‘List of stock sectors’

FieldTypeDescriptionExample
SectorstringEconomic or market sector classification name“Communication Services”