Historical Prices API (V1.0)

The Historical Prices API can be used to look up the Open, Close, High and Low price, as well as the volume of stock traded for a stock code within a particular date range. The API supports the downloading the entire historical data set we have on file for a stock, we index data for a stock with a start date of January 1st 1980.

API Version: 1.0

API Endpoint
Queries should be sent to the following API endpoint.

Accepted Parameters
The following parameters are accepted, all should be sent to the URL via a GET variable.

api_key Required Allows us to identify the request initiator.
stock Required The stock code/ticker for the stock to look up. (eg. AAPL for Apple, Inc.)
format Optional Format of returned data. Either CSV or JSON.
order Optional Order of returned data sorted by date. ASC for Ascending, DESC for Decending.
Optional The start and end dates to return data for. Supply dates in the format: YYYY-MM-DD

Example Request
A sample request URL to the Historical Data API.

Example Response
This is an example JSON response for the above example request.

As you'll notice from the above data, even though we requested a date range of 10 days, only 6 days are returned.

As trading doesn't happen on weekends, data for these days isn't recorded and is therefore not returned via API requests. This applies for all days that the markets are closed.

You'll need an API Key to use this API. If you have a Stocklytics developer account, go ahead and login to retrieve your API key. If you're not a registered developer, go ahead and sign up for free.
Sign Up

Company Data
Historical Prices
Intraday Historical Prices
Stock News
Stock Tweets

Current Price Widget
Stocklytics Button
Stock Graph Widget