Discover/Yahoo API
live

Yahoo APIfinance.yahoo.com

Search stock tickers and retrieve key financial statistics — PE ratio, EPS, market cap, beta, 52-week range — from Yahoo Finance via 2 structured endpoints.

This API takes change requests — .
Endpoint health
verified 11h ago
get_stock_stats
search_ticker
2/2 passing latest checkself-healing
Endpoints
2
Updated
12h ago

What is the Yahoo API?

The Yahoo Finance API provides 2 endpoints for accessing equity data from finance.yahoo.com. Use search_ticker to find stock symbols by company name or keyword, returning exchange, sector, and industry metadata. Use get_stock_stats to pull 10+ financial fields per symbol — including PE ratio, EPS, beta, market cap, and 52-week high/low — for any valid ticker like AAPL, MSFT, or GOOGL.

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.finance_yahoo_com_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 the first match and drill into its stats via sub-resource
match = client.tickers.search(query="Tesla", limit=1).first()
if match:
    stats = client.ticker(match.symbol).stats.get()
    print(stats.ticker, stats.pe_ratio, stats.market_cap)
    print(stats.week_high_52, stats.week_low_52, stats.dividend_yield)

# Direct stats lookup by known symbol with typed error handling
try:
    aapl = client.stocks.get(ticker="AAPL")
    print(aapl.current_price, aapl.eps, aapl.beta)
except TickerNotFound as e:
    print("not found:", e.ticker)

print("exercised: tickers.search, ticker.stats.get, stocks.get")
All endpoints · 2 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 parameter — a company name, ticker symbol, or keyword — and returns a ranked list of matches. Each result includes the symbol, company name, exchange, quote_type, sector, and industry. The response also surfaces a total count of matches, and results are auto-iterated so you receive the full set without manual pagination.

Stock Financial Statistics

The get_stock_stats endpoint takes a single ticker input (e.g. AAPL) and returns a flat set of key financial metrics sourced from Yahoo Finance's statistics view. Valuation fields include pe_ratio, forward_pe, and peg_ratio. Growth and earnings fields cover eps (trailing) and forward_eps. Market data includes market_cap, volume, beta, and 52_week_low. This makes it straightforward to compare valuation multiples or screen for dividend and risk characteristics across a watchlist.

Data Scope and Freshness

Coverage spans equities listed on major exchanges accessible through Yahoo Finance, including US-listed stocks. The exchange field returned by search_ticker indicates where a symbol trades. Financial statistics reflect the values Yahoo Finance displays for each ticker — these are point-in-time snapshots rather than streaming quotes, so they are best suited for screening, research workflows, and periodic data pulls rather than real-time trading applications.

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
11h ago
Latest check
2/2 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, PEG ratio, and forward EPS to build a value or growth watchlist
  • Resolve a company name to its canonical ticker symbol and exchange before querying further data
  • Compare market cap and beta across a portfolio to assess size and volatility distribution
  • Track 52-week low values to identify equities trading near their annual floor
  • Enrich an internal company database with sector and industry classifications via search_ticker
  • Build a financial dashboard that displays EPS, forward PE, and volume for a configurable ticker list
  • Filter search results by quote_type to separate ETFs, mutual funds, and equities in a research tool
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Yahoo Finance offer an official developer API?+
Yahoo Finance does not currently offer a supported, public developer API. The official Yahoo Finance product at finance.yahoo.com is a consumer web application. There is no documented REST API with published keys or OAuth flow available from Yahoo for this data.
What does get_stock_stats return beyond price and volume?+
Beyond volume, the endpoint returns valuation ratios (pe_ratio, forward_pe, peg_ratio), earnings figures (eps, forward_eps), risk data (beta), and scale data (market_cap). It also includes the 52_week_low price. The response is a flat object keyed by these field names, so no nested unpacking is needed.
Does search_ticker return results from all global exchanges?+
Results reflect what Yahoo Finance indexes, which includes many international exchanges alongside US markets. The exchange field on each result identifies where the symbol is listed. Coverage of smaller or emerging-market exchanges may be incomplete depending on what Yahoo Finance itself indexes.
Does the API return real-time price quotes or historical price data?+
Not currently. The API covers key statistics (PE ratio, EPS, market cap, beta, 52-week low) and ticker metadata, but does not expose live bid/ask quotes, intraday prices, or historical OHLCV series. You can fork this API on Parse and revise it to add an endpoint that returns historical price data or current quote fields.
Does get_stock_stats include dividend yield or payout data?+
The current response fields do not include a dedicated dividend yield or payout ratio field. The spec notes dividend information is in scope conceptually, but the structured response exposes the fields listed above. You can fork this API on Parse and revise it to surface dividend yield, ex-dividend date, or payout ratio from Yahoo Finance's statistics page.
Page content last updated . Spec covers 2 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.
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.
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.
marketbeat.com API
Track comprehensive stock market data including real-time overviews, analyst ratings, earnings reports, insider trades, and institutional ownership across thousands of companies. Search stocks, analyze financial statements and profitability metrics, monitor short interest, explore options chains, and stay updated with market headlines and competitor analysis.
nyse.com API
nyse.com API