Yahoo Finance API (v7)
Yahoo Finance's official public API was discontinued in 2017. Multiple unofficial endpoints have appeared since but break frequently. Tools like the yfinance Python library scrape the website and require constant maintenance to keep working.
🟡 Unknown
collecting…
Officially discontinued 2017. Unofficial endpoints exist but are unstable.
No key required
Free alternatives (live ranking)
- Frankfurter — 🟢 Online · Unlimited, no key, no credit card
- European Central Bank Rates — 🟢 Online · Unlimited, no key, no credit card
- ExchangeRate-API — 🟢 Online · 1,500 calls/month, free key, no credit card
Paid alternatives
- Alpha Vantage — free 25 req/day, premium from $50/mo
- Polygon.io — free 5 req/min, paid from $29/mo
Frequently Asked Questions
Does Yahoo Finance API (v7) require an API key?
No, Yahoo Finance API (v7) is freely accessible without registration or an API key.
What is Yahoo Finance API (v7)'s free tier?
Officially discontinued 2017. Unofficial endpoints exist but are unstable.
Is Yahoo Finance API (v7) down right now?
We have not completed a check of Yahoo Finance API (v7) yet. We check every tracked API hourly.
Implementation notes
When to use Yahoo Finance API (v7)
Yahoo Finance never offered a supported public API in the modern sense. Its official developer API was discontinued in 2017, and what developers kept using afterwards was the undocumented endpoint the website itself calls, query1.finance.yahoo.com/v7/finance/quote, which returned prices, day change, market state and dozens of other fields for a comma-separated list of symbols in one keyless request. Libraries such as yfinance wrapped it and its sibling endpoints for years. It now breaks constantly: a plain request from our test machine was answered with HTTP 429 rather than a quote, and the wrappers that still work do so by imitating a browser session, against Yahoo's terms. Replace it by asset class rather than looking for one substitute. For equities, Twelve Data has the most generous keyed free tier at 800 calls a day and Alpha Vantage the most familiar at 25; Financial Modeling Prep and Finnhub cover fundamentals. For currencies, Frankfurter needs no key. For crypto, CoinGecko's Demo plan. For macroeconomic series, FRED.
Common pitfalls
- Batching is the biggest loss. One v7 call could quote a whole watchlist; Alpha Vantage's GLOBAL_QUOTE takes a single symbol per request, so a 30-ticker portfolio cannot refresh even once inside its 25-call daily budget. Twelve Data's 800 calls a day stretch further, but its free tier also has a per-minute ceiling, so a naive loop over symbols stalls on that first.
- Symbols do not port. Yahoo's conventions — exchange suffixes such as .L and .TO, ^GSPC for indices, EURUSD=X for currency pairs, BTC-USD for crypto — are Yahoo's alone. Twelve Data uses its own exchange qualifiers, Frankfurter wants ISO currency codes, and CoinGecko wants coin IDs such as bitcoin. Keep an explicit mapping table in your adapter instead of string-munging tickers at call sites.
- Field names and types change completely. v7 returned regularMarketPrice as a number next to marketState; Alpha Vantage returns string values under numbered keys such as 05. price and 10. change percent, the latter with a literal percent sign. Parse each field explicitly rather than renaming keys and hoping the types survive.
- Free equity data is delayed — typically 15 to 20 minutes, for exchange-licensing reasons — and providers flag it differently or not at all. Display each quote with its own timestamp and never label it live, or users comparing your number with a broker app will report a bug that is really a licensing tier.
- Errors stop looking like errors. Alpha Vantage answers a rate-limit breach with HTTP 200 and an explanatory message in place of data, so code that only checks status codes caches the message as if it were a quote. Verify the expected payload key exists on every response before writing it anywhere.
Quick start (bash)
# equities: one symbol per Alpha Vantage call, 25 calls a day on the free key
curl -s 'https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=MSFT&apikey=YOUR_KEY' | jq '."Global Quote" | {price: ."05. price", change: ."10. change percent"}'
# Yahoo-style EURUSD=X pairs: Frankfurter, no key, ECB reference rates
curl -s 'https://api.frankfurter.dev/v1/latest?from=EUR&to=USD,GBP,JPY'
# Yahoo-style BTC-USD: CoinGecko Demo plan, coin IDs instead of tickers
curl -s 'https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd' Embed this badge
Add a live status badge to your README, docs, or website.
Markdown
[](https://freeapi.watch/yahoo-finance-v7) HTML
<a href="https://freeapi.watch/yahoo-finance-v7"><img src="https://api.freeapi.watch/badge/yahoo-finance-v7.svg" alt="Yahoo Finance API (v7) Status"/></a>