Marketstack
Status: Live
The Marketstack API provides a comprehensive solution for accessing real-time, intraday, and historical stock market data. With support for over 30,000 stock tickers from more than 50 countries, the API allows users to retrieve extensive information about stock exchanges, commodities, currencies, and more.
Key Features
- Real-time Data: Access live stock prices and market data.
- Historical Data: Retrieve historical stock prices and market information for up to 15 years.
- Intraday Data: Get intraday market data with intervals as short as one minute.
- Comprehensive Coverage: Supports over 30,000 stock tickers and 2,700+ stock exchanges worldwide.
- Easy Integration: Simple RESTful API structure for easy integration into applications.
Examples
Get End-of-Day Data
GET https://api.apilayer.net/marketstack/v2/eod?access_key=YOUR_ACCESS_KEY&symbols=AAPL,MSFTThis request retrieves the end-of-day data for Apple (AAPL) and Microsoft (MSFT).
Get Intraday Data
GET https://api.apilayer.net/marketstack/v2/intraday?access_key=YOUR_ACCESS_KEY&symbols=AAPL&interval=1minThis request retrieves the most recent intraday data for Apple (AAPL) with a 1-minute interval.
Get Historical Data
GET https://api.apilayer.net/marketstack/v2/eod/2023-01-03?access_key=YOUR_ACCESS_KEY&symbols=AAPLThis request retrieves the end-of-day data for Apple (AAPL) on January 3, 2023.
Try simple requests for end-of-day, intraday, and static data endpoints. Append your access_key to any endpoint.
End-of-Day Data Endpoint
https://api.apilayer.net/marketstack/v2/eod?access_key=YOUR_ACCESS_KEY&symbols=AAPL
// With optional parameters:
https://api.apilayer.net/marketstack/v2/eod?access_key=YOUR_ACCESS_KEY&symbols=AAPL&sort=DESC&date_from=YYYY-MM-DD&date_to=YYYY-MM-DD&limit=100&offset=0Intraday Data Endpoint
https://api.apilayer.net/marketstack/v2/intraday?access_key=YOUR_ACCESS_KEY&symbols=AAPL
// With optional parameters:
https://api.apilayer.net/marketstack/v2/intraday?access_key=YOUR_ACCESS_KEY&symbols=AAPL&interval=1h&sort=DESC&date_from=YYYY-MM-DD&date_to=YYYY-MM-DD&limit=100&offset=0Tickers Endpoint
https://api.apilayer.net/marketstack/v2/tickerslist?access_key=YOUR_ACCESS_KEY
// With optional parameters:
https://api.apilayer.net/marketstack/v2/tickerslist?access_key=YOUR_ACCESS_KEY&exchange=&limit=100&offset=0Exchanges Endpoint
https://api.apilayer.net/marketstack/v2/exchanges?access_key=YOUR_ACCESS_KEY
// With optional parameters:
https://api.apilayer.net/marketstack/v2/exchanges?access_key=YOUR_ACCESS_KEY&limit=100&offset=0Currencies Endpoint
https://api.apilayer.net/marketstack/v2/currencies?access_key=YOUR_ACCESS_KEY
// With optional parameters:
https://api.apilayer.net/marketstack/v2/currencies?access_key=YOUR_ACCESS_KEY&limit=100&offset=0Timezones Endpoint
https://api.apilayer.net/marketstack/v2/timezones?access_key=YOUR_ACCESS_KEY
// With optional parameters:
https://api.apilayer.net/marketstack/v2/timezones?access_key=YOUR_ACCESS_KEY&limit=100&offset=0