Stock market data API: quotes, charts, financials and screeners
Yahoo Finance's public market data as clean JSON: real-time quotes for up to 100 symbols, OHLCV history from 1-minute bars, technical indicators, option chains, financial statements, news, 83 ready-made screeners and earnings calendars. 22 endpoints for stocks, ETFs, funds, indices, crypto, currencies and futures.
Yahoo Finance's public data; not affiliated with Yahoo. Not investment advice.
What you get
100 symbols per call
/quote takes up to 100 symbols and /spark 20, and each is still one call.
Indicators computed
SMA, EMA, RSI, MACD, Bollinger Bands and ADX, with the warm-up history fetched for you.
Fresh and fast
Quotes are cached for only 15 seconds, charts for minutes; fetchedAt shows when the data was fetched.
Yahoo's field names
Every field Yahoo sends, with its own names, so code written for Yahoo Finance data fits.
83 ready screens
Day gainers, most active, undervalued growth and more, or your own filters on about 90 fields.
Clear errors
statusCode, error and message in every error body. Errors on our side cost nothing.
Who it is for
Trading bots and backtests
Price history from 1-minute bars to the first trade, with indicators.
Portfolio trackers
Live quotes for a whole watchlist in one request.
Dashboards and spreadsheets
Market summary, movers, sectors and calendars for reports.
AI apps and agents
Give an LLM live prices, financials and news.
How to use it
- Sign up for free and copy your API key from the TTech API dashboard.
-
Send the key in the
x-api-keyheader with every call. -
Call any endpoint below at
https://api.ttechapi.com/v1/stocksplus its path, as in the examples.
Quotes
| Endpoint | Required | Returns | Credits |
|---|---|---|---|
GET /quote | symbols | Real-time quotes of up to 100 symbols: price, change, volume, ranges, market cap, P/E | 1 credit |
GET /quote-type | symbols | Name, type, exchange and time zone | 1 credit |
GET /quote-summary | symbol | Profile, statistics, earnings, recommendations, holders and more (44 modules) | 1 credit |
GET /recommendations | symbol | Similar symbols with a score | 1 credit |
GET /search | query | Symbols matching a company name or ticker | 1 credit |
GET /news | query | Latest news for a ticker or text | 1 credit |
Charts
| Endpoint | Required | Returns | Credits |
|---|---|---|---|
GET /chart | symbol | OHLCV candles, dividends and splits, 1-minute to 3-month bars | 1 credit |
GET /spark | symbols | Close prices of up to 20 symbols at once | 1 credit |
GET /indicator | symbol, indicator | SMA, EMA, RSI, MACD, Bollinger Bands or ADX | 1 credit |
GET /options | symbol | Option chain with bid, ask, volume, open interest and IV | 1 credit |
Company
| Endpoint | Required | Returns | Credits |
|---|---|---|---|
GET /financials | symbol | Income statement, balance sheet and cash flow: annual, quarterly or trailing | 1 credit |
GET /insights | symbol | Technical outlook, valuation and significant developments | 1 credit |
GET /research-reports | symbol | The 25 newest analyst research reports | 1 credit |
Markets and screeners
| Endpoint | Required | Returns | Credits |
|---|---|---|---|
GET /market-summary | Indices, futures, yields, currencies and crypto of a region | 1 credit | |
GET /market-time | Whether the U.S. market is open, with today's hours | 1 credit | |
GET /trending | Trending symbols of a region | 1 credit | |
GET /screener | One of 83 ready-made screens: DAY_GAINERS, MOST_ACTIVES, ... | 1 credit | |
POST /custom-screener | query | Your own filters on market cap, P/E, sector, volume and more | 1 credit |
GET /sector | key | A sector: performance, top companies, ETFs and industries | 1 credit |
GET /industry | key | An industry: performance and top companies | 1 credit |
GET /calendar | Earnings, IPO, splits or economic-event calendar | 1 credit | |
GET /market-tickers | Yahoo's lists of currencies, commodities, bonds and world indices | 1 credit |
Call it from code
curl -G "https://api.ttechapi.com/v1/stocks/quote" \
--data-urlencode "symbols=AAPL" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://api.ttechapi.com/v1/stocks/quote?symbols=AAPL', {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const data = await res.json();import requests
res = requests.get(
"https://api.ttechapi.com/v1/stocks/quote",
params={"symbols": "AAPL"},
headers={"x-api-key": "YOUR_API_KEY"},
)
print(res.json())<?php
$ch = curl_init('https://api.ttechapi.com/v1/stocks/quote?symbols=AAPL');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest(http.MethodGet, "https://api.ttechapi.com/v1/stocks/quote?symbols=AAPL", nil)
if err != nil {
panic(err)
}
req.Header.Set("x-api-key", "YOUR_API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(string(data))
}
Answers from the API have the headers x-credits-used and x-credits-remaining. When our
gateway refuses a call (wrong key, no credits left, too many requests), the body has statusCode,
error, message and requestId, and nothing is charged. A missing or wrong key gets HTTP 401.
Input
| Parameter | Type | What it does |
|---|---|---|
symbols / symbol | string | Yahoo symbols, comma-separated: AAPL, VOD.L, RELIANCE.NS, ^GSPC, BTC-USD, EURUSD=X, GC=F |
interval | string | 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d (default), 5d, 1wk, 1mo, 3mo |
range | string | 1d, 5d, 1mo (default), 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max; or start and end dates |
indicator | string | sma, ema, rsi, macd, bbands or adx, with time_period and limit |
modules, statement, frequency | string | What /quote-summary and /financials return, e.g. statement=income,cashflow&frequency=quarterly |
count, offset | integer | Paging on screeners and calendars, up to 250 a page |
Output
Every answer has the same shape; data holds the rows with Yahoo's field names. GET /quote?symbols=AAPL,MSFT (shortened):
| Field | What it is |
|---|---|
statusCode, count | 200 and the number of rows |
data | One row per symbol: regularMarketPrice, regularMarketChangePercent, marketCap, trailingPE, ... |
missing | Symbols Yahoo does not know |
errors | Symbols that failed this time while the others worked; ask again |
meta | About the whole answer, such as total on screeners |
fetchedAt | When the data was fetched |
Errors look like {"statusCode": 404, "error": "NOT_FOUND", "message": "Symbol not found: NOTASYMBOL"}, with HTTP 200; check statusCode.
{
"statusCode": 200,
"count": 2,
"data": [
{
"symbol": "AAPL",
"regularMarketPrice": 351.19,
"regularMarketChangePercent": -0.79
},
{
"symbol": "MSFT",
"regularMarketPrice": 475.46,
"regularMarketChangePercent": -2.41
}
],
"meta": {},
"missing": [],
"errors": {},
"fetchedAt": "2026-12-02T01:34:04.745Z"
}Pricing
One API key and one credit balance for every TTech API.
From 1 credit per call
Every endpoint of this API costs 1 credit.
300 free credits, no credit card
Given once to try every endpoint, valid for 1 month.
Plans from $14.99/month
Build, Grow and Scale, or a custom plan.
Use it with AI agents
Our MCP server gives your assistant 5 tools for this API: stocks_search, stocks_quotes, stocks_history, stocks_financials, stocks_news. A tool call costs the same credits as the REST call. Pick your assistant:
Run this, then type /mcp in Claude Code and sign in to TTech.
claude mcp add --transport http ttech https://mcp.ttechapi.com/mcpOr install our Claude Code plugin from GitHub. It adds the same server and a YouTube research skill. Then type /mcp and sign in.
claude plugin marketplace add ttechapi/claude-plugins
claude plugin install ttech@ttechTo skip the question before each tool call, add "mcp__ttech" to permissions.allow in .claude/settings.json.
- In claude.ai or Claude Desktop, open Customize > Connectors, select + Add and Add custom connector.
- Paste this URL and continue:
https://mcp.ttechapi.com/mcp- Select Connect and sign in with your TTech account.
Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project). Then open Cursor's MCP settings and connect TTech to sign in.
{
"mcpServers": {
"ttech": {
"url": "https://mcp.ttechapi.com/mcp"
}
}
}Add the server, then sign in through the browser.
codex mcp add ttech --url https://mcp.ttechapi.com/mcp
codex mcp login ttech- In ChatGPT on the web, open Plugins, select + and Add custom MCP server (on plans that allow custom MCP servers).
- Paste this URL and choose OAuth:
https://mcp.ttechapi.com/mcp- Sign in with your TTech account and review the tools.
Add this to .vscode/mcp.json, then start the server and sign in.
{
"servers": {
"ttech": {
"type": "http",
"url": "https://mcp.ttechapi.com/mcp"
}
}
}More on MCP and every client: AI agents.
Brief for any LLM
Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /stock-market-data-api.md.
Good to know
- Every call costs 1 credit, whatever its parameters.
- Prices are as Yahoo has them: quoteSourceName and exchangeDataDelayedBy say whether a price is real-time or delayed.
- Intraday history: 1m for about 7 days, 2m to 90m for about 60 days, 1h for about 2 years.
- An answer over about 5 MB is refused; ask for a shorter range or a larger interval.
- Errors from our side (5xx) are not billed.
FAQ
Is this the official Yahoo Finance API?
No. Yahoo has no official public API. This independent API returns Yahoo Finance's public data and is not affiliated with Yahoo.
Which markets are covered?
Whatever Yahoo Finance covers: US and international stocks, ETFs, funds, indices, crypto, currencies, futures and options.
Does it work for Indian stocks on the NSE and BSE?
Yes. Add .NS for the NSE or .BO for the BSE, such as RELIANCE.NS or TCS.BO; the Nifty 50 is ^NSEI and the Sensex is ^BSESN. Quotes, price history, financials and search work for them, with prices in INR. Their prices are delayed by 15 minutes.
Is it investment advice?
No. The data is for information only.
How much does a call cost?
Each call costs 1 credit. The Free plan gives 300 free credits once, valid for 1 month, with no credit card. Paid plans start at $14.99/month.
How fast can I call it?
Free allows 5 calls a second, Build 10, Grow 20 and Scale 50. Custom plans have their own limits.