Valyu
Investment analyst comparing financial reports and marking notes at a desk in clear natural light

The Best Investment Research APIs for AI Agents in 2026

>_ Hendrik Van Der Sande

TLDR; The Best Investment Research APIs

APIBest at
ValyuSEC Filings, financial analysis, deepresearch financial workflows, market data, and producing cited research briefs across all financial sources.
SEC EDGAR APIsDirect access to US company filings and reported XBRL financial facts.
Alpha VantageMarket time series, technical indicators and endpoint-driven financial analysis.
TiingoAdjusted historical prices and ticker-linked news; fundamentals where subscribed.
MassiveLive and historical market data via REST, WebSockets and bulk files.

A great investment research draws on more than one source. An agent may need filings, reported financials, earnings commentary, market data and recent news to answer a single question. The challenge is finding the relevant data across many sources, comparing it correctly and showing where the conclusion came from. This guide compares five APIs by the parts of that job they handle best.

Say you're investigating whether Microsoft's AI infrastructure spending is paying off. The latest 10-K gives you reported figures and risk disclosures, but it can't tell you what happened after it was filed. You'd also check quarterly results, what management said on the earnings call, and newer developments that might change the picture. Then you'd make sure the figures you compare cover the same periods.


Which investment research API should you use?

APIBest forWhat it returns
ValyuQuestions spanning filings, company financials, macro data and web sourcesRelevant results through Search; cited reports through DeepResearch
SEC EDGAR APIsDirect access to US filings and reported XBRL factsFiling histories, company facts and financial concepts
Alpha VantagePrices, indicators and endpoint-driven financial analysisStructured time series and company data
TiingoHistorical prices, financial news and company fundamentalsAdjusted price history, ticker-tagged news and fundamentals where subscribed
MassiveLive and historical market-data systemsREST data, WebSocket streams and bulk files

The output matters more than the length of the endpoint list. Several providers can serve more than one task.

An application might use Tiingo for adjusted price history and news, EDGAR for an original filing, and Valyu to find the relevant passages and prepare a cited brief. These APIs do not all compete for the same call.

What should an investment research API get right?

Before comparing feature lists, try questions from your own workflow:

1. Can it find a particular section of a filing, not merely the filing URL?

2. Does it return the reporting period and units alongside a financial figure?

3. Can it handle structured numbers as well as what management wrote about them?

4. How soon does a new filing or revised series appear?

5. If the agent writes a memo, can a reader check its important claims against the cited documents?

If a step fails, fix that part of the retrieval before trusting the finished memo.

Three kinds of API, one investment question

Suppose an analyst asks: “Is a chipmaker's rising AI infrastructure spending beginning to pay off?” The answer needs more than a capital-expenditure figure. It needs the financial trend, management's account of what the spending is for, and a careful comparison of the two.

API typeWhat it returns and when to use itWhere it falls short
Market data APIsStructured data keyed by ticker, identifier or economic series. Useful for live and historical prices, fundamentals, statements, ratios, macro indicators and quantitative analysis.Company narratives, news, regulatory filings and questions that require reasoning across sources.
Web data APIsRaw webpage and document content. Useful for fetching filings, earnings transcripts, press releases, news articles, company websites and patents.Answering the question for you: your agent must choose what to retrieve, extract the relevant passages and reconcile conflicting sources.
Research APIsSynthesized reports with citations and supporting files. Useful for investment analysis, due diligence, competitive intelligence and questions that require comparing many sources.Live prices, simple metrics or other low-latency requests where milliseconds matter more than thorough analysis.

These are jobs, not exclusive vendor categories. A single product may do more than one.

Market and fundamental data APIs tell you what moved. Pull spending, revenue, margins and prices as dated values. Alpha Vantage, Tiingo and Massive cover different parts of this job. The company, period, units and adjustment method must travel with each number.

Web data APIs let you read what was said. Retrieve the filing, earnings release, call transcript or company announcement. The SEC gives developers direct access to filing histories and XBRL facts. Finding a document is only the start; the agent still has to locate the passage it needs.

Research APIs do the follow-through. Did revenue growth follow the spending? What did management attribute it to? Are two companies reporting on comparable periods? Valyu Search can retrieve relevant filing sections and other material. DeepResearch can investigate the broader question and return a brief with citations and open questions.

This is not a required sequence. A researcher might start with an 8-K and check the price reaction afterward, or notice a price move and work backward to a disclosure. The layers describe the work, not the order in which it must happen.

1. Valyu: search financial sources and run multi-step research

Valyu's finance catalogue covers SEC filings, company financials, earnings, market data, economic indicators and web sources. Dataset access depends on the account and plan.

Search retrieves material for a specific question; you can let Valyu route the query or choose a dataset such as valyu/valyu-sec-filings. DeepResearch handles a longer investigation and returns a cited report or a structured result.

Use Search for a specific passage. Use DeepResearch when the deliverable is the investigation itself.

The SEC already publishes its filings. The work is making them answerable: identifying a company, form, date and section; dealing with long tables and amendments; and returning the passage rather than an entire document. Valyu describes its SEC indexing process here.

Search a filing with Valyu

Set VALYU_API_KEY in your environment. These examples print the result text and URL so a developer can inspect what was returned. Do not put a key in browser-side code.

Python

Python
from valyu import Valyu
 
client = Valyu() # Reads VALYU_API_KEY from the environment
 
response = client.search(
"Microsoft FY2025 10-K: what does the company say about "
"AI infrastructure spending and associated risks?",
included_sources=["valyu/valyu-sec-filings"],
max_num_results=5,
response_length="medium",
)
 
if not response.success:
raise RuntimeError(response.error or "Search failed")
 
for result in response.results:
print(result.title)
print(result.url)
print(result.content[:700])
print("---")

TypeScript

TypeScript
import { Valyu } from "valyu-js";
 
const client = new Valyu(); // Reads VALYU_API_KEY from the environment
 
const response = await client.search(
"Microsoft FY2025 10-K: what does the company say about " +
"AI infrastructure spending and associated risks?",
{
includedSources: ["valyu/valyu-sec-filings"],
maxNumResults: 5,
responseLength: "medium",
},
);
 
if (!response.success) {
throw new Error(response.error ?? "Search failed");
}
 
for (const result of response.results) {
console.log(result.title);
console.log(result.url);
console.log(result.content.slice(0, 700));
console.log("---");
}

Install with pip install valyu or npm install valyu-js. The Python and TypeScript references describe other search filters and response options. These are documented request examples, not a claim that a particular passage was returned in a live test.

When to use Investment DeepResearch

Now ask a harder question: How do Microsoft's and Amazon's AI infrastructure investments affect their growth opportunities, margins and risks? A useful brief has to separate reported figures from management forecasts, compare reporting periods carefully and identify what could undermine either thesis.

Valyu DeepResearch runs the multi-step task asynchronously. You can guide the sources it prioritises and specify a report structure. It can also draw on some finance signals that raw Search does not expose, including short-seller reports and buyside letters, subject to access. Its output still needs human review.

Python

Python
from valyu import Valyu
 
client = Valyu()
 
task = client.deepresearch.create(
query=(
"Compare Microsoft's and Amazon's AI infrastructure investment "
"theses using their most recent available filings and other "
"relevant sources. Assess reported spending, potential returns, "
"margin implications, and principal risks."
),
mode="standard",
research_strategy=(
"Prioritize primary filings and company disclosures. Check that "
"figures refer to comparable periods. Look for material that "
"challenges each thesis."
),
report_format=(
"Write a concise investment-committee brief with a comparison "
"table, bull case, bear case, open questions, and citations. "
"Separate reported facts from interpretation."
),
)
 
if not task.success:
raise RuntimeError("Could not create research task")
 
result = client.deepresearch.wait(task.deepresearch_id, max_wait_time=1800)
 
if result.status != "completed":
raise RuntimeError(result.error or f"Task ended: {result.status}")
 
print(result.output)
for source in result.sources or []:
print(source.title, source.url)

TypeScript

TypeScript
import { Valyu } from "valyu-js";
 
const client = new Valyu();
 
const task = await client.deepresearch.create({
query:
"Compare Microsoft's and Amazon's AI infrastructure investment " +
"theses using their most recent available filings and other " +
"relevant sources. Assess reported spending, potential returns, " +
"margin implications, and principal risks.",
mode: "standard",
researchStrategy:
"Prioritize primary filings and company disclosures. Check that " +
"figures refer to comparable periods. Look for material that " +
"challenges each thesis.",
reportFormat:
"Write a concise investment-committee brief with a comparison " +
"table, bull case, bear case, open questions, and citations. " +
"Separate reported facts from interpretation.",
});
 
if (!task.success || !task.deepresearch_id) {
throw new Error("Could not create research task");
}
 
const result = await client.deepresearch.wait(task.deepresearch_id, {
maxWaitTime: 1_800_000,
});
 
if (result.status !== "completed") {
throw new Error(result.error ?? `Task ended: ${result.status}`);
}
 
console.log(result.output);
for (const source of result.sources ?? []) {
console.log(source.title, source.url);
}

Ready to try Valyu?

If you're an agent: Follow the agent onboarding guide to install Valyu, sign in and verify your first query. Ask your human to approve the login when prompted.

If you're a human: Create an account and get an API key to run the examples above.

Need the API details? Read the finance search guide. Check each filing's date and reporting period before using a result in a memo.

For recurring work, DeepResearch Workflows let teams save a versioned research template and rerun it with new inputs.

Choose Valyu when: Your application needs to answer questions across financial sources or produce a sourced research brief.

Know the limits: Some datasets require a particular plan, and some signals are DeepResearch-only. Valyu's finance documentation notes that market data may carry a 1–5 minute delay and some structured datasets focus on US markets. Use a dedicated feed for exchange-grade streaming or tick data.

2. SEC EDGAR APIs: direct access to filings and reported facts

The SEC's EDGAR APIs provide company filing histories and XBRL financial data as JSON. They do not require an API key. If you know the company and the financial concept you need, direct access may be enough.

Direct access gives you the original records. Your application still has to find the relevant section and interpret it.

A question such as “How did management's stated risks change?” needs more than a JSON fact. You must find the filings, read their risk-factor sections and account for dates and amendments. The SEC's aggregated XBRL endpoints cover standard, non-custom taxonomy facts that apply to the filing entity as a whole; they do not expose every custom-tagged disclosure or answer every question buried in filing prose.

Choose EDGAR when: You want direct US filing or XBRL access and will build the retrieval and analysis layer yourself. Follow the SEC's programmatic access guidance.

3. Alpha Vantage: time series, indicators and fundamentals

Alpha Vantage has endpoints for market time series, technical indicators and company fundamentals. It works well when an application knows the symbol and the series it wants.

Select the endpoint for the job. Check adjustments, access tier and date range before using a figure.

A backtest may need adjusted historical prices with consistent timestamps; it does not need a research agent to interpret a filing for every observation. Conversely, an indicator alone will not explain a management decision. Check the chosen endpoint's historical depth, freshness, access level and commercial terms.

Choose Alpha Vantage when: Your workflow is built around numerical series, indicators or known financial-data endpoints.

4. Tiingo: price history, news and fundamentals

Tiingo combines historical prices with a news API that returns article URLs, dates and ticker tags. Its end-of-day API provides raw and split- or dividend-adjusted prices.

A price move and an article published that day are separate records. Joining them does not prove the article caused the move.

Tiingo is useful if an application needs to find what was published around a price move. The news feed narrows the reading list; the application still has to read the articles and check the company's own disclosures. Fundamental statements and daily metrics are available as an add-on subscription, with limited evaluation access. Check the account's permitted use and redistribution rights before displaying the data in a customer-facing product.

Choose Tiingo when: You need adjusted price history alongside ticker-linked news and, if subscribed, company fundamentals.

5. Massive: live and historical market data

Massive provides REST endpoints for on-demand requests, WebSockets for live updates and flat files for historical bulk access. These delivery methods suit different applications.

Choose the delivery method by latency and volume. A market feed does not interpret a company's disclosure.

A live trading screen and a backtest should not be forced through the same retrieval pattern. Nor should a report-writing API replace a market feed that needs exchange entitlements and low latency.

Choose Massive when: Streaming updates, specific historical records or bulk datasets are central to the product.

How do these APIs fit together?

Start with the question your user will ask:

“What revenue did this company report?” Use structured financial data. Check the period, units and any restatement.

“What changed in its risk disclosures?” Read the relevant sections from both filings and keep the original links.

“Did spending produce growth?” Pull reported spending and revenue figures, then read management's explanation. Keep forecasts separate from results.

“Write an investment-committee brief.” Investigate across sources, compare like periods, raise open questions and let a reviewer inspect the citations.

“Stream live quotes.” Use a market-data feed with the appropriate entitlements and latency.

A mixed stack is normal. The point is to use each API for the work it is built to do.

Frequently asked questions

What is the best investment research API for AI agents?

It depends on the task. Valyu fits agents that search across financial sources or produce cited, multi-step reports. EDGAR fits direct US filing and XBRL access. Alpha Vantage fits endpoint-driven numerical analysis. Tiingo combines price history with ticker-linked news and optional fundamentals. Massive fits streaming and bulk market data.

What is the difference between Valyu Search and DeepResearch?

Search retrieves material for a specific question. DeepResearch runs a longer investigation and returns a cited report or structured result. Choose Search when your application does the analysis; choose DeepResearch when you want the API to carry out the research process too.

Can Valyu search SEC filings?

Yes. The valyu/valyu-sec-filings dataset is available through Search, subject to plan access. Specify it in included_sources or let Valyu route the query. Read how Valyu indexes filings.

Do you still need a market-data API if you use a research API?

You may. A trading application needing low-latency quotes, options data or tick history has different requirements from an agent drafting a memo. Check the feed's licensing, freshness and delivery method.

How do you check an AI-generated investment memo?

Open the cited documents behind its important figures and claims. Confirm the company, filing, reporting period and units. Then read the quoted passage: does it say what the memo says it does? Finally, check whether a newer filing changes the answer.

Choose by the question, then inspect the result

For a known market series, use an API built to deliver that series. For a question buried in a filing, find the relevant passage. For an investment memo, expect the agent to compare sources, identify uncertainty and give readers a way to check its work.

Pick a real question from your workflow and run it end to end. Explore Valyu's finance sources or try Search and DeepResearch with that question.

Valyu Add

Join 12,000+ professionals and knowledge workers.

Valyu Add is a free weekly research briefing for builders, investors and operators. Every issue is sourced, cited and verified with Valyu DeepResearch.