Skip to content
Discussion options

You must be logged in to vote

Hi @JacobPorter, great question! There are a couple of ways to get operating income.

Quick Way — Entity Facts API

The simplest approach uses get_facts(), which hits the SEC Company Facts API:

from edgar import Company

company = Company("AAPL")
facts = company.get_facts()

# Most recent annual operating income
op_income = facts.get_operating_income()
print(op_income)  # e.g. 133050000000.0

# Specific fiscal year
op_income_2023 = facts.get_operating_income(period="2023-FY")

# Specific quarter
op_income_q1 = facts.get_operating_income(period="2024-Q1")

You can also use the generic get_concept() method:

op_income = facts.get_concept("operating_income")

From the Income Statement

If you want…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JacobPorter
Comment options

Answer selected by JacobPorter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants