# API reference

Every Fundalyze API and MCP tool. REST: `GET https://api.fundalyze.ai/api/public/v1/<tool>` with the parameters as the query string and `Authorization: Bearer fdz_live_...`. MCP: `https://api.fundalyze.ai/mcp`, the same tools by name. Responses are JSON `{text, data, link}`; errors are `{"detail": "..."}`.

- OpenAPI: https://api.fundalyze.ai/api/public/v1/openapi.json
- Catalogue (JSON, no key): https://api.fundalyze.ai/api/public/v1/tools
- Data dictionary (JSON, no key): https://api.fundalyze.ai/api/public/v1/dictionary

## Companies

- [search_companies](https://fundalyze.ai/developers/md/reference/search_companies): Find US-listed companies by name or ticker in the SEC EDGAR directory.
- [get_company](https://fundalyze.ai/developers/md/reference/get_company): One company's profile from its SEC filings: name, exchange, country, CIK, industry (SIC), public float (USD millions) and shares outstanding (millions) as of their 10-K cover date, and a summary of its 10-K business section.
- [get_peers](https://fundalyze.ai/developers/md/reference/get_peers): A company's researched competitor set (business first, size second): each peer's ticker, name, exchange and CIK, plus unlisted competitors by name.

## Financials

- [get_financials](https://fundalyze.ai/developers/md/reference/get_financials): Standardized financial statements (income, balance, cash_flow) built from SEC XBRL filings, annual or quarterly, one column per period, newest last, in USD millions (non-USD filers converted).
- [get_reported_financials](https://fundalyze.ai/developers/md/reference/get_reported_financials): A company's statements exactly as filed in XBRL. as_filed: one filing's own lines and columns, with concept and unit; segments: revenue, operating income and assets by business line, product and geography with the prior year; changes: the lines that moved most between the filing's periods.

## Filings

- [list_filings](https://fundalyze.ai/developers/md/reference/list_filings): A company's SEC filings, newest first: form, filing date, period, accession number, description and the sec.gov link.
- [get_filing_summary](https://fundalyze.ai/developers/md/reference/get_filing_summary): An existing AI summary of a company's SEC filing: sections, bullets and the quoted passages they rest on with their positions.

## Ownership and leadership

- [get_leadership](https://fundalyze.ai/developers/md/reference/get_leadership): Who founded a company and whether founders or a family control it (roles, voting and economic %, basis), the current CEO, and CEO pay by fiscal year from the proxy.
- [get_institutional_holders](https://fundalyze.ai/developers/md/reference/get_institutional_holders): The largest institutional holders of a stock from SEC Form 13F: manager, its type, shares, filer-reported value, quarter, filed date and the change vs its prior 13F.
- [get_short_interest](https://fundalyze.ai/developers/md/reference/get_short_interest): FINRA short interest for a stock by settlement date (twice a month), newest first: shares short, change vs the prior date, average daily volume and days to cover as FINRA reports them.
- [get_investor](https://fundalyze.ai/developers/md/reference/get_investor): A 13F filer's portfolio (super investors, funds): holdings with shares, filer-reported value and % of portfolio, or changes vs the prior 13F (new, added, reduced, sold out). query is a name or CIK; an ambiguous name returns candidates to retry with their CIK.

## Trading activity

- [get_insider_trades](https://fundalyze.ai/developers/md/reference/get_insider_trades): Insider transactions from SEC Forms 3/4/5 for one company, newest filed first: insider, role, transaction code, shares, price, value, shares held after, and the filing link.
- [get_congress_trades](https://fundalyze.ai/developers/md/reference/get_congress_trades): Trades in one company's stock disclosed by members of the U.S. House and Senate (Periodic Transaction Reports), newest filed first: member, party, chamber, state, buy/sell, disclosed amount range, owner and the filing link.
- [get_insider_feed](https://fundalyze.ai/developers/md/reference/get_insider_feed): Open-market insider trades across all US-listed companies from SEC Form 4, newest filed first (buys by default), or with clusters=true the stocks where several insiders bought in the window.
- [get_congress_feed](https://fundalyze.ai/developers/md/reference/get_congress_feed): Trades disclosed by members of the U.S. House and Senate across all assets, newest filed first, filterable by member, party, chamber and type; with member also their seat and current committees.

## Screening

- [screen_companies](https://fundalyze.ai/developers/md/reference/screen_companies): Screen US-listed companies on public-record metrics from SEC filings: growth, margins, returns, leverage, filing events, insider buying, 13F holders, founder control and CEO pay.

## News and economy

- [get_headlines](https://fundalyze.ai/developers/md/reference/get_headlines): Recent press headlines about one company (headline, outlet, date, link; never article text), from The GDELT Project's news index, newest first.
- [get_economy](https://fundalyze.ai/developers/md/reference/get_economy): U.S. economic indicators from FRED (inflation, jobs, growth, housing, rates, credit, markets, government debt).
