Get Operating Income #663
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @JacobPorter, great question! There are a couple of ways to get operating income. Quick Way — Entity Facts APIThe simplest approach uses 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 op_income = facts.get_concept("operating_income")From the Income StatementIf you want operating income in the context of the full income statement: company = Company("AAPL")
financials = company.get_financials()
# Display the income statement (includes Operating Income as a line item)
income = financials.income_statement()
print(income)
# Or convert to a DataFrame
df = income.to_dataframe()Note on CoverageOne thing to be aware of — not all companies report an Based on your question, we realize this should be easier to find. We're going to look at improving discoverability here — likely adding Thanks for raising this! |
Beta Was this translation helpful? Give feedback.
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:You can also use the generic
get_concept()method:From the Income Statement
If you want…