Skip to main content
GET
Get historical stock price data

Overview

The Financial Datasets stock prices API returns historical end-of-day (EOD) prices for a stock ticker: open, high, low, close, and volume (OHLCV), by day, week, month, or year. It covers 15,000+ US tickers with 3+ years of history, updated at the end of each day. The prices come from Databento, our market data partner (data provenance). For the latest price, use the price snapshot endpoint. You can call it as a REST endpoint with an API key, or from Claude, ChatGPT, Cursor, and other AI apps through the MCP server, or pay per request with x402. Pricing starts at $20. The data is perfect for backtesting trading strategies, analyzing price patterns, rendering charts, and more. To get started, please create an account and grab your API key at financialdatasets.ai. You will use the API key to authenticate your API requests.

Coverage

Available Tickers

You can fetch a list of available tickers with a GET request to: https://api.financialdatasets.ai/prices/tickers/

Required Parameters

  • ticker — the stock ticker symbol (e.g., AAPL, NVDA)
  • interval — day, week, month, or year
  • start_date — start date in YYYY-MM-DD format
  • end_date — end date in YYYY-MM-DD format

Getting Started

There are only 3 steps for making a successful API call:
  1. Add your API key to the header of the request as X-API-KEY.
  2. Add the required query params: ticker, interval, start_date, and end_date.
  3. Execute the API request.

Example

Prices

Example Response

FAQ

How far back do the prices go?

3+ years.

Which intervals are available?

day, week, month, and year. Set interval together with start_date and end_date.

Where does the price data come from?

From Databento, our market data partner. Databento delivers real-time and historical market data direct from colocation sites.

Can an AI agent use this data?

Yes. Claude, ChatGPT, Cursor, and other MCP clients reach it through the Financial Datasets MCP server. An agent with a wallet can also pay per request with x402, with no account.

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Query Parameters

ticker
string
required

The stock ticker symbol (e.g. AAPL, MSFT).

interval
enum<string>
required

The time interval for the price data.

Available options:
day,
week,
month,
year
start_date
string<date>
required

The start date for the price data (format: YYYY-MM-DD).

end_date
string<date>
required

The end date for the price data (format: YYYY-MM-DD).

cursor
string

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

Response

Price data response

ticker
string

The ticker symbol.

prices
object[]
next_page_url
string

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 100 records.