Yahoo API: Get quote
Looks up a stock, fund, index, or cryptocurrency by name or ticker and returns its latest displayed price and key statistics. Unavailable figures are null; quotes may be delayed.
Unofficial. Not affiliated with or endorsed by Yahoo.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Asset, required
asset Asset name or Yahoo Finance ticker, for example Microsoft, MSFT, S&P 500, or Bitcoin.
MSFT
Input as JSON
{ "asset": "MSFT"}Output
{ "link": "https://finance.yahoo.com/quote/MSFT/" , "name": "Microsoft Corporation", "open": 532.7, "as_of": "2026-10-23T04:03:29-04:00", "change": -3.4850464, "ticker": "MSFT", "volume": 21246740, "currency": "USD", "dividend": 3.92, "exchange": "NasdaqGS", "pe_ratio": 29.69117, "day_range": "520.30 - 533.60", "market_cap": 3869303373824, "latest_price": 517.595, "market_state": "pre-market", "average_volume": 26209732, "dividend_yield": 0.75, "percent_change": -0.6688121699999999, "previous_close": 532.95, "earnings_per_share": 17.55, "market_cap_display": "3.869T", "next_earnings_date": "2026-10-28", "fifty_two_week_range": "349.20 - 553.72"}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"finance.yahoo.com/get_quote","input":{"asset":"MSFT"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "finance.yahoo.com/get_quote" , "input": { "asset": "MSFT" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "finance.yahoo.com/get_quote" , "input": { "asset": "MSFT" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run finance.yahoo.com/get_quote# with {"asset":"MSFT"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "asset" ], "properties": { "asset": { "type": "string", "description": "Asset name or Yahoo Finance ticker, for example Microsoft, MSFT, S&P 500, or Bitcoin." } }}Output schema
{ "type": "object", "required": [ "name", "ticker", "exchange", "currency", "latest_price", "change", "percent_change", "previous_close", "open", "day_range", "fifty_two_week_range", "volume", "average_volume", "market_cap", "market_cap_display", "pe_ratio", "earnings_per_share", "dividend", "dividend_yield", "next_earnings_date", "market_state", "as_of", "link" ], "properties": { "link": { "type": [ "string", "null" ], "format": "uri", "description": "Yahoo Finance quote page" }, "name": { "type": [ "string", "null" ], "description": "Asset name on Yahoo Finance" }, "open": { "type": [ "number", "null" ], "description": "Regular-session open price" }, "as_of": { "type": [ "string", "null" ], "format": "date-time", "description": "Timestamp of the latest displayed price with UTC offset" }, "change": { "type": [ "number", "null" ], "description": "Price change in the displayed trading session" }, "ticker": { "type": [ "string", "null" ], "description": "Yahoo Finance ticker" }, "volume": { "type": [ "number", "null" ], "description": "Regular-session volume" }, "currency": { "type": [ "string", "null" ], "description": "Quote currency code" }, "dividend": { "type": [ "number", "null" ], "description": "Forward annual dividend per unit" }, "exchange": { "type": [ "string", "null" ], "description": "Full exchange name or quote venue" }, "pe_ratio": { "type": [ "number", "null" ], "description": "Trailing price-to-earnings ratio" }, "day_range": { "type": [ "string", "null" ], "description": "Regular-session low and high as displayed" }, "market_cap": { "type": [ "number", "null" ], "description": "Market capitalization" }, "latest_price": { "type": [ "number", "null" ], "description": "Most recent displayed trading price" }, "market_state": { "type": [ "string", "null" ], "description": "Market status: open, closed, pre-market, or after-hours" }, "average_volume": { "type": [ "number", "null" ], "description": "Average daily volume" }, "dividend_yield": { "type": [ "number", "null" ], "description": "Forward annual dividend yield in percent units" }, "percent_change": { "type": [ "number", "null" ], "description": "Percent change in the displayed trading session, in percent units" }, "previous_close": { "type": [ "number", "null" ], "description": "Previous regular closing price" }, "earnings_per_share": { "type": [ "number", "null" ], "description": "Trailing twelve-month earnings per share" }, "market_cap_display": { "type": [ "string", "null" ], "description": "Market capitalization as displayed, for example 3.1T" }, "next_earnings_date": { "type": [ "string", "null" ], "format": "date", "description": "Next earnings date in YYYY-MM-DD format" }, "fifty_two_week_range": { "type": [ "string", "null" ], "description": "52-week low and high as displayed" } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
finance.yahoo.com/get_quote- Returns
- name, ticker, exchange, latest price, change, day and 52-week ranges, volume, market cap, P/E, dividend, next earnings date, market state
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method finance.yahoo.com/get_quote with the inputs above.
Ask your agent
- What's the current price and P/E ratio for Tesla stock?
- Pull up the latest quote for BTC-USD, including its 52-week range.
- Can you check how the S&P 500 index is doing today and what its day range is?
- I need the market cap and next earnings date for NVDA on Yahoo.
- Look up the Vanguard S&P 500 ETF (VOO) and tell me its dividend and trading volume.
See more
All Yahoo methodsReturns Yahoo Finance daily, weekly or monthly price history and total adjusted-close return for a stock, fund, index or cryptocurrency.
finance.yahoo.com/get_price_historyLooks up a company by name or ticker on Yahoo Finance and returns its latest news headlines, with article summaries when the article page provides one.
finance.yahoo.com/get_company_newsLists Yahoo Finance's top gainers, top losers, most active stocks, or regional trending tickers in Yahoo's order, with price, change, volume and market cap.
finance.yahoo.com/list_market_moversShows analyst recommendations, price targets, earnings estimates and recent rating changes for a public company on Yahoo Finance.
finance.yahoo.com/get_analyst_ratingsLooks up a Yahoo Sports player by name and returns the player's regular-season statistics for a season, alongside career totals. Each stat includes season and career values.
sports.yahoo.com/get_player_statsGets earnings reports for a date range, or the upcoming reports and up to four previous reports for one company.
finance.yahoo.com/get_earnings_calendarSearches Yahoo News articles by keyword, newest first or by relevance, with optional publication dates and pages; returns only articles hosted on Yahoo News, with authors, original publisher and section.
yahoo.com/search_newsGets scores and schedules for a league on a date, or for the football week that contains the date. Results can be limited to one team. Venue names come from each game page, for up to 22 games.
sports.yahoo.com/get_scores