NOTE: This guide uses the V2 API, which is the current and recommended version. If you are migrating from V1, key differences include: HTTPS by default on all plans, V2 endpoint paths (/v2/eod/symbols instead of /v1/eod?symbols=), and expanded data coverage including bonds, ETFs, commodities, and company fundamentals. The V1 API remains available but will not receive new features.
All registered users, whether on a free or paid plan, can use our Quickstart Guide to explore the full range of API functionalities with just one click.
- Existing users: Access the Quickstart Guide below.
- New users: Create an account and get started immediately.
Get onboarded with the Marketstack API and start retrieving stock market data in just a few minutes!
Step 1: Get Your API Access Key
Sign up for a free or paid plan to start using the Marketstack API. Once registered, your personal API Access Key will be available in the Dashboard. This key is required to authenticate all API requests—keep it secure. You can reset it anytime from your Account Dashboard.
Step 2: API Endpoints
Marketstack offers several endpoints:
End-of-Day Data: Retrieve daily OHLCV data with adjusted prices, by ticker or exchange.Intraday Data: Retrieve real-time and intraday quotes at intervals from 1-minute to 24-hour.Tickers: Search, list, and look up detailed information for 30,000+ stock ticker symbols.Exchanges: Look up information on 2,700+ global stock exchanges by name or MIC code.Corporate actions: Retrieve stock split and dividend history for any supported ticker.Indices: List and look up 750+ stock market indices worldwide.Bonds & ETFs: Retrieve bond information and ETF holdings data.Commodities: Get real-time and historical commodity pricing.Company Data: Access analyst ratings, SEC filings, and company fundamentals.Reference Data: Look up supported currencies and timezones.
Base URL: All API requests start with:
https://api.apilayer.net/marketstack/v2/Step 3: Make API Requests
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=2025-01-01&date_to=2025-12-31&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=2025-06-01&date_to=2025-06-05&limit=100&offset=0Tickers Endpoint
https://api.apilayer.net/marketstack/v2/tickers/AAPL?access_key=YOUR_ACCESS_KEY
// With optional parameters:
https://api.apilayer.net/marketstack/v2/tickers/AAPL?access_key=YOUR_ACCESS_KEY&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&search=XNAS&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=0More parameters are available for each endpoint. Refer to the API Documentation for full details.
Step 4: First API Call
We recommend starting with the End-of-Day Data endpoint, as it is the most common way to retrieve daily stock prices. Pass a ticker symbol in the URL path to get OHLCV data including adjusted prices:
curl "https://api.apilayer.net/marketstack/v2/tickers/AAPL/eod?access_key=YOUR_ACCESS_KEY&limit=5"
This returns the 5 most recent trading days for Apple (AAPL), including open, high, low, close, volume, and adjusted values. To query multiple tickers at once, use the Exchange EOD endpoint with a symbols parameter.
This is just the beginning of what the Marketstack API can do. For advanced integration guides and code examples, refer to the official API Documentation.
Support & Resources
- For any questions or issues, contact our support team.
- Explore commonly used API calls and examples to maximize your integration.