EarningsCall Python Library
The EarningsCall Python library provides convenient access to the EarningsCall API from applications written in the Python language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.
Requirements
- Python 3.11+
Installation
You don't need this source code unless you want to modify the package. If you just want to use the package, just run:
pip install --upgrade earningscall
Get Transcript for a Single Quarter
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
transcript = company.get_transcript(year=2021, quarter=3)
print(f"{company} Q3 2021 Transcript Text: \"{transcript.text[:100]}...\"")
Output
Apple Inc. Q3 2021 Transcript Text: "Good day, and welcome to the Apple Q3 FY 2021 Earnings Conference Call. Today's call is being record..."
Get All Transcripts for a company
from datetime import datetime
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
print(f"Getting all transcripts for: {company}..")
# Retrieve all earnings conference call events for a company, and iterate through each one
for event in company.events():
if datetime.now().timestamp() < event.conference_date.timestamp():
print(f"* {company.company_info.symbol} Q{event.quarter} {event.year} -- skipping, conference date in the future")
continue
transcript = company.get_transcript(event=event) # Fetch the earnings call transcript for this event
print(f"* Q{event.quarter} {event.year}")
if transcript:
print(f" Transcript Text: \"{transcript.text[:100]}...\"")
else:
print(f" No transcript found.")
Output
Getting all transcripts for: Apple Inc...
* Q4 2023
Transcript Text: "Good day and welcome to the Apple Q4 Fiscal Year 2023 earnings conference call. Today's call is bein..."
* Q3 2023
Transcript Text: "Good day and welcome to the Apple Q3 Fiscal Year 2023 earnings conference call. Today's call is bein..."
* Q2 2023
Transcript Text: "At this time for opening remarks and introductions, I would like to turn the call over to Suhasini T..."
* Q1 2023
...
Get Text by Speaker
If you want to get the text by speaker, you can do so by setting the level parameter to 2.
NOTE: Level 2 data is provided in any plan that includes Enhanced Transcript Data.
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
transcript = company.get_transcript(year=2021, quarter=3, level=2)
first_speaker = transcript.speakers[0]
speaker_label = first_speaker.speaker
text = first_speaker.text
print(f"Speaker: {speaker_label}\nText: {text}")
Output
Speaker: spk11
Text: Good day, and welcome to the Apple Q3 FY 2021 Earnings Conference Call. Today's call is being recorded. At this time, for opening remarks and introductions, I would like to turn the call over to Tejas Ghala, Director, Investor Relations and Corporate Finance. Please go ahead.
Get Text by Speaker with Speaker Name and Title
NOTE: This is a new experimental feature. It includes Speaker Names and Titles.
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
transcript = company.get_transcript(year=2021, quarter=3, level=2)
speaker = transcript.speakers[1] # Get second speaker
speaker_label = speaker.speaker_info.name
text = speaker.text
print("Speaker:")
print(f" Name: {speaker.speaker_info.name}")
print(f" Title: {speaker.speaker_info.title}")
print()
print(f"Text: {text}")
Output
Speaker:
Name: Tejas Ghala
Title: Director, Investor Relations and Corporate Finance
Text: Thank you. Good afternoon, and thank you for joining us. Speaking first today is Apple CEO Tim Cook, and he'll be followed by CFO Luca Maestri. After that, we'll open the call to questions from analysts. Please note that some of the information you'll hear during our discussion today will consist of forward-looking statements, including without limitation, those regarding revenue, gross margin, operating expenses, other income and expenses, taxes, capital allocation, and future business outlook, including the potential impact of COVID-19 on the company's business and results of operations. These statements involve risks and uncertainties that may cause actual results or trends to differ materially from our forecast. For more information, please refer to the risk factors discussed in Apple's most recently filed annual report on Form 10-K and the Form 8-K filed with the SEC today, along with the associated press release. Apple assumes no obligation to update any forward-looking statements or information which speak as of their respective dates. I'd like to now turn the call over to Tim for introductory remarks.
Get Word-Level Timestamps
If you want to get the word-level timestamps, you can do so by setting the level parameter to 3.
Each timestamp is the number of seconds since the start of the transcript.
NOTE: Level 3 data is provided in any plan that includes Enhanced Transcript Data.
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
transcript = company.get_transcript(year=2021, quarter=3, level=3)
first_speaker = transcript.speakers[0]
words_and_start_times = list(zip(first_speaker.words, first_speaker.start_times))
print(f"Speaker: {first_speaker.speaker}")
print(f"Words with start times: {words_and_start_times}")
Output
Speaker: spk11
Words with start times: [('Good', 0.049), ('day,', 0.229), ('and', 0.489), ('welcome', 0.609), ('to', 0.929), ('the', 1.029), ('Apple', 1.229), ('Q3', 1.629), ('FY', 2.65), ('2021', 2.6599999999999997), ('Earnings', 3.81), ('Conference', 4.17), ('Call.', 4.55), ("Today's", 5.411), ('call', 5.811), ('is', 6.111), ('being', 6.271), ('recorded.', 6.471), ('At', 7.571), ('this', 7.671), ('time,', 7.871), ('for', 8.111), ('opening', 8.351), ('remarks', 8.631), ('and', 9.092), ('introductions,', 9.232), ('I', 9.832), ('would', 9.912), ('like', 10.052), ('to', 10.192), ('turn', 10.292), ('the', 10.492), ('call', 10.592), ('over', 10.872), ('to', 11.052), ('Tejas', 11.152), ('Ghala,', 11.532), ('Director,', 12.112), ('Investor', 12.533), ('Relations', 12.873), ('and', 13.353), ('Corporate', 13.473), ('Finance.', 13.773), ('Please', 14.413), ('go', 14.653), ('ahead.', 14.793)]
Get Prepared Remarks and Q&A for a Single Quarter
If you want to get the prepared remarks and Q&A for a single quarter, you can do so by setting the level parameter to 4.
NOTE: Level 4 data is provided in any plan that includes Enhanced Transcript Data.
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
transcript = company.get_transcript(year=2021, quarter=3, level=4)
print(f"{company} Q3 2021 Prepared Remarks: \"{transcript.prepared_remarks[:100]}...\"")
print(f"{company} Q3 2021 Q&A: \"{transcript.questions_and_answers[:100]}...\"")
Output
Apple Inc. Q3 2021 Prepared Remarks: "Good day, and welcome to the Apple Q3 FY 2021 Earnings Conference Call. Today's call is being record..."
Apple Inc. Q3 2021 Q&A: "Our first question comes from Katie Huberty from Morgan Stanley. Please go ahead. Hello, Katie. Your..."
Download Audio File
If you want to download the audio file for a single quarter, you can call the download_audio_file function.
from earningscall import get_company
company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
print("Downloading audio file for Apple Inc. Q3 2021...")
audio_file = company.download_audio_file(year=2021, quarter=3, file_name="Apple-Q3-2021.mp3")
print(f"Downloaded audio file to: {audio_file}")
Download Slide Deck
from earningscall import get_company
company = get_company("MSFT") # Lookup Microsoft by its ticker symbol, "MSFT"
slide_deck_filename = company.download_slide_deck(year=2025, quarter=1, file_name="Microsoft-Q1-2025-Slides.pdf")
print(f"Downloaded slide deck to: {slide_deck_filename}")
Get Earnings Event Calendar
from datetime import date
from earningscall import get_calendar
calendar = get_calendar(date(2025, 1, 10))
for event in calendar:
print(f"{event.company_name} - Q{event.quarter} {event.year} on: {event.conference_date.astimezone().isoformat()} Transcript Ready: {event.transcript_ready}")
Output
Tilray Brands, Inc. - Q2 2025 on: 2025-01-10T07:30:00-06:00 Transcript Ready: True
Walgreens Boots Alliance, Inc. - Q1 2025 on: 2025-01-10T07:30:00-06:00 Transcript Ready: True
Neogen Corporation - Q2 2025 on: 2025-01-10T07:30:00-06:00 Transcript Ready: True
E2open Parent Holdings, Inc. - Q3 2025 on: 2025-01-10T07:30:00-06:00 Transcript Ready: True
TD SYNNEX Corporation - Q4 2024 on: 2025-01-10T08:00:00-06:00 Transcript Ready: True
Delta Air Lines, Inc. - Q4 2024 on: 2025-01-10T09:00:00-06:00 Transcript Ready: True
Constellation Brands, Inc. - Q3 2025 on: 2025-01-10T09:30:00-06:00 Transcript Ready: True
PriceSmart, Inc. - Q1 2025 on: 2025-01-10T11:00:00-06:00 Transcript Ready: True
KORU Medical Systems, Inc. - Q4 2024 on: 2025-01-10T15:30:00-06:00 Transcript Ready: True
WD-40 Company - Q1 2025 on: 2025-01-10T16:00:00-06:00 Transcript Ready: True
Get Live Earnings Calls
Get the earnings conference calls that are live right now. Each one includes a streaming_url, an HLS playlist (.m3u8) you can play with any HLS-capable player.
from earningscall import get_live_events
for event in get_live_events():
print(f"{event.company_name} ({event.exchange}: {event.symbol}) Q{event.quarter} {event.year}")
if event.event_date is not None:
print(f" Started: {event.event_date.astimezone().isoformat()}")
print(f" Listen: {event.streaming_url}")
Output
Apple Inc. (NASDAQ: AAPL) Q4 2024
Started: 2024-11-01T12:00:00-05:00
Listen: https://earningscall.biz/live-demo/dynamic-playlist/playlist.m3u8
get_live_events() returns an empty list when no calls are live. Demo accounts always receive the example event above.
Each event also has a live_transcript field with links to a provisional transcript of the call in progress. This feature is experimental: its fields may change or be removed, so don't rely on it. Any field the API stops sending becomes None, and if live_transcript stops being an object, it becomes None too, so the live events themselves still load.
List All Companies
from earningscall import get_all_companies
for company in get_all_companies():
print(f"{company.company_info} -- {company.company_info.sector} -- {company.company_info.industry}")
By default, this library grants you access to only two companies, Apple Inc. and Microsoft, Inc.
To gain access to 5,000+ companies please signup here to get your API key.
Once you have access to your API key, you can set the API Key like this:
import earningscall
earningscall.api_key = "YOUR-SECRET-API-KEY-GOES-HERE"
Alternatively, you can pass in your API key as an environment variable:
export EARNINGSCALL_API_KEY="YOUR-SECRET-API-KEY-GOES-HERE"
python your-python-script.py
List S&P 500 Companies
from earningscall import get_sp500_companies
for company in get_sp500_companies():
print(f"{company.company_info} -- {company.company_info.sector} -- {company.company_info.industry}")
Advanced
Disable Caching
When you call get_company("aapl") to retrieve a company, internally the library retrieves metadata
from the EarningsCall API. By default, it caches this metadata on disk in order to speed up subsequent requests.
If you prefer to disable this local caching behavior, you can do so with this code:
import earningscall
earningscall.enable_requests_cache = False
Retry Strategy
The library retries requests that are rate limited (HTTP 429) or fail with an HTTP 5xx error. When the API says how long to wait, via the Retry-After header, the library waits exactly that long before retrying. Otherwise it backs off with increasing delays: by default 1 second, then 2, 4, 8, and so on, for up to 10 total attempts. If the request still fails, the library raises an exception.
Customizing the Retry Strategy
Depending on your specific requirements, you can adjust the retry strategy. For latency-sensitive applications, consider reducing the base delay and limiting the number of retry attempts. Conversely, for plans with lower rate limits, such as the "Starter" plan, a higher base delay with more retry attempts can improve reliability. For higher-rate-limit plans, such as "Enterprise," a shorter delay and fewer attempts may be more appropriate.
To customize the retry behavior, set the retry_strategy variable with the desired parameters:
- strategy: "exponential" | "linear" — defines the type of retry strategy (default is "exponential").
- base_delay: float (in seconds) — specifies the delay between retries when the API does not send a
Retry-Afterheader (default is 1 second). - max_attempts: int — sets the maximum number of total request attempts (default is 10).
Default Retry Strategy
Below is the default retry configuration:
import earningscall
earningscall.retry_strategy = {
"strategy": "exponential",
"base_delay": 1,
"max_attempts": 10,
}
Disabling Retries
To disable retries entirely and limit the request to a single attempt, set max_attempts to 1:
import earningscall
earningscall.retry_strategy = {
"strategy": "exponential",
"base_delay": 1,
"max_attempts": 1,
}
Linear Retry Strategy
You can switch to a linear retry strategy by setting the strategy parameter to "linear":
import earningscall
earningscall.retry_strategy = {
"strategy": "linear",
"base_delay": 1,
"max_attempts": 3,
}
Metadata
Release files for earningscall 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| earningscall-3.2.0.tar.gz | 551.5 kB | With provenance | Details for earningscall-3.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| earningscall-3.2.0-py3-none-any.whl | Python 3 | none | any | Details for earningscall-3.2.0-py3-none-any.whl |
Total release size: 574.4 kB
Release files / earningscall-3.2.0.tar.gz
| Download URL | earningscall-3.2.0.tar.gz |
|---|---|
| Size | 551.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8d7afb0cf13d5f6e6b31abf6c0d0d19de5ddef24d9c6bf92b0319c47f80bca2
|
|
BLAKE2b-256 checksum How to use checksums |
fcac351f9550bdfed1726ea98a7ddf76404f39c0412d8548004f0f2e5e49456a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / earningscall-3.2.0-py3-none-any.whl
| Download URL | earningscall-3.2.0-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0699f2d8a739c7e519692f160d1996de334ba4069997f560fd468966f46a50a2
|
|
BLAKE2b-256 checksum How to use checksums |
1022a0823d85f3728f5cb684bc92cb6aad91663583e97f10443a1986a93c426f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for earningscall 3.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for earningscall-3.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.