Get historical stock price data
Stock Prices
Historical
Get historical stock prices for any US ticker. Daily, weekly, monthly, or yearly OHLCV data.
GET
Get historical stock price data
Overview
The Prices API lets you pull end-of-day (EOD) historical prices for a given ticker like Apple, Microsoft, and more. You can get prices by the day, week, month, or year going back 3 years. 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.Available Tickers
You can fetch a list of available tickers with aGET request to:
https://api.financialdatasets.ai/prices/tickers/
Required Parameters
ticker— the stock ticker symbol (e.g., AAPL, NVDA)interval—day,week,month, oryearstart_date— start date in YYYY-MM-DD formatend_date— end date in YYYY-MM-DD format
Getting Started
There are only 3 steps for making a successful API call:- Add your API key to the header of the request as
X-API-KEY. - Add the required query params:
ticker,interval,start_date, andend_date. - Execute the API request.
Example
Prices
Example Response
Authorizations
API key for authentication.
Query Parameters
The stock ticker symbol (e.g. AAPL, MSFT).
The time interval for the price data.
Available options:
day, week, month, year The start date for the price data (format: YYYY-MM-DD).
The end date for the price data (format: YYYY-MM-DD).