Historical Stock Data API:
30+ Years of End‑of‑Day Prices
Daily OHLCV for stocks, ETFs, funds, indices, forex pairs and digital currencies across 60+ exchanges. JSON or CSV, adjusted close included, one API key for everything.
No credit card required. The free plan covers end-of-day prices, splits, dividends and delayed quotes — 20 calls a day, one year of history, every ticker.
Two ways to get this data
Response example — 7,900+ records
[
{
"date": "1995-01-03",
"open": 38.8752,
"high": 38.8752,
"low": 37.8784,
"close": 38.3712,
"adjusted_close": 0.2837,
"volume": 103868800
},
...
]https://eodhd.com/api/eod/AAPL.US?from=1995-01-01&fmt=json&api_token=demo
or
Show me daily Apple share prices from 1995
Identical either way — same endpoint, same data.
Choose a plan
- Flexibility: No long-term commitments, just a minimum of one month
- Instant access: Get your API key and instructions within seconds of subscribing
- Try It Free: Upgrade to advanced access when you’re ready
What you get
One API key, REST endpoints, JSON or CSV on every call. Full reference in the EOD API documentation.
End-of-day OHLCV
Open, high, low, close and volume for every trading day, back 30+ years on major exchanges. Stocks, ETFs, funds, indices and bonds.
GET /api/eod/{SYMBOL}Adjusted close, splits and dividends
Every response carries adjusted_close next to the raw close, so a backtest does not break on a split. The corporate actions behind it are included too, as their own history — for dividend series and total-return maths.
GET /api/div/{SYMBOL} · /api/splits/{SYMBOL}Whole exchange in one request
The Bulk API returns an entire exchange at once — the US market, 45,000+ active tickers, in 5 to 10 seconds. Included from this plan up; the only tier without it is Free.
GET /api/eod-bulk-last-day/{EXCHANGE}60+ exchanges, worldwide
US and international markets with local tickers and currencies. Query the supported list programmatically before you subscribe.
GET /api/exchanges-listForex and digital currencies
1,100+ forex pairs and major digital currencies share the same EOD endpoint and the same response shape as equities.
GET /api/eod/EURUSD.FOREXCSV without writing code
Add fmt=csv to any request, or use the Google Sheets and Excel add-ons and the Windows downloader — same API key, no programming.
GET /api/eod/{SYMBOL}?fmt=csvAsk your assistant, not the API
Connect the EODHD MCP server once and Claude, ChatGPT, Cursor or Windsurf query 30+ years of end-of-day history themselves — resolving tickers, pulling the series, applying splits and dividends. No client code, no CSV wrangling.
How it works in your assistant
You ask: Compare the total return of Apple and Microsoft from 2015 to 2025, adjusted for splits and dividends, and tell me the worst drawdown each one had.
Called eodhd-mcp 5 times
5 tool calls
- Finds the tickers
resolve_ticker“Apple” → AAPL.US, “Microsoft” → MSFT.US - Pulls Apple prices
get_historical_stock_pricesAAPL.US, 2015-01-01 → 2025-01-01 - Pulls Microsoft prices
get_historical_stock_pricesMSFT.US, same window - Pulls splits
get_historical_splitsboth tickers - Pulls dividends
get_historical_dividendsboth tickers
2,516 trading days each. The assistant does the arithmetic.
| Apple | Microsoft | |
|---|---|---|
| Total return | +928.5% | +949.7% |
| On raw close only | +129.0% | +801.4% |
| Worst drawdown | −38.5%Trough Jan 2019 | −37.1%Trough Nov 2022 |
| Splits | 4:1, Aug 2020 | none |
| Dividends | 40 payments, $7.67 | 40 payments, $20.76 |
Apple looks like a +129% decade if you use raw closing prices. The 4:1 split in August 2020 is why. Adjusted close is the difference between +129% and +928.5% — and it ships in every response.
Figures computed from this API over a closed window, 2015-01-02 to 2024-12-31. Reproducible with the public demo key.
Other things worth asking
- Which S&P 500 names are furthest below their 5‑year high?
- Chart LSE dividend yield since 2010
- Did this ticker ever gap more than 10% overnight?
Or use a prompt that ships with the server
analyze_stockcompare_stocksmarket_overview
Three bundled prompts chain the tools for you — fundamentals, price trend, support/resistance, indicators and news in one turn.
Connect to MCP in one line
Paste the URL into Claude Desktop, ChatGPT MCP Connector, Cursor or Windsurf.
v1 · API key
https://mcp.eodhd.com/v1/mcp?apikey=YOUR_API_KEYYour API key goes in the URL. For ChatGPT, Claude Code and other v1 clients.
v2 · OAuth 2.1
https://mcp.eodhd.com/v2/mcpNo API key in the URL — approve the OAuth consent. For Claude Desktop.
Build with EODHD
Not using an assistant? The same API key works from your code, your spreadsheet, or a client you generate yourself.
EODHD as a Claude Code plugin
Install the skills plugin and your agent knows the endpoints, parameters and ticker formats — no prompt engineering per request.
Claude Code
eodhd-claude-skillsOfficial clients
Maintained SDKs for Python, Node.js / TypeScript and C# / .NET. Install, pass your key, call the endpoint.
Python · Node.js · TypeScript · C# / .NET
All librariesGenerate a client for any language
A published OpenAPI 3.1 specification and a Postman collection. Generate a typed client for a language we do not ship an SDK for.
OpenAPI · Postman
API referencePrefer not to write code?
Use one of our ready-to-go integrations.
Not included in this plan
Everything above is EOD All World, $19.99 a month — historical end-of-day prices plus delayed live quotes. The datasets below are not part of it. Same API key and the same integration, so nothing is rebuilt when you move up — but each one needs a higher plan.
Intraday
1- and 5-minute candles when daily bars are too coarse.
GET /api/intraday/{SYMBOL}Real-time over WebSocket
Streaming prices rather than the 15‑minute delayed quotes your plan already includes.
wss://ws.eodhistoricaldata.com/ws/us?api_token=YOUR_API_KEYTechnical indicators
SMA, EMA, RSI, MACD and more computed server-side, so you do not pull a full history to get one number.
GET /api/technical/{SYMBOL}Screener
Filter the universe by 100+ criteria to decide which tickers are worth pulling history for.
GET /api/screenerFundamentals
Statements, ratios and earnings for the same tickers, so a price series can be screened on financials. Also in All-In-One.
GET /api/fundamentals/{SYMBOL}Trusted by people,
proven through success stories
We are proud to witness an incredible number of projects developed and launched with the assistance of the data we provide. This motivates us to continuously enhance our service.
Questions & Answers
Feel free to ask us anything related to our service & subscription plans in
live chat.
You'll only find real assistants on the other end.
Is there a free historical stock data API?
Can I download historical prices as CSV?
fmt=csv to the request. The same data is available through the Excel and Google Sheets add-ons and the Windows downloader if you would rather not write code.
How can I get EOD data if I don't know how to code?
Where do I find the adjusted close price?
adjusted_close field alongside open, high, low, close and volume. It is adjusted for splits and dividends.
Can I download data for a whole exchange in one request?
Which programming languages have an official SDK?
Can AI assistants query the data directly?
Which markets and instruments are covered?
How often is historical data updated?
What if I find an inaccuracy in the data?
Start with 30+ years of end-of-day data
Create a key, run one request, and see the response shape before you pay anything.