Turn lengthy earnings call transcripts into one-page insights using the Financial Modeling Prep APIPhoto by Bich Tran Earnings calls are packed with insights. They tell you how a company performed, what management expects in the future, and what analysts are worried about. The challenge is that these transcripts often stretch across dozens of pages, making it tough to separate the key takeaways from the noise. With the right tools, you don’t need to spend hours reading every line. By combining the Financial Modeling Prep (FMP) API with Groq’s lightning-fast LLMs, you can transform any earnings call into a concise summary in seconds. The FMP API provides reliable access to complete transcripts, while Groq handles the heavy lifting of distilling them into clear, actionable highlights. In this article, we’ll build a Python workflow that brings these two together. You’ll see how to fetch transcripts for any stock, prepare the text, and instantly generate a one-page summary. Whether you’re tracking Apple, NVIDIA, or your favorite growth stock, the process works the same — fast, accurate, and ready whenever you are. Fetching Earnings Transcripts with FMP API The first step is to pull the raw transcript data. FMP makes this simple with dedicated endpoints for earnings calls. If you want the latest transcripts across the market, you can use the stable endpoint /stable/earning-call-transcript-latest. For a specific stock, the v3 endpoint lets you request transcripts by symbol, quarter, and year using the pattern: https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={q}&year={y}&apikey=YOUR_API_KEY here’s how you can fetch NVIDIA’s transcript for a given quarter: import requestsAPI_KEY = "your_api_key"symbol = "NVDA"quarter = 2year = 2024url = f"https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={quarter}&year={year}&apikey={API_KEY}"response = requests.get(url)data = response.json()# Inspect the keysprint(data.keys())# Access transcript contentif "content" in data[0]: transcript_text = data[0]["content"] print(transcript_text[:500]) # preview first 500 characters The response typically includes details like the company symbol, quarter, year, and the full transcript text. If you aren’t sure which quarter to query, the “latest transcripts” endpoint is the quickest way to always stay up to date. Cleaning and Preparing Transcript Data Raw transcripts from the API often include long paragraphs, speaker tags, and formatting artifacts. Before sending them to an LLM, it helps to organize the text into a cleaner structure. Most transcripts follow a pattern: prepared remarks from executives first, followed by a Q&A session with analysts. Separating these sections gives better control when prompting the model. In Python, you can parse the transcript and strip out unnecessary characters. A simple way is to split by markers such as “Operator” or “Question-and-Answer.” Once separated, you can create two blocks — Prepared Remarks and Q&A — that will later be summarized independently. This ensures the model handles each section within context and avoids missing important details. Here’s a small example of how you might start preparing the data: import re# Example: using the transcript_text we fetched earliertext = transcript_text# Remove extra spaces and line breaksclean_text = re.sub(r'\s+', ' ', text).strip()# Split sections (this is a heuristic; real-world transcripts vary slightly)if "Question-and-Answer" in clean_text: prepared, qna = clean_text.split("Question-and-Answer", 1)else: prepared, qna = clean_text, ""print("Prepared Remarks Preview:\n", prepared[:500])print("\nQ&A Preview:\n", qna[:500]) With the transcript cleaned and divided, you’re ready to feed it into Groq’s LLM. Chunking may be necessary if the text is very long. A good approach is to break it into segments of a few thousand tokens, summarize each part, and then merge the summaries in a final pass. Summarizing with Groq LLM Now that the transcript is clean and split into Prepared Remarks and Q&A, we’ll use Groq to generate a crisp one-pager. The idea is simple: summarize each section separately (for focus and accuracy), then synthesize a final brief. Prompt design (concise and factual) Use a short, repeatable template that pushes for neutral, investor-ready language: You are an equity research analyst. Summarize the following earnings call sectionfor {symbol} ({quarter} {year}). Be factual and concise.Return:1) TL;DR (3–5 bullets)2) Results vs. guidance (what improved/worsened)3) Forward outlook (specific statements)4) Risks / watch-outs5) Q&A takeaways (if present)Text:<<<{section_text}>>> Python: calling Groq and getting a clean summary Groq provides an OpenAI-compatible API. Set your GROQ_API_KEY and pick a fast, high-quality model (e.g., a Llama-3.1 70B variant). We’ll write a helper to summarize any text block, then run it for both sections and merge. import osimport textwrapimport requestsGROQ_API_KEY = os.environ.get("GROQ_API_KEY") or "your_groq_api_key"GROQ_BASE_URL = "https://api.groq.com/openai/v1" # OpenAI-compatibleMODEL = "llama-3.1-70b" # choose your preferred Groq modeldef call_groq(prompt, temperature=0.2, max_tokens=1200): url = f"{GROQ_BASE_URL}/chat/completions" headers = { "Authorization": f"Bearer {GROQ_API_KEY}", "Content-Type": "application/json", } payload = { "model": MODEL, "messages": [ {"role": "system", "content": "You are a precise, neutral equity research analyst."}, {"role": "user", "content": prompt}, ], "temperature": temperature, "max_tokens": max_tokens, } r = requests.post(url, headers=headers, json=payload, timeout=60) r.raise_for_status() return r.json()["choices"][0]["message"]["content"].strip()def build_prompt(section_text, symbol, quarter, year): template = """ You are an equity research analyst. Summarize the following earnings call section for {symbol} ({quarter} {year}). Be factual and concise. Return: 1) TL;DR (3–5 bullets) 2) Results vs. guidance (what improved/worsened) 3) Forward outlook (specific statements) 4) Risks / watch-outs 5) Q&A takeaways (if present) Text: <<< {section_text} >>> """ return textwrap.dedent(template).format( symbol=symbol, quarter=quarter, year=year, section_text=section_text )def summarize_section(section_text, symbol="NVDA", quarter="Q2", year="2024"): if not section_text or section_text.strip() == "": return "(No content found for this section.)" prompt = build_prompt(section_text, symbol, quarter, year) return call_groq(prompt)# Example usage with the cleaned splits from Section 3prepared_summary = summarize_section(prepared, symbol="NVDA", quarter="Q2", year="2024")qna_summary = summarize_section(qna, symbol="NVDA", quarter="Q2", year="2024")final_one_pager = f"""# {symbol} Earnings One-Pager — {quarter} {year}## Prepared Remarks — Key Points{prepared_summary}## Q&A Highlights{qna_summary}""".strip()print(final_one_pager[:1200]) # preview Tips that keep quality high: Keep temperature low (≈0.2) for factual tone. If a section is extremely long, chunk at ~5–8k tokens, summarize each chunk with the same prompt, then ask the model to merge chunk summaries into one section summary before producing the final one-pager. If you also fetched headline numbers (EPS/revenue, guidance) earlier, prepend them to the prompt as brief context to help the model anchor on the right outcomes. Building the End-to-End Pipeline At this point, we have all the building blocks: the FMP API to fetch transcripts, a cleaning step to structure the data, and Groq LLM to generate concise summaries. The final step is to connect everything into a single workflow that can take any ticker and return a one-page earnings call summary. The flow looks like this: Input a stock ticker (for example, NVDA). Use FMP to fetch the latest transcript. Clean and split the text into Prepared Remarks and Q&A. Send each section to Groq for summarization. Merge the outputs into a neatly formatted earnings one-pager. Here’s how it comes together in Python: def summarize_earnings_call(symbol, quarter, year, api_key, groq_key): # Step 1: Fetch transcript from FMP url = f"https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={quarter}&year={year}&apikey={api_key}" resp = requests.get(url) resp.raise_for_status() data = resp.json() if not data or "content" not in data[0]: return f"No transcript found for {symbol} {quarter} {year}" text = data[0]["content"] # Step 2: Clean and split clean_text = re.sub(r'\s+', ' ', text).strip() if "Question-and-Answer" in clean_text: prepared, qna = clean_text.split("Question-and-Answer", 1) else: prepared, qna = clean_text, "" # Step 3: Summarize with Groq prepared_summary = summarize_section(prepared, symbol, quarter, year) qna_summary = summarize_section(qna, symbol, quarter, year) # Step 4: Merge into final one-pager return f"""# {symbol} Earnings One-Pager — {quarter} {year}## Prepared Remarks{prepared_summary}## Q&A Highlights{qna_summary}""".strip()# Example runprint(summarize_earnings_call("NVDA", 2, 2024, API_KEY, GROQ_API_KEY)) With this setup, generating a summary becomes as simple as calling one function with a ticker and date. You can run it inside a notebook, integrate it into a research workflow, or even schedule it to trigger after each new earnings release. Free Stock Market API and Financial Statements API... Conclusion Earnings calls no longer need to feel overwhelming. With the Financial Modeling Prep API, you can instantly access any company’s transcript, and with Groq LLM, you can turn that raw text into a sharp, actionable summary in seconds. This pipeline saves hours of reading and ensures you never miss the key results, guidance, or risks hidden in lengthy remarks. Whether you track tech giants like NVIDIA or smaller growth stocks, the process is the same — fast, reliable, and powered by the flexibility of FMP’s data. Summarize Any Stock’s Earnings Call in Seconds Using FMP API was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this storyTurn lengthy earnings call transcripts into one-page insights using the Financial Modeling Prep APIPhoto by Bich Tran Earnings calls are packed with insights. They tell you how a company performed, what management expects in the future, and what analysts are worried about. The challenge is that these transcripts often stretch across dozens of pages, making it tough to separate the key takeaways from the noise. With the right tools, you don’t need to spend hours reading every line. By combining the Financial Modeling Prep (FMP) API with Groq’s lightning-fast LLMs, you can transform any earnings call into a concise summary in seconds. The FMP API provides reliable access to complete transcripts, while Groq handles the heavy lifting of distilling them into clear, actionable highlights. In this article, we’ll build a Python workflow that brings these two together. You’ll see how to fetch transcripts for any stock, prepare the text, and instantly generate a one-page summary. Whether you’re tracking Apple, NVIDIA, or your favorite growth stock, the process works the same — fast, accurate, and ready whenever you are. Fetching Earnings Transcripts with FMP API The first step is to pull the raw transcript data. FMP makes this simple with dedicated endpoints for earnings calls. If you want the latest transcripts across the market, you can use the stable endpoint /stable/earning-call-transcript-latest. For a specific stock, the v3 endpoint lets you request transcripts by symbol, quarter, and year using the pattern: https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={q}&year={y}&apikey=YOUR_API_KEY here’s how you can fetch NVIDIA’s transcript for a given quarter: import requestsAPI_KEY = "your_api_key"symbol = "NVDA"quarter = 2year = 2024url = f"https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={quarter}&year={year}&apikey={API_KEY}"response = requests.get(url)data = response.json()# Inspect the keysprint(data.keys())# Access transcript contentif "content" in data[0]: transcript_text = data[0]["content"] print(transcript_text[:500]) # preview first 500 characters The response typically includes details like the company symbol, quarter, year, and the full transcript text. If you aren’t sure which quarter to query, the “latest transcripts” endpoint is the quickest way to always stay up to date. Cleaning and Preparing Transcript Data Raw transcripts from the API often include long paragraphs, speaker tags, and formatting artifacts. Before sending them to an LLM, it helps to organize the text into a cleaner structure. Most transcripts follow a pattern: prepared remarks from executives first, followed by a Q&A session with analysts. Separating these sections gives better control when prompting the model. In Python, you can parse the transcript and strip out unnecessary characters. A simple way is to split by markers such as “Operator” or “Question-and-Answer.” Once separated, you can create two blocks — Prepared Remarks and Q&A — that will later be summarized independently. This ensures the model handles each section within context and avoids missing important details. Here’s a small example of how you might start preparing the data: import re# Example: using the transcript_text we fetched earliertext = transcript_text# Remove extra spaces and line breaksclean_text = re.sub(r'\s+', ' ', text).strip()# Split sections (this is a heuristic; real-world transcripts vary slightly)if "Question-and-Answer" in clean_text: prepared, qna = clean_text.split("Question-and-Answer", 1)else: prepared, qna = clean_text, ""print("Prepared Remarks Preview:\n", prepared[:500])print("\nQ&A Preview:\n", qna[:500]) With the transcript cleaned and divided, you’re ready to feed it into Groq’s LLM. Chunking may be necessary if the text is very long. A good approach is to break it into segments of a few thousand tokens, summarize each part, and then merge the summaries in a final pass. Summarizing with Groq LLM Now that the transcript is clean and split into Prepared Remarks and Q&A, we’ll use Groq to generate a crisp one-pager. The idea is simple: summarize each section separately (for focus and accuracy), then synthesize a final brief. Prompt design (concise and factual) Use a short, repeatable template that pushes for neutral, investor-ready language: You are an equity research analyst. Summarize the following earnings call sectionfor {symbol} ({quarter} {year}). Be factual and concise.Return:1) TL;DR (3–5 bullets)2) Results vs. guidance (what improved/worsened)3) Forward outlook (specific statements)4) Risks / watch-outs5) Q&A takeaways (if present)Text:<<<{section_text}>>> Python: calling Groq and getting a clean summary Groq provides an OpenAI-compatible API. Set your GROQ_API_KEY and pick a fast, high-quality model (e.g., a Llama-3.1 70B variant). We’ll write a helper to summarize any text block, then run it for both sections and merge. import osimport textwrapimport requestsGROQ_API_KEY = os.environ.get("GROQ_API_KEY") or "your_groq_api_key"GROQ_BASE_URL = "https://api.groq.com/openai/v1" # OpenAI-compatibleMODEL = "llama-3.1-70b" # choose your preferred Groq modeldef call_groq(prompt, temperature=0.2, max_tokens=1200): url = f"{GROQ_BASE_URL}/chat/completions" headers = { "Authorization": f"Bearer {GROQ_API_KEY}", "Content-Type": "application/json", } payload = { "model": MODEL, "messages": [ {"role": "system", "content": "You are a precise, neutral equity research analyst."}, {"role": "user", "content": prompt}, ], "temperature": temperature, "max_tokens": max_tokens, } r = requests.post(url, headers=headers, json=payload, timeout=60) r.raise_for_status() return r.json()["choices"][0]["message"]["content"].strip()def build_prompt(section_text, symbol, quarter, year): template = """ You are an equity research analyst. Summarize the following earnings call section for {symbol} ({quarter} {year}). Be factual and concise. Return: 1) TL;DR (3–5 bullets) 2) Results vs. guidance (what improved/worsened) 3) Forward outlook (specific statements) 4) Risks / watch-outs 5) Q&A takeaways (if present) Text: <<< {section_text} >>> """ return textwrap.dedent(template).format( symbol=symbol, quarter=quarter, year=year, section_text=section_text )def summarize_section(section_text, symbol="NVDA", quarter="Q2", year="2024"): if not section_text or section_text.strip() == "": return "(No content found for this section.)" prompt = build_prompt(section_text, symbol, quarter, year) return call_groq(prompt)# Example usage with the cleaned splits from Section 3prepared_summary = summarize_section(prepared, symbol="NVDA", quarter="Q2", year="2024")qna_summary = summarize_section(qna, symbol="NVDA", quarter="Q2", year="2024")final_one_pager = f"""# {symbol} Earnings One-Pager — {quarter} {year}## Prepared Remarks — Key Points{prepared_summary}## Q&A Highlights{qna_summary}""".strip()print(final_one_pager[:1200]) # preview Tips that keep quality high: Keep temperature low (≈0.2) for factual tone. If a section is extremely long, chunk at ~5–8k tokens, summarize each chunk with the same prompt, then ask the model to merge chunk summaries into one section summary before producing the final one-pager. If you also fetched headline numbers (EPS/revenue, guidance) earlier, prepend them to the prompt as brief context to help the model anchor on the right outcomes. Building the End-to-End Pipeline At this point, we have all the building blocks: the FMP API to fetch transcripts, a cleaning step to structure the data, and Groq LLM to generate concise summaries. The final step is to connect everything into a single workflow that can take any ticker and return a one-page earnings call summary. The flow looks like this: Input a stock ticker (for example, NVDA). Use FMP to fetch the latest transcript. Clean and split the text into Prepared Remarks and Q&A. Send each section to Groq for summarization. Merge the outputs into a neatly formatted earnings one-pager. Here’s how it comes together in Python: def summarize_earnings_call(symbol, quarter, year, api_key, groq_key): # Step 1: Fetch transcript from FMP url = f"https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={quarter}&year={year}&apikey={api_key}" resp = requests.get(url) resp.raise_for_status() data = resp.json() if not data or "content" not in data[0]: return f"No transcript found for {symbol} {quarter} {year}" text = data[0]["content"] # Step 2: Clean and split clean_text = re.sub(r'\s+', ' ', text).strip() if "Question-and-Answer" in clean_text: prepared, qna = clean_text.split("Question-and-Answer", 1) else: prepared, qna = clean_text, "" # Step 3: Summarize with Groq prepared_summary = summarize_section(prepared, symbol, quarter, year) qna_summary = summarize_section(qna, symbol, quarter, year) # Step 4: Merge into final one-pager return f"""# {symbol} Earnings One-Pager — {quarter} {year}## Prepared Remarks{prepared_summary}## Q&A Highlights{qna_summary}""".strip()# Example runprint(summarize_earnings_call("NVDA", 2, 2024, API_KEY, GROQ_API_KEY)) With this setup, generating a summary becomes as simple as calling one function with a ticker and date. You can run it inside a notebook, integrate it into a research workflow, or even schedule it to trigger after each new earnings release. Free Stock Market API and Financial Statements API... Conclusion Earnings calls no longer need to feel overwhelming. With the Financial Modeling Prep API, you can instantly access any company’s transcript, and with Groq LLM, you can turn that raw text into a sharp, actionable summary in seconds. This pipeline saves hours of reading and ensures you never miss the key results, guidance, or risks hidden in lengthy remarks. Whether you track tech giants like NVIDIA or smaller growth stocks, the process is the same — fast, reliable, and powered by the flexibility of FMP’s data. Summarize Any Stock’s Earnings Call in Seconds Using FMP API was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story

Summarize Any Stock’s Earnings Call in Seconds Using FMP API

2025/09/18 14:40

Turn lengthy earnings call transcripts into one-page insights using the Financial Modeling Prep API

Photo by Bich Tran

Earnings calls are packed with insights. They tell you how a company performed, what management expects in the future, and what analysts are worried about. The challenge is that these transcripts often stretch across dozens of pages, making it tough to separate the key takeaways from the noise.

With the right tools, you don’t need to spend hours reading every line. By combining the Financial Modeling Prep (FMP) API with Groq’s lightning-fast LLMs, you can transform any earnings call into a concise summary in seconds. The FMP API provides reliable access to complete transcripts, while Groq handles the heavy lifting of distilling them into clear, actionable highlights.

In this article, we’ll build a Python workflow that brings these two together. You’ll see how to fetch transcripts for any stock, prepare the text, and instantly generate a one-page summary. Whether you’re tracking Apple, NVIDIA, or your favorite growth stock, the process works the same — fast, accurate, and ready whenever you are.

Fetching Earnings Transcripts with FMP API

The first step is to pull the raw transcript data. FMP makes this simple with dedicated endpoints for earnings calls. If you want the latest transcripts across the market, you can use the stable endpoint /stable/earning-call-transcript-latest. For a specific stock, the v3 endpoint lets you request transcripts by symbol, quarter, and year using the pattern:

https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={q}&year={y}&apikey=YOUR_API_KEY

here’s how you can fetch NVIDIA’s transcript for a given quarter:

import requests

API_KEY = "your_api_key"
symbol = "NVDA"
quarter = 2
year = 2024

url = f"https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={quarter}&year={year}&apikey={API_KEY}"
response = requests.get(url)
data = response.json()

# Inspect the keys
print(data.keys())

# Access transcript content
if "content" in data[0]:
transcript_text = data[0]["content"]
print(transcript_text[:500]) # preview first 500 characters

The response typically includes details like the company symbol, quarter, year, and the full transcript text. If you aren’t sure which quarter to query, the “latest transcripts” endpoint is the quickest way to always stay up to date.

Cleaning and Preparing Transcript Data

Raw transcripts from the API often include long paragraphs, speaker tags, and formatting artifacts. Before sending them to an LLM, it helps to organize the text into a cleaner structure. Most transcripts follow a pattern: prepared remarks from executives first, followed by a Q&A session with analysts. Separating these sections gives better control when prompting the model.

In Python, you can parse the transcript and strip out unnecessary characters. A simple way is to split by markers such as “Operator” or “Question-and-Answer.” Once separated, you can create two blocks — Prepared Remarks and Q&A — that will later be summarized independently. This ensures the model handles each section within context and avoids missing important details.

Here’s a small example of how you might start preparing the data:

import re

# Example: using the transcript_text we fetched earlier
text = transcript_text

# Remove extra spaces and line breaks
clean_text = re.sub(r'\s+', ' ', text).strip()

# Split sections (this is a heuristic; real-world transcripts vary slightly)
if "Question-and-Answer" in clean_text:
prepared, qna = clean_text.split("Question-and-Answer", 1)
else:
prepared, qna = clean_text, ""

print("Prepared Remarks Preview:\n", prepared[:500])
print("\nQ&A Preview:\n", qna[:500])

With the transcript cleaned and divided, you’re ready to feed it into Groq’s LLM. Chunking may be necessary if the text is very long. A good approach is to break it into segments of a few thousand tokens, summarize each part, and then merge the summaries in a final pass.

Summarizing with Groq LLM

Now that the transcript is clean and split into Prepared Remarks and Q&A, we’ll use Groq to generate a crisp one-pager. The idea is simple: summarize each section separately (for focus and accuracy), then synthesize a final brief.

Prompt design (concise and factual)

Use a short, repeatable template that pushes for neutral, investor-ready language:

You are an equity research analyst. Summarize the following earnings call section
for {symbol} ({quarter} {year}). Be factual and concise.

Return:
1) TL;DR (3–5 bullets)
2) Results vs. guidance (what improved/worsened)
3) Forward outlook (specific statements)
4) Risks / watch-outs
5) Q&A takeaways (if present)

Text:
<<<
{section_text}
>>>

Python: calling Groq and getting a clean summary

Groq provides an OpenAI-compatible API. Set your GROQ_API_KEY and pick a fast, high-quality model (e.g., a Llama-3.1 70B variant). We’ll write a helper to summarize any text block, then run it for both sections and merge.

import os
import textwrap
import requests

GROQ_API_KEY = os.environ.get("GROQ_API_KEY") or "your_groq_api_key"
GROQ_BASE_URL = "https://api.groq.com/openai/v1" # OpenAI-compatible
MODEL = "llama-3.1-70b" # choose your preferred Groq model

def call_groq(prompt, temperature=0.2, max_tokens=1200):
url = f"{GROQ_BASE_URL}/chat/completions"
headers = {
"Authorization": f"Bearer {GROQ_API_KEY}",
"Content-Type": "application/json",
}
payload = {
"model": MODEL,
"messages": [
{"role": "system", "content": "You are a precise, neutral equity research analyst."},
{"role": "user", "content": prompt},
],
"temperature": temperature,
"max_tokens": max_tokens,
}
r = requests.post(url, headers=headers, json=payload, timeout=60)
r.raise_for_status()
return r.json()["choices"][0]["message"]["content"].strip()

def build_prompt(section_text, symbol, quarter, year):
template = """
You are an equity research analyst. Summarize the following earnings call section
for {symbol} ({quarter} {year}). Be factual and concise.

Return:
1) TL;DR (3–5 bullets)
2) Results vs. guidance (what improved/worsened)
3) Forward outlook (specific statements)
4) Risks / watch-outs
5) Q&A takeaways (if present)

Text:
<<<
{section_text}
>>>
"""
return textwrap.dedent(template).format(
symbol=symbol, quarter=quarter, year=year, section_text=section_text
)

def summarize_section(section_text, symbol="NVDA", quarter="Q2", year="2024"):
if not section_text or section_text.strip() == "":
return "(No content found for this section.)"
prompt = build_prompt(section_text, symbol, quarter, year)
return call_groq(prompt)

# Example usage with the cleaned splits from Section 3
prepared_summary = summarize_section(prepared, symbol="NVDA", quarter="Q2", year="2024")
qna_summary = summarize_section(qna, symbol="NVDA", quarter="Q2", year="2024")

final_one_pager = f"""
# {symbol} Earnings One-Pager — {quarter} {year}

## Prepared Remarks — Key Points
{prepared_summary}

## Q&A Highlights
{qna_summary}
""".strip()

print(final_one_pager[:1200]) # preview

Tips that keep quality high:

  • Keep temperature low (≈0.2) for factual tone.
  • If a section is extremely long, chunk at ~5–8k tokens, summarize each chunk with the same prompt, then ask the model to merge chunk summaries into one section summary before producing the final one-pager.
  • If you also fetched headline numbers (EPS/revenue, guidance) earlier, prepend them to the prompt as brief context to help the model anchor on the right outcomes.

Building the End-to-End Pipeline

At this point, we have all the building blocks: the FMP API to fetch transcripts, a cleaning step to structure the data, and Groq LLM to generate concise summaries. The final step is to connect everything into a single workflow that can take any ticker and return a one-page earnings call summary.

The flow looks like this:

  1. Input a stock ticker (for example, NVDA).
  2. Use FMP to fetch the latest transcript.
  3. Clean and split the text into Prepared Remarks and Q&A.
  4. Send each section to Groq for summarization.
  5. Merge the outputs into a neatly formatted earnings one-pager.

Here’s how it comes together in Python:

def summarize_earnings_call(symbol, quarter, year, api_key, groq_key):
# Step 1: Fetch transcript from FMP
url = f"https://financialmodelingprep.com/api/v3/earning_call_transcript/{symbol}?quarter={quarter}&year={year}&apikey={api_key}"
resp = requests.get(url)
resp.raise_for_status()
data = resp.json()

if not data or "content" not in data[0]:
return f"No transcript found for {symbol} {quarter} {year}"

text = data[0]["content"]

# Step 2: Clean and split
clean_text = re.sub(r'\s+', ' ', text).strip()
if "Question-and-Answer" in clean_text:
prepared, qna = clean_text.split("Question-and-Answer", 1)
else:
prepared, qna = clean_text, ""

# Step 3: Summarize with Groq
prepared_summary = summarize_section(prepared, symbol, quarter, year)
qna_summary = summarize_section(qna, symbol, quarter, year)

# Step 4: Merge into final one-pager
return f"""
# {symbol} Earnings One-Pager — {quarter} {year}

## Prepared Remarks
{prepared_summary}

## Q&A Highlights
{qna_summary}
""".strip()

# Example run
print(summarize_earnings_call("NVDA", 2, 2024, API_KEY, GROQ_API_KEY))

With this setup, generating a summary becomes as simple as calling one function with a ticker and date. You can run it inside a notebook, integrate it into a research workflow, or even schedule it to trigger after each new earnings release.

Free Stock Market API and Financial Statements API...

Conclusion

Earnings calls no longer need to feel overwhelming. With the Financial Modeling Prep API, you can instantly access any company’s transcript, and with Groq LLM, you can turn that raw text into a sharp, actionable summary in seconds. This pipeline saves hours of reading and ensures you never miss the key results, guidance, or risks hidden in lengthy remarks. Whether you track tech giants like NVIDIA or smaller growth stocks, the process is the same — fast, reliable, and powered by the flexibility of FMP’s data.


Summarize Any Stock’s Earnings Call in Seconds Using FMP API was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.
Share Insights

You May Also Like

The Manchester City Donnarumma Doubters Have Missed Something Huge

The Manchester City Donnarumma Doubters Have Missed Something Huge

The post The Manchester City Donnarumma Doubters Have Missed Something Huge appeared on BitcoinEthereumNews.com. MANCHESTER, ENGLAND – SEPTEMBER 14: Gianluigi Donnarumma of Manchester City celebrates the second City goal during the Premier League match between Manchester City and Manchester United at Etihad Stadium on September 14, 2025 in Manchester, England. (Photo by Visionhaus/Getty Images) Visionhaus/Getty Images For a goalkeeper who’d played an influential role in the club’s first-ever Champions League triumph, it was strange to see Gianluigi Donnarumma so easily discarded. Soccer is a brutal game, but the sudden, drastic demotion of the Italian from Paris Saint-Germain’s lineup for the UEFA Super Cup clash against Tottenham Hotspur before he was sold to Manchester City was shockingly brutal. Coach Luis Enrique isn’t a man who minces his words, so he was blunt when asked about the decision on social media. “I am supported by my club and we are trying to find the best solution,” he told a news conference. “It is a difficult decision. I only have praise for Donnarumma. He is one of the very best goalkeepers out there and an even better man. “But we were looking for a different profile. It’s very difficult to take these types of decisions.” The last line has really stuck, especially since it became clear that Manchester City was Donnarumma’s next destination. Pep Guardiola, under whom the Italian will be playing this season, is known for brutally axing goalkeepers he didn’t feel fit his profile. The most notorious was Joe Hart, who was jettisoned many years ago for very similar reasons to Enrique. So how can it be that the Catalan coach is turning once again to a so-called old-school keeper? Well, the truth, as so often the case, is not quite that simple. As Italian soccer expert James Horncastle pointed out in The Athletic, Enrique’s focus on needing a “different profile” is overblown. Lucas Chevalier,…
Share
BitcoinEthereumNews2025/09/18 07:38
Share
Cryptos Signal Divergence Ahead of Fed Rate Decision

Cryptos Signal Divergence Ahead of Fed Rate Decision

The post Cryptos Signal Divergence Ahead of Fed Rate Decision appeared on BitcoinEthereumNews.com. Crypto assets send conflicting signals ahead of the Federal Reserve’s September rate decision. On-chain data reveals a clear decrease in Bitcoin and Ethereum flowing into centralized exchanges, but a sharp increase in altcoin inflows. The findings come from a Tuesday report by CryptoQuant, an on-chain data platform. The firm’s data shows a stark divergence in coin volume, which has been observed in movements onto centralized exchanges over the past few weeks. Bitcoin and Ethereum Inflows Drop to Multi-Month Lows Sponsored Sponsored Bitcoin has seen a dramatic drop in exchange inflows, with the 7-day moving average plummeting to 25,000 BTC, its lowest level in over a year. The average deposit per transaction has fallen to 0.57 BTC as of September. This suggests that smaller retail investors, rather than large-scale whales, are responsible for the recent cash-outs. Ethereum is showing a similar trend, with its daily exchange inflows decreasing to a two-month low. CryptoQuant reported that the 7-day moving average for ETH deposits on exchanges is around 783,000 ETH, the lowest in two months. Other Altcoins See Renewed Selling Pressure In contrast, other altcoin deposit activity on exchanges has surged. The number of altcoin deposit transactions on centralized exchanges was quite steady in May and June of this year, maintaining a 7-day moving average of about 20,000 to 30,000. Recently, however, that figure has jumped to 55,000 transactions. Altcoins: Exchange Inflow Transaction Count. Source: CryptoQuant CryptoQuant projects that altcoins, given their increased inflow activity, could face relatively higher selling pressure compared to BTC and ETH. Meanwhile, the balance of stablecoins on exchanges—a key indicator of potential buying pressure—has increased significantly. The report notes that the exchange USDT balance, around $273 million in April, grew to $379 million by August 31, marking a new yearly high. CryptoQuant interprets this surge as a reflection of…
Share
BitcoinEthereumNews2025/09/18 01:01
Share
SEC's decision date expires after new rules: Five top candidates for October crypto ETF approval

SEC's decision date expires after new rules: Five top candidates for October crypto ETF approval

By Felix, PANews Among the many catalysts behind this crypto bull market, ETFs, particularly spot Bitcoin and Ethereum ETFs, have become revolutionary financial instruments that significantly lower the barrier to entry for cryptocurrency investment, serving as a crucial "bridge of capital." Since the approval of Bitcoin spot ETFs in early 2024, the industry has attracted over $100 billion in institutional capital, driving the Bitcoin price from $60,000 to its current level of approximately $113,500. As of now, the U.S. Securities and Exchange Commission (SEC) has 92 crypto spot ETFs (both single-asset and index-based) pending approval. Of these, approximately 69 are single-asset ETFs, covering 24 different cryptocurrencies. These applications primarily come from institutions like Grayscale and VanEck, with final decision deadlines for most being in October. Against this backdrop, the U.S. Securities and Exchange Commission (SEC) recently approved a proposal that fundamentally changes the way crypto spot ETFs are listed. Therefore, October's approval will not only mark a turning point in the crypto ETF market but also reflect the future direction of this bull market. The US SEC approved the proposed change from "case-by-case review" to "standard clearance" On September 7th, the US SEC approved rule changes proposed by three major exchanges (Nasdaq, Cboe BZX, and NYSE Arca) to introduce universal listing standards for commodity-based trust shares ("CBTS"). These standards, primarily for exchange-traded products (ETPs) holding physical commodities (including digital assets), replace the cumbersome case-by-case review process and aim to streamline the listing process. The chairman of the U.S. SEC stated in the document that these changes mark a shift in the SEC’s regulation of digital asset ETPs from “cautious case-by-case” to “standardized and efficient,” aiming to “maximize investor choice and promote innovation.” The core contents of the new regulations are as follows: The regulation proposes three listing paths: The product is traded on Intermarket Surveillance Group (ISG) member markets and has a market surveillance sharing agreement. Commodity futures are listed on a CFTC-regulated DCM for at least 6 months and have a surveillance-sharing agreement in place. New ETPs may be exempt from some of these requirements if an existing ETF is listed on a U.S. national securities exchange and has at least 40% of its assets allocated to that commodity. In short, the new regulations create a fast track for crypto asset ETFs that meet certain criteria. Based on the three aforementioned pathways, October may be the first period for the listing of new ETFs, with a focus on assets with existing CFTC-regulated futures contracts of at least six months. The original decision date has expired, and ETF issuers are now on the same page. The implementation of the new standards has directly impacted the long queue of ETF applications. On September 29th, the US SEC required issuers of spot ETFs for Litecoin (LTC), XRP, Sol, ADA, and DOGE to withdraw their 19b-4 filings. Issuers are required to proceed with listing according to the new standards, and the withdrawal process could begin as early as this week. This withdrawal does not represent a complete rejection of the ETF applications, but rather a shift to a more efficient regulatory path. It's worth noting that after a 19b-4 filing is withdrawn, the original decision date (typically the deadline for the SEC to make a final decision on the filing, such as 240 days after submission) may no longer be relevant. Under the new rules, the SEC may not require a strict deadline, but rather conduct a more expedited assessment based on common listing standards. As for when the ETF will be approved, although the issuer needs to resubmit or adjust the application according to the new general rules, which may involve additional administrative work and short delays, most people are optimistic about this and believe that the approval speed may be "exceptionally fast", similar to the ETH ETF which took only a few weeks from withdrawal to approval, that is, it is expected to be approved in October. Crypto journalist Eleanor Terrett wrote an analysis saying , "As long as the token meets existing standards, the SEC can approve a cryptocurrency ETF at any time by submitting an S-1 filing. Therefore, even if the deadlines for these individual ETFs are imminent, the SEC can theoretically make a decision on any or all of them at any time." However, Bloomberg ETF analyst James Seyffart warned that "everything is full of uncertainty. Add to that the possibility of a government shutdown, and the situation could become very unstable." (Related reading: What would happen to Bitcoin if the US government shut down? ) While it is unclear how quickly the SEC will process S-1 applications, eliminating the predictability of the original decision date, this change optimizes the process and reduces delays for more cryptocurrency ETFs to enter the market. Which of the five candidates will lead the ETF race? Although the ETF applications that were previously waiting in line have returned to the "starting line", the applications that the SEC currently requires issuers to withdraw only involve LTC, XRP, SOL, ADA, and DOGE, which may indicate that the first batch of approved ETFs will emerge from them (or all of them will be approved). 1. XRP ETFs XRP ETF is the most anticipated focus in October. Currently, there are 7 applications for XRP ETF, including Bitwise, 21Shares, Canary, Grayscale and other institutions. Previously, 6 applications were squeezed into the October 18-25 window, and Franklin Templeton's application was postponed to November 14 at the latest for a decision. The XRP spot ETF application was filed in January 2025, and the SEC opened for comment in July after the Ripple lawsuit was resolved. XRP futures have been listed on the CME for over a year, meeting the requirements of the new regulations. Bloomberg analysts James Seyffart and Eric Balchunas previously raised the probability of approval for the XRP spot ETF to 95%. This high probability was attributed to the SEC's increased engagement with the application, which the analysts viewed as a "clear green light." In addition, a key advantage of XRP is that it has been recognized as a commodity by regulators, greatly reducing the application barriers for its ETF. 2. SOL ETFs SOL spot ETF is one of the most popular applications at present, with seven large institutions participating, including VanEck, 21Shares, Bitwise, Franklin Templeton, etc. On September 27th, asset management firms including Fidelity, Franklin Templeton, CoinShares, Bitwise, Grayscale, Canary Capital, and VanEck successively submitted the latest versions of their S-1 forms to the US SEC. These revised documents all focus on the details of the Solana ETF’s staking operations. After the SEC ordered the issuer to withdraw its 19b-4 filing, Bloomberg ETF analyst Eric Balchunas raised the odds of the SOL ETF's approval from 95% to 100%. He stated, "Honestly, the probability of approval is now 100%... The universal listing standard renders the 19b-4 form meaningless. Now only the S-1 remains, and the SOL ETF could be approved at any time." But it’s worth noting that BlackRock (the largest issuer of Bitcoin and Ethereum ETFs) has not yet submitted an application for a Solana ETF, which may reflect its cautious attitude towards Solana’s regulatory risks. 3. LTC ETFs As one of the longest-running tokens in the crypto market, LTC has maintained a high level of security and decentralization since its launch in 2011. There are currently three Litecoin ETF applications, including the Canary Litecoin ETF, the Grayscale Litecoin Trust ETF, and the CoinShares Litecoin ETF. The previous October 10th deadline for the Litecoin ETF made it a candidate for a "good start." While the expiration of the original decision date has reduced the likelihood of Litecoin ETF approval, LTC's long-term market stability, strong regulatory compliance, and similar technical architecture to Bitcoin still make it highly likely to be among the first to be listed. In addition, Litecoin has not been identified as a security by the SEC like XRP or SOL, and is closer to the commodity attributes of Bitcoin, significantly reducing regulatory barriers. 4. Cardano (ADA) ETF Grayscale's Cardano Trust plans to convert into an ETF. The ETF's S-1 filing was registered in August, with a previous deadline set for October 26th. Cardano is known for its academic foundation and sustainability, and if approved, this spot ETF would be the first non-ETH PoS platform to do so. Notably, Grayscale's GDLC (Digital Large Cap Fund), which included Cardano, was approved on July 1st, further increasing the likelihood of approval for the Cardano ETF. 5. DOGE ETFs There are currently three DOGE ETF applications, including Bitwise, Grayscale, and 21Shares. The SEC is expected to make a ruling by October 12th at the latest. If the DOGE spot ETF is approved, it will become the first meme ETF. Conclusion Regardless of the outcome, October's crucial window will mark a significant turning point in the history of crypto ETFs, impacting not only the prices of related cryptocurrencies but also the scale and speed of institutional capital inflows. The crypto market is maturing, and the October ETF decision could be a crucial step in furthering its mainstream acceptance. Related reading: SEC's new regulations open the floodgates for crypto ETFs, are the top 10 spot ETFs expected to go online?
Share
PANews2025/10/04 10:45
Share