Discover/Yahoo API
live

Yahoo APIfinance.yahoo.com

Search stock tickers and retrieve financial stats, valuation ratios, and ETF holdings from Yahoo Finance. 3 endpoints, structured JSON responses.

This API takes change requests — .
Endpoint health
verified 20h ago
get_stock_stats
get_holdings
search_ticker
3/3 passing latest checkself-healing
Endpoints
3
Updated
15d ago

What is the Yahoo API?

This API exposes 3 endpoints that cover Yahoo Finance data: ticker search, key stock statistics, and ETF/mutual fund holdings. The get_stock_stats endpoint returns over 10 financial fields per ticker — including PE ratio, PEG ratio, beta, EPS, forward EPS, market cap, 52-week high/low, and volume — while get_holdings surfaces the top holdings for funds like SPY or QQQ with portfolio weight percentages.

This call costs1 credit / call— charged only on success
Try it
Search query — company name, ticker symbol, or keyword.
api.parse.bot/scraper/7cd4ecc8-2548-4653-a6b1-48d9356cd29d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/7cd4ecc8-2548-4653-a6b1-48d9356cd29d/search_ticker?query=Apple' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace finance-yahoo-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.


"""Walkthrough: Yahoo Finance SDK — bounded, re-runnable; every call capped."""
from parse_apis.Yahoo_Finance_API import YahooFinance, TickerNotFound

client = YahooFinance()

# Search for tickers by company name
for ticker in client.tickers.search(query="Microsoft", limit=3):
    print(ticker.symbol, ticker.name, ticker.exchange)

# Get detailed stats for a known stock
try:
    aapl = client.stocks.get(ticker="AAPL")
    print(aapl.ticker, aapl.pe_ratio, aapl.market_cap, aapl.week_high_52)
except TickerNotFound as e:
    print("not found:", e.ticker)

# Retrieve top holdings for an ETF
fund = client.funds.get(ticker="SPY")
print(fund.ticker, fund.total_holdings_count)
for holding in fund.holdings.list(limit=3):
    print(holding.symbol, holding.company_name, holding.percentage)

print("exercised: tickers.search, stocks.get, funds.get, fund.holdings.list")
All endpoints · 3 totalmissing one? ·

Full-text search for stock tickers by company name, symbol, or keyword. Returns matching symbols with company name, exchange, type, sector, and industry. Results are auto-iterated.

Input
ParamTypeDescription
queryrequiredstringSearch query — company name, ticker symbol, or keyword.
Response
{
  "type": "object",
  "fields": {
    "total": "integer total number of matches",
    "results": "array of ticker matches with symbol, name, exchange, quote_type, sector, industry"
  },
  "sample": {
    "data": {
      "total": 6,
      "results": [
        {
          "name": "Apple Inc.",
          "sector": "Technology",
          "symbol": "AAPL",
          "exchange": "NASDAQ",
          "industry": "Consumer Electronics",
          "quote_type": "Equity"
        }
      ]
    },
    "status": "success"
  }
}

About the Yahoo API

Ticker Search

The search_ticker endpoint accepts a free-text query — a company name, symbol, or keyword — and returns an array of matching instruments. Each result includes the symbol, name, exchange, quote_type, sector, and industry. The response also includes a total count of matches, and results are auto-iterated so you don't need to manage pagination manually.

Stock Financial Statistics

The get_stock_stats endpoint takes a single ticker parameter (e.g., AAPL, MSFT) and returns a structured object with valuation measures (pe_ratio, forward_pe, peg_ratio, market_cap), trading data (volume, 52_week_low, beta), and earnings figures (eps, forward_eps). All numeric fields are typed — market cap is an integer in USD, price fields are floats — which makes downstream calculations straightforward without additional parsing.

ETF and Mutual Fund Holdings

The get_holdings endpoint is scoped specifically to ETFs and mutual funds. Passing a ticker like SPY, QQQ, or VTI returns up to 10 top holdings, each with a symbol, company_name, percentage weight, and share count. The response also includes an as_of_date field (or null if unavailable) and a total_holdings_count. Calling this endpoint with an individual stock ticker will return an empty holdings list — it is only meaningful for fund-type instruments.

Reliability & maintenanceVerified

The Yahoo API is a managed, monitored endpoint for finance.yahoo.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when finance.yahoo.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official finance.yahoo.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
20h ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Screen stocks by PE ratio or PEG ratio to filter overvalued or undervalued equities.
  • Build a portfolio tracker that maps company names to ticker symbols using search_ticker.
  • Compare beta coefficients across a watchlist to assess portfolio volatility exposure.
  • Analyze top ETF holdings to understand index composition and sector concentration.
  • Populate a financial dashboard with EPS and forward EPS to track earnings trends.
  • Identify stocks near 52-week lows using the 52_week_low field from get_stock_stats.
  • Resolve ambiguous company names to canonical ticker symbols before querying other data sources.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Yahoo Finance have an official developer API?+
Yahoo Finance does not currently offer a supported public developer API. The original Yahoo Finance API was discontinued in 2017. There is no official replacement with documented endpoints or API keys available from Yahoo.
What does `get_holdings` return for a regular stock ticker like AAPL?+
Holdings data is only available for ETFs and mutual funds. Passing an individual equity ticker to get_holdings will return an empty holdings array. Use search_ticker first if you need to confirm whether a given instrument is a fund before calling get_holdings.
Does `get_stock_stats` return historical price data or intraday quotes?+
No historical OHLCV series or intraday quote data is returned. The endpoint covers point-in-time statistics: valuation ratios, trailing and forward EPS, market cap, volume, beta, and 52-week range. You can fork this API on Parse and revise it to add a historical prices or intraday quotes endpoint.
Does the API return income statement or balance sheet data?+
Not currently. The API covers key statistics from get_stock_stats such as EPS, PE ratios, market cap, and margins, but does not expose full financial statements (income statement, balance sheet, or cash flow). You can fork it on Parse and revise to add those statement endpoints.
How many holdings does `get_holdings` return, and can I get the full list?+
The endpoint returns up to 10 top holdings per fund. The total_holdings_count field reflects how many were returned in the response, not the total number of positions the fund holds. Funds like SPY or VTI hold hundreds of positions; the remaining holdings beyond the top 10 are not currently exposed. You can fork this API on Parse and revise it to add deeper holdings pagination.
Page content last updated . Spec covers 3 endpoints from finance.yahoo.com.
Related APIs in FinanceSee all →
yahoofinance.com API
Access live stock quotes, historical price data, company profiles, and financial news for any ticker symbol. Supports real-time market data, OHLCV history across configurable intervals, detailed company fundamentals, and news aggregation across global exchanges.
ca.finance.yahoo.com API
Access real-time financial data from Yahoo Finance, including cryptocurrency prices, stock quotes, and screened lists of stocks meeting custom criteria such as all-time highs, volume thresholds, and price filters.
nasdaq.com API
Track real-time and historical stock prices, ETF and mutual fund quotes, cryptocurrency data, and comprehensive company financials including earnings, dividends, and SEC filings all from one source. Research market trends with institutional holdings, short interest data, retail trading activity, and market movers to make informed investment decisions.
au.finance.yahoo.com API
Get real-time stock quotes, historical price data, and market activity for stocks on Yahoo Finance Australia. Access the most active stocks by region and retrieve detailed metrics — including price, volume, and market cap — to support investment research and analysis.
stockanalysis.com API
Access comprehensive stock market data including real-time financials, income statements, statistics, and IPO calendars to research individual stocks and identify market movers. Search stocks, view detailed overviews, and monitor premarket activity all in structured, easy-to-use format.
alphavantage.co API
Track stock prices, forex rates, and cryptocurrency values with real-time and historical market data, while accessing company financials, earnings reports, and technical indicators. Search tickers, monitor economic indicators, analyze news sentiment, and get global quotes all in one place.
morningstar.com API
Get comprehensive financial data including stock quotes, company profiles, historical financials, valuation metrics, ownership details, dividends, and market movers from Morningstar. Search securities and access the latest stock news to make informed investment decisions.
ticker.finology.in API
Search and analyze stocks, view company financials and market indices, track super investors and their holdings, and explore IPO listings and sector performance. Get comprehensive market data including company overviews, financial statements, and real-time dashboard information to make informed investment decisions.