Equity Research Automation API: What to Automate and How to Check the Numbers

TLDR: An equity research automation API takes over the retrieval and first-draft work in research: earnings recaps, model updates, comps refreshes and watchlist monitoring. Pair a filed-data source such as SEC EDGAR's free XBRL API with a research API that writes cited narrative, then reconcile every figure against the filing before an analyst reads it. Our test of 30 large US companies shows why that check is not optional.
What can an equity research automation API take over?
Equity research is mostly reading, extracting and comparing, then a smaller amount of judgment, and automation pays off on the first part. Scope a project by job, because each job needs different data and fails in a different way.
| Job | What automation does | What the analyst keeps | API type that fits |
|---|---|---|---|
| Earnings recap | Reads the release and 10-Q, drafts reported figures, drivers and guidance changes | The read on the quality of the quarter | Research API for narrative, filed data for numbers |
| Model update | Loads reported line items, derives the fourth quarter, flags restated prior periods | Forecast changes | XBRL or a fundamentals API |
| Comps refresh | Rebuilds a peer table on fixed metric definitions | Which peers belong in the set | Fundamentals API; research API for non-GAAP metrics |
| Thesis monitoring | Watches filings, 8-K items, news and management commentary for named risks | Whether a change breaks the thesis | Filings feed plus finance or web search |
| Initiation groundwork | Drafts business, segment and risk-factor sections from filings and transcripts | Valuation, rating and price target | Research API at its highest effort level |
| Universe screening | Ranks hundreds of names on a metric | Screen design | A database or screener, not a research API |
The last row matters: a screen is a query over a table. In the FinSearchComp study below, open-universe ranking questions defeated both the API and the layer built on it, so use a dataset for screens and a research API for questions about specific companies.
Which kind of API fits which job?
Three kinds of product are sold under this label: data APIs that return filed or vendor-normalized numbers, research APIs that run searches and return a cited answer, and agent stacks that wire both into your own model. Most teams end up with one of each.
| Option | Returns | Price and limits (November 2026) | Watch for |
|---|---|---|---|
| SEC EDGAR APIs | Filing history and XBRL facts as JSON, no key | Free; 10 requests per second with a declared User-Agent | SEC registrants only; tags vary by company; no prices or estimates |
| Financial Modeling Prep | Statements, ratios and prices; transcripts and 13F holdings on the Ultimate plan only | Basic free at 250 calls a day on a limited symbol list; Starter $29 a month at 300 calls a minute | Displaying or redistributing data needs a separate licensing agreement |
| Alpha Vantage | Time series, fundamentals, transcripts, macro | 25 requests a day free; $49.99 a month for 75 a minute | Real-time and 15-minute delayed US data are premium-only |
| Firecrawl Alexandria | SEC EDGAR, Fiscal.ai, Benzinga and FRED tools behind one Firecrawl key | Priced per tool in Firecrawl credits | Needs a team with Alexandria enabled; some providers need terms accepted first |
| You.com Finance Research API | Cited Markdown, or JSON that follows your schema, from a finance index | deep $110 per 1,000 calls, exhaustive $500; 5 requests per second | Not a time-series feed; no source_control |
| You.com Research API | Cited answer from the open web, filterable to domains such as sec.gov | From $12 per 1,000 (lite) to $1,200 (frontier, background only) | You maintain the domain allowlist |
The SEC says its XBRL APIs update with a typical delay of under a minute after a filing is disseminated, longer at peak filing times. That is fast enough for a same-day recap. They carry no consensus estimates, prices or transcripts, which is where paid vendors and research APIs earn their fees. For transcripts in particular, see our earnings call transcript API guide, which covers latency tiers and Regulation FD timing.
What breaks when a pipeline reads the numbers itself?
Feeding filed numbers to a model is safer than letting it recall them, but it still breaks in predictable ways. On 15 November 2026 we pulled the XBRL company facts for 30 large US companies across technology, banking, energy, retail, pharma and industrials and measured what a naive revenue pipeline gets wrong. The sample: AAPL, MSFT, NVDA, GOOGL, ORCL, JPM, BAC, WFC, C, GS, XOM, CVX, COP, EOG, OXY, WMT, COST, HD, TGT, LOW, JNJ, PFE, MRK, LLY, ABBV, CAT, GE, HON, UPS and BRK-B. Exxon was read under its former registrant, for the reason in the sixth point.
- Revenue lives under different tags. For the latest fiscal year, revenue sat under
Revenuesalone for 11 of the 30 companies, underRevenueFromContractWithCustomerExcludingAssessedTaxalone for 9, and under both for 7. Three of the five banks usedRevenuesNetOfInterestExpense, and 23 of the 30 companies had used more than one tag over their filing history. Across all filers, the SEC's CY2025 frame lists 2,261 companies underRevenuesand 2,715 under the contract-revenue tag, with 579 in both, so a screen on either tag alone misses 38% to 49% of the 4,397. - One 10-K can carry two revenue totals. Eight of the 30 latest 10-Ks tagged revenue twice for the same fiscal year, and in five the two values differ. Berkshire Hathaway reports $371.4 billion under
Revenuesagainst $247.2 billion under the contract-revenue tag, Walmart $713.2 billion against $706.4 billion, and Chevron $189.0 billion against $184.4 billion. Both numbers are in the filing. They measure different things, so the pipeline has to pin one definition per company. - There is no fourth quarter. 28 of the 30 latest 10-Ks carried no standalone fourth-quarter revenue fact; AbbVie and Honeywell were the exceptions. You derive the quarter as the fiscal year minus the nine-month year-to-date figure from the third-quarter 10-Q. Done that way, Microsoft's fiscal 2026 fourth quarter comes out at $90.007 billion, matching the $90.0 billion in its earnings release.
- Prior years change. 19 of the 30 had at least one fiscal year whose annual revenue was filed with different values in different 10-Ks. Berkshire and JPMorgan had seven such years each, and GE had sixteen. Keep the latest filed value for the model and the full history for the audit trail.
- Recasts break derived quarters. Honeywell's 2025 10-K reports full-year revenue of $37.442 billion and tags a fourth quarter of $9.758 billion, matching the $9.8 billion in its release. But nine-month 2025 revenue went from $30.582 billion in the original 10-Q to $14.703 billion in the third-quarter 2026 10-Q, which recast prior periods after the Aerospace spin-off. Subtracting the latest figure gives a fourth quarter of $22.739 billion and the original gives $6.860 billion. Bank of America runs the other way: its original nine-month figure gives $31.180 billion for a quarter it reported at $28.4 billion, and the refiled figure gives $28.367 billion. No rule about which filing to trust fits both, so the code below prefers a reported quarter and marks any derived one whose input was refiled.
- The company can change underneath the ticker. Exxon Mobil completed a redomiciliation reorganization on 1 July 2026 that put a new Texas parent, ExxonMobil Holdings Corporation, in place. The SEC's ticker file now maps XOM to that registrant, CIK 2115436, whose XBRL facts include two 10-Qs, filed in August and November 2026, and no 10-K. Every earlier 10-K sits under the old CIK, 34088. A pipeline keyed on ticker silently loses the history.
- Labels describe the filing, not the period. In company facts,
fyandfpdescribe the filing that reported a value, not the period. In our sample, 724 of 1,082 annual revenue rows under each company's current tag were prior-year comparatives carrying a later fiscal-year label, so key periods on start and end dates.
How do you build the pipeline?
A dependable design has four stages. Pull filed figures, ask a research API for the narrative and its figures in a fixed schema, reconcile the two, and route anything that disagrees to a person. The code below uses only the Python standard library.
Pull filed revenue and derive the fourth quarter
Save this as edgar_revenue.py, because the second listing imports it. It keeps every filing of each period so restatements stay visible, returns the latest filed value, flags tag disagreements, prefers a filed fourth quarter over a derived one, and marks any period filed with more than one value. It ran live against EDGAR on 15 November 2026.
import json
import time
import urllib.request
from datetime import date
UA = "Example Research Ops [email protected]" # SEC asks for a name and contact
TAGS = [
"Revenues",
"RevenueFromContractWithCustomerExcludingAssessedTax",
"RevenueFromContractWithCustomerIncludingAssessedTax",
"RevenuesNetOfInterestExpense",
"SalesRevenueNet",
]
# Period lengths in days. The ranges admit 52/53-week years and retailers' 12-week quarters
# and 36-week year-to-date periods.
QUARTER, YTD, YEAR = (80, 100), (245, 285), (350, 380)
def get_json(url):
req = urllib.request.Request(url, headers={"User-Agent": UA})
with urllib.request.urlopen(req, timeout=60) as resp:
data = json.load(resp)
time.sleep(0.15) # stay well under SEC's 10 requests per second
return data
def cik_for(ticker):
rows = get_json("https://www.sec.gov/files/company_tickers.json").values()
for row in rows:
if row["ticker"] == ticker.upper():
return str(row["cik_str"]).zfill(10)
raise KeyError(ticker)
def span(start, end):
return (date.fromisoformat(end) - date.fromisoformat(start)).days
def revenue_facts(facts):
"""{(start, end): {tag: [fact, ...]}} for quarters, year-to-date periods and years,
with the oldest filing first."""
gaap = facts["facts"].get("us-gaap", {})
by_period = {}
for tag in TAGS:
for f in gaap.get(tag, {}).get("units", {}).get("USD", []):
if "start" in f and any(lo <= span(f["start"], f["end"]) <= hi
for lo, hi in (QUARTER, YTD, YEAR)):
by_period.setdefault((f["start"], f["end"]), {}).setdefault(tag, []).append(f)
for by_tag in by_period.values():
for rows in by_tag.values():
rows.sort(key=lambda f: (f["filed"], f["accn"]))
return by_period
def pick(by_tag, pinned_tag=None):
"""The analyst's pinned tag, else the first tag in TAGS. Also says if the tags disagree."""
for tag in [pinned_tag] if pinned_tag else TAGS:
if tag in by_tag:
latest = {t: rows[-1]["val"] for t, rows in by_tag.items()}
return tag, len(set(latest.values())) > 1, latest
return None, False, {}
def record(start, tag, rows, conflict, all_tags):
last = rows[-1]
values = list(dict.fromkeys(f["val"] for f in rows))
return {"start": start, "tag": tag, "val": last["val"], "filed": last["filed"],
"accn": last["accn"], "basis": "filed", "tag_conflict": conflict,
"all_tags": all_tags, "filed_values": values, "restated": len(values) > 1}
def periods(by_period, pinned_tag=None):
"""{(period end, "fiscal_year" or "fiscal_quarter"): record}, latest filed value per period.
A fourth quarter that no filing carries is derived as the year minus the nine-month figure.
A period filed with more than one value, or a derived quarter built from one, is marked
restated."""
table = {}
for (start, end), by_tag in by_period.items():
n = span(start, end)
tag, conflict, all_tags = pick(by_tag, pinned_tag)
if tag and not YTD[0] <= n <= YTD[1]:
kind = "fiscal_quarter" if n <= QUARTER[1] else "fiscal_year"
table[(end, kind)] = record(start, tag, by_tag[tag], conflict, all_tags)
for (end, kind), year in list(table.items()):
if kind != "fiscal_year" or (end, "fiscal_quarter") in table:
continue
ytd = sorted((f for (s, e), by_tag in by_period.items()
if s == year["start"] and YTD[0] <= span(s, e) <= YTD[1]
for f in by_tag.get(year["tag"], [])),
key=lambda f: (f["filed"], f["accn"]))
values = list(dict.fromkeys(f["val"] for f in ytd))
if values:
table[(end, "fiscal_quarter")] = {
**year, "start": None, "basis": "derived", "val": year["val"] - values[-1],
"filed_values": [year["val"] - v for v in values],
"restated": len(values) > 1 or year["restated"]}
return table
def restated_periods(by_period):
"""Periods where one tag carries different values in different filings."""
out = {}
for period, by_tag in by_period.items():
changed = {t: sorted({f["val"] for f in rows}) for t, rows in by_tag.items()
if len({f["val"] for f in rows}) > 1}
if changed:
out[period] = changed
return out
if __name__ == "__main__":
for ticker in ["MSFT", "WMT", "HON", "XOM"]:
cik = cik_for(ticker)
facts = get_json(f"https://data.sec.gov/api/xbrl/companyfacts/CIK{cik}.json")
by_period = revenue_facts(facts)
table = periods(by_period)
years = sorted(end for end, kind in table if kind == "fiscal_year")
print(ticker, cik, facts["entityName"], "fiscal years:", len(years))
if len(years) < 3:
print(" short history: check 8-K Items 2.01 and 3.03 for a successor registrant")
for end in years[-1:]:
y, q4 = table[(end, "fiscal_year")], table.get((end, "fiscal_quarter"))
print(" ", end, y["tag"], y["val"], "CONFLICT" if y["tag_conflict"] else "",
"| Q4:", q4 and q4["val"], q4 and q4["basis"])
print(" periods with restated values:", len(restated_periods(by_period)))
Run on Microsoft, Walmart, Honeywell and ExxonMobil Holdings, it printed a derived $90.007 billion for Microsoft's fiscal 2026 fourth quarter, a CONFLICT flag on Walmart's year, Honeywell's filed $9.758 billion quarter and, for the new Exxon registrant, no fiscal years and the short-history warning. That warning points at 8-K Items 2.01 and 3.03, two of the items Exxon's July filing reported under. The analyst can pin a tag per company, since which total counts as revenue for Berkshire, Chevron or Walmart is a modeling decision.
Ask for the narrative with figures in a schema
The Finance Research API's output_schema returns output.content as JSON that follows your schema, with sources in output.sources. Every property must be listed in required, optional values use nullable types, and every object sets additionalProperties to false. The API does not add citation fields to your object, so ask for the source URL as a field.
import json
import os
import urllib.request
URL = "https://api.you.com/v1/finance_research"
TIMEOUT = {"deep": 300, "exhaustive": 600} # the docs say to set it above 120 s and 300 s
SCHEMA = {
"type": "object",
"properties": {
"company": {"type": "string"},
"period_type": {"type": "string", "enum": ["fiscal_year", "fiscal_quarter"]},
"period_end_date": {"type": "string"},
"revenue_usd": {"type": ["number", "null"]},
"revenue_source_url": {"type": ["string", "null"]},
"yoy_growth_pct": {"type": ["number", "null"]},
"drivers": {"type": "array", "items": {"type": "string"}},
"guidance": {"type": ["string", "null"]},
},
"required": ["company", "period_type", "period_end_date", "revenue_usd",
"revenue_source_url", "yoy_growth_pct", "drivers", "guidance"],
"additionalProperties": False,
}
def finance_research(question, effort="deep"):
body = json.dumps({"input": question, "research_effort": effort,
"output_schema": SCHEMA}).encode()
req = urllib.request.Request(URL, data=body, method="POST", headers={
"X-API-Key": os.environ["YDC_API_KEY"], "Content-Type": "application/json",
"User-Agent": "Example Research Ops [email protected]"})
# No background mode, so the call holds the connection until the answer is ready
with urllib.request.urlopen(req, timeout=TIMEOUT[effort]) as resp:
return json.load(resp)
def reconcile(result, table, tolerance=0.005):
"""Check the researched revenue against the filed value for the same period end."""
c = result["output"]["content"]
cited = [s["url"] for s in result["output"].get("sources", [])]
if c["revenue_usd"] is None:
return {"status": "NOT_REPORTED", "cited": cited}
row = table.get((c["period_end_date"], c["period_type"]))
if row is None or not row["val"]:
return {"status": "NO_XBRL_PERIOD", "claimed": c["revenue_usd"], "cited": cited}
gap = abs(c["revenue_usd"] - row["val"]) / row["val"]
status = "MISMATCH"
if gap <= tolerance:
status = "RESTATED" if row["restated"] else "MATCH"
return {"status": status, "claimed": c["revenue_usd"], "filed": row["val"],
"basis": row["basis"], "tag": row["tag"], "gap_pct": round(100 * gap, 2),
"tag_conflict": row["tag_conflict"], "filed_values": row["filed_values"],
"cited": cited}
if __name__ == "__main__":
from edgar_revenue import cik_for, get_json, periods, revenue_facts
cik = cik_for("MSFT")
table = periods(revenue_facts(get_json(
f"https://data.sec.gov/api/xbrl/companyfacts/CIK{cik}.json")))
result = finance_research(
"Microsoft's most recent fiscal fourth quarter: revenue in US dollars, "
"period end date as YYYY-MM-DD, year-over-year growth, the main drivers, "
"and any guidance for the next quarter. Cite the earnings release or 10-K.")
print(json.dumps(result["output"]["content"], indent=2))
print(reconcile(result, table))
The client timeouts are 300 seconds for deep and 600 for exhaustive. The docs put those tiers under 120 and 300 seconds and say to set the timeout above them, and the FinSearchComp study's harness logged a 139-second median per question for a single deep call. The reconciler looks the period up by end date and type, so it covers fiscal years and all four quarters. We tested the request and the reconciler offline against a mocked endpoint and EDGAR data; the paid call was not run for this article. Keep the User-Agent header: in our tests on 20 November 2026, the Finance Research endpoint on api.you.com answered Python's default urllib one with a 403 (Cloudflare error 1010).
Route by reconciliation status
| Status | Meaning | Route |
|---|---|---|
| MATCH | Within 0.5% of the filed value, which covers rounding such as $90.0 billion against $90.007 billion | Analyst reviews for judgment, not fact-checking |
| RESTATED | Within tolerance, but the period was filed with more than one value or a derived quarter rests on one | Analyst confirms which filing the figure comes from |
| MISMATCH | Outside tolerance | Analyst checks the period and the metric definition first |
| NO_XBRL_PERIOD | No filed or derivable period ends on that date | Usually a fiscal versus calendar mix-up or a week-based year end such as Costco's 30 August; fix the question or the mapping |
| NOT_REPORTED | The API returned null | Ask a narrower question or take the figure from the filing |
Flag tag conflicts even on a match. Walmart's $713.2 billion matches the Revenues tag, but a peer table built on the contract-revenue tag would show $706.4 billion for the same year.
What does it cost to run?
The filed-data layer is free. Research calls are the variable cost. Take a coverage list of 300 companies, four quarters a year, and three Finance Research calls per company per quarter: a recap, a guidance question and one follow-up.
| Line | Volume per year | Rate (November 2026) | Annual cost |
|---|---|---|---|
| EDGAR company facts | 1,200 pulls | Free | $0 |
Finance Research, deep | 3,600 calls | $110 per 1,000 | $396 |
Initiations, exhaustive | 20 initiations at 5 calls each | $500 per 1,000 | $50 |
| Total | $446 |
Latency, not price or the 5 requests per second default, sets throughput: at 139 seconds a call, the median the FinSearchComp study logged for deep, five requests in flight clear about 130 calls an hour. On a heavy earnings morning, queue recaps in report-time order and keep reconciliation in the same job, so no draft reaches an analyst unchecked.
What do compliance teams ask about automated research?
Automation does not change which rules apply. In Regulatory Notice 24-09, FINRA said its rules are technology neutral and apply when member firms use generative AI, including through third-party products. Rule 2241 governs research reports: written communications that analyze individual equity securities and give information reasonably sufficient for an investment decision. It excludes internal communications not given to customers and communications sent to fewer than 15 persons.
For anything distributed, Rule 2241(c)(1)(A) requires policies to ensure purported facts in research reports are based on reliable information. A stored reconciliation result per figure, with the filing accession number and the cited URLs, gives compliance something concrete to review. None of this is legal advice, and your compliance team sets the line.
Where does You.com fit, and where does it not?
The Finance Research API fits the narrative layer: earnings recaps, guidance changes, segment drivers and risk-factor summaries for named companies, with citations and typed output. Per the docs, its index covers fundamentals, equity prices across 42 exchanges, SEC filings, transcripts, analyst coverage and news, and the May 2026 launch post explains how it matches period, unit, source and definition before returning a figure. On FinSearchComp T3 Global, 84 multi-step questions, the published deep result is 58.3% against a 51.4% human expert baseline. In a study on his Substack, Navid Mehrdad found its misses were rarely retrieval failures: it fetched the right values, then slipped on a fiscal versus calendar period edge when combining them. His decompose-and-recompute layer lifted the result to 64.3% with no regressions, per its public repo. Our write-up of the study has the comparison with general-purpose models.
Where it does not fit: the docs say it is not a structured data feed or time-series API, so use EDGAR or a data vendor for model inputs and price history. It does not accept source_control. When an answer must come only from primary sources, use the Research API with include_domains set to sec.gov and the investor relations sites you trust. It has no background mode. Results also vary from run to run: the study measured 60.7% on a fresh run against the 58.3% published figure. Store each output with its reconciliation rather than regenerating on demand. For a multi-agent build that hands the arithmetic to code instead of the model, see building an AI equity research team.
How do you choose?
- List the jobs and mark which need numbers and which need prose. Numbers come from filed data or a licensed vendor; prose can come from a research API.
- Decide who reads the output, since internal tools and client-facing reports carry different review obligations.
- Pin metric definitions per company before the first run, including which revenue tag counts.
- Key everything on CIK and period dates, and recheck CIK mappings when a company reorganizes.
- Reconcile every figure a research API returns before an analyst sees the draft, review restated periods, and log the result.
- Price the workflow per company per quarter, not per call, and include high-effort runs for initiations.
For research outside finance, our research API guide covers effort levels, structured output and source control, and the deep research API guide covers asynchronous patterns for long jobs.
Frequently Asked Questions
It is an API that takes over the retrieval and first-draft parts of equity research: pulling reported figures, summarizing earnings, refreshing comps and watching filings and news. In practice it is two layers. A data source such as SEC EDGAR's XBRL API supplies filed numbers, and a research API such as the You.com Finance Research API writes cited narrative. A reconciliation step checks the narrative's figures against the filing.
Yes. The SEC's data.sec.gov APIs return filing histories and XBRL financial facts as JSON with no API key. The SEC asks for a declared User-Agent and caps traffic at 10 requests per second. Coverage is companies that file with the SEC, with no prices, estimates or transcripts. Expect to handle different revenue tags across companies and to derive fourth-quarter figures yourself, since 28 of 30 large companies' latest 10-Ks carried no standalone Q4 revenue value.
Companies file 10-Qs for the first three quarters and a 10-K for the full year, and most 10-Ks do not tag the fourth quarter on its own. In our November 2026 check, 28 of 30 large companies' latest 10-Ks had no standalone fourth-quarter revenue fact. Use the filed one when it exists. Otherwise subtract the nine-month year-to-date figure in the third-quarter 10-Q from the fiscal-year total, and send the result to review if that nine-month figure was later refiled.
AI can draft large parts of one, such as the earnings recap, business description and risk factors, but the rating, price target and valuation should stay with an analyst. FINRA says its rules apply to member firms' use of generative AI the same way they apply to any other tool. Under Rule 2241, distributed research must rest on reliable information, so reconcile every figure against the filing and keep that record.
As of November 2026, the deep effort level costs $110 per 1,000 calls and the docs put its latency under 120 seconds, while exhaustive costs $500 per 1,000 with latency under 300 seconds. The default self-serve rate limit is 5 requests per second. Covering 300 companies with three deep calls per company each quarter comes to 3,600 calls a year, or about $396.
Compute and check numbers in code rather than trusting generated text. Ask the research API for figures in a schema with the period end date and source URL, look up the filed value for the same period in XBRL, and flag anything outside a small tolerance. Pin metric definitions per company, key periods on dates rather than fiscal labels, and send mismatches and restated periods to an analyst first.
LI Test
LI Test
Share Article:
Related resources.
.webp)
Search 1B+ professional profiles, 100M+ companies with Knowledge Pro
December 2, 2026
Product Updates

Introducing the You.com Extract API: fetch and parse any URL, with 80% higher accuracy on PDFs
November 17, 2026
Product Updates

FDA Approval Monitoring API: Sources, Lag and a Working Pipeline
November 15, 2026
Blog

Retail Assortment Monitoring API: How to Track What Competitors Add, Drop, and Carry
November 13, 2026
Blog

Retrieval API for Post-Training Data: Leakage, Replay, Cost and Rights
November 12, 2026
Blog
