Stock quote
GET /api/stock-quoteLive stock/index/FX/crypto quote: last price, day range, 52-week range, previous close, currency, exchange, and a relative change vs. previous close, as clean JSON. Backed by Yahoo Finance's public chart endpoint - keyless, no rate limits in practice. Symbols: equities (AAPL), indices (^GSPC), FX (EURUSD=X), crypto (BTC-USD).
Input
| Field | Type | Description |
|---|---|---|
symbol * | string | Ticker symbol - equity (AAPL), index (^GSPC), FX (EURUSD=X), crypto (BTC-USD) |
Example output
{
"symbol": "AAPL",
"name": "Apple Inc.",
"exchange": "NMS",
"currency": "USD",
"price": 232.45,
"previousClose": 230.1,
"changeAbs": 2.35,
"changePct": 1.0213,
"dayHigh": 233.5,
"dayLow": 229.2,
"fiftyTwoWeekHigh": 260.1,
"fiftyTwoWeekLow": 164.08,
"volume": 51234567,
"regularMarketTime": "2026-06-19T20:00:00Z"
}
Try it - see the 402 challenge (free)
curl -i "https://agent402.tools/api/stock-quote?symbol=AAPL"
The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/stock-quote?symbol=AAPL");
Part of these workflows
This tool is one step in 9 curated multi-tool workflows - agents can fetch the whole sequence as an MCP prompt or call https://agent402.tools/api/skill-packs/{slug}/prompt.
- Earnings deep-dive - Everything you need before a company reports: the upcoming earnings date, the latest financials, recent SEC filings, the live quote, and fresh analyst news - in one pass.
- Options analytics - Price a European option on a live stock: pull the current quote, estimate volatility from recent history, run Black-Scholes for fair value + the full greeks, and check the news for catalysts.
- Financial analysis - Quick company snapshot: live quote, 9 key financial metrics (revenue through cash flow), and upcoming earnings - one call, one payment.
- Financial research - Pull SEC filings, real-time quotes, historical prices, and macro context for a single ticker in one pass.
- Cross-asset price monitor - Side-by-side snapshot of a stock and a crypto asset: live quotes, 1-year history, and a date-stamped comparison.
- Company dossier - Comprehensive company research report in one call: live quote, financials, SEC filings, insider trades, and recent news - all in parallel.
- Earnings watch - Is this company reporting soon and what's the consensus? Earnings calendar, live quote, and recent search results in one call.
- Insider alert - Insider buying/selling activity for a stock: Form 4 trades, live quote, and recent SEC filings in one call.
- Market open brief - Full pre-trade snapshot for one ticker before the bell: the live quote, the pre-market quote, the options surface, dividend posture, and today's market-wide earnings calendar - one payment.
Related tools
US gov dataset search
GET /api/gov-dataSearch 300,000+ US government datasets on catalog.data.gov (CKAN): titles, publishing org, formats, and direct resource …
US weather alerts
GET /api/weather-alertsActive National Weather Service alerts for a US state as clean JSON: event, severity, headline, affected areas, onset/ex…
Recent earthquakes (USGS)
GET /api/earthquakesReal-time USGS earthquake feed: magnitude, place, time, depth, coordinates. Live government data, no key. ?minMag=4.5&pe…