Free
For testing and side projects
$0forever
No credit card
No overage charges
100 requests / month
Includes:
- HTTPS Encryption
- End-of-Day stock data
- Historical data availability: 1 year
- Stock ticker information
+ 3 more
See all 19 featuresReal-Time Stock Market Data API · by APILayer
Free plan · 100 requests / month · no card
Overview
Marketstack is a simple, powerful, and scalable REST API for real-time, intraday, and historical stock market data. Used by thousands of developers, it delivers accurate data for over 170,000 stock tickers from 70 global exchanges in a lightweight JSON format.
curl --request GET \
--url "https://api.apilayer.net/marketstack/v2/eod?access_key=YOUR_ACCESS_KEY&symbols=AAPL"
{
"pagination": {
"limit": 100,
"offset": 0,
"count": 1,
"total": 1
},
"data": [
{
"symbol": "AAPL",
"open": "...",
"high": "...",
"low": "...",
"close": "...",
"volume": "...",
"date": "..."
}
]
}Fetch company filings with dedicated EDGAR endpoints to access SEC documents in real-time. This allows you to power financial research, compliance tools, and investment platforms with official government filings.
Obtain stock data up to the minute market data for over 170,000 tickers, ensuring your application always displays the most current market value. The API supports real-time updates and intraday quotes from major exchanges like NASDAQ and NYSE.
Access a massive database of 170,000+ stock tickers across 70 global stock exchanges, including the London Stock Exchange, Tokyo Stock Exchange, and more. Marketstack also covers over 75 different market indices and supports multiple currencies and timezones.
Retrieve 30+ years of accurate historical market data to back-test trading strategies or visualize long-term trends. The API is built on a reliable cloud infrastructure capable of handling millions of requests per day with 99.9% uptime.
Pricing
Start free. Upgrade when you go live.
For testing and side projects
$0forever
No credit card
No overage charges
100 requests / month
Includes:
+ 3 more
See all 19 featuresFor your first live product
$9.99/ month
Billed monthly
Then $0.003996 per extra request, up to 20,000 extra a month
10,000 requests / month
Everything in Free, plus:
+ 3 more
See all 19 featuresFor growing traffic
$49.99/ month
Billed monthly
Then $0.0019996 per extra request, up to 200,000 extra a month
100,000 requests / month
Everything in Starter, plus:
+ 1 more
See all 19 featuresFor high volume
$149.99/ month
Billed monthly
Then $0.00119992 per extra request, up to 1,000,000 extra a month
500,000 requests / month
Everything in Professional, plus:
+ 1 more
See all 19 featuresNeed more? Contact sales for custom needs.
| 19 features | Free$0Get free key | Starter$9.99/moSubscribe | Professional$49.99/moSubscribe | Enterprise$149.99/moSubscribe |
|---|---|---|---|---|
| HTTPS Encryption | ||||
| End-of-Day stock data | ||||
| Historical data availability | 1 year | 10 years | 15+ years | 15+ years |
| Stock ticker information | ||||
| Stock exchanges info | ||||
| Splits & dividends data | ||||
| Currencies & timezones | ||||
| Intraday data (US) | – | |||
| Real-time stock prices | – | – | ||
| Stock market indices | – | |||
| Bonds data | – | |||
| ETF holdings data | – | |||
| Commercial use allowed | – | |||
| Standard support included | – | |||
| Commodity prices | – | – | ||
| Company ratings | – | – | – | |
| Company financial statements | – | – | – | |
| Company details / facts | – | – | – | |
| Custom volume available | – | – | – | – |
| Price per extra request after the monthly limit | None | $0.003996 | $0.0019996 | $0.00119992 |
Playground
Build a request in your browser and see the response it returns.
Agents
Steps for AI coding agents that add Marketstack to a project.
A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Marketstack. The Free plan includes 100 requests / month and needs no credit card.
Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).
Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.
Call Marketstack from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.
# add .env to .gitignore
APILAYER_ACCESS_KEY=your_api_keyhttps://api.apilayer.net/marketstack/v2access_key query parameter/eod End-of-day data/intraday Intraday datacurl "https://api.apilayer.net/marketstack/v2/eod?access_key=$APILAYER_ACCESS_KEY&symbols=AAPL"The API info tab shows the response this request returns.
Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.
| Plan | Requests / month | Adds |
|---|---|---|
| Free | 100 | HTTPS Encryption, End-of-Day stock data, Historical data availability: 1 year, Stock ticker information, Stock exchanges info, Splits & dividends data, Currencies & timezones |
| Starter | 10,000 | Historical data availability: 10 years, Intraday data (US), Stock market indices, Bonds data, ETF holdings data, Commercial use allowed, Standard support included |
| Professional | 100,000 | Historical data availability: 15+ years, Real-time stock prices, Commodity prices |
| Enterprise | 500,000 | Company ratings, Company financial statements, Company details / facts |
Prices are in the Pricing tab.
FAQs
Here are the answers you might be seeking
You can access real-time stock prices, intraday market data, and end-of-day (EOD) data. The API also provides 30+ years of historical data, 750+ market indices, and official EDGAR company filings (10-K, 8-K, etc.)
Yes, data is sourced from licensed, high-authority financial providers and banks to ensure precision. The API runs on a scalable cloud infrastructure with nearly 100% uptime, ensuring reliable delivery for commercial applications.
The marketstack API was built to offer a stock market data solution and make it accessible to both developers and companies around the world. At this time, the API supports 170,000+ stock tickers from 70 global stock exchanges. Usingt the marketstack REST API you will be able to obtain end-of-day data, intraday data as well as historical market data for the last 30 years.
Marketstack ensures data accuracy by sourcing its information from multiple high-authority and licensed market data providers. The service is built on a scalable cloud infrastructure with an uptime of nearly 100%.
The Marketstack API is a REST API and does not offer WebSocket or streaming APIs.
Stock market data provided by the marketstack API is licensed and sourced from multiple high-authority market data providers around the world. Stock market data from United States exchanges is licensed and sourced from Tiingo, Inc. out of New York City, USA.
Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly.
The marketstack API's system status is kept track of 24/7 by the apilayer team. We keep the amount of outages or service disruptions at a minimum and are proud to have an uptime of nearly 100%, calculated based on the last 365 days. Interested in seeing the details?
The Marketstack API is a simple REST API that returns data in a lightweight JSON format. This universal format allows for easy integration into any platform, application, or website that can make HTTP GET requests.
Marketstack sources its data from multiple licensed, high-authority market data providers around the world. For U.S. exchanges, the data is specifically sourced and licensed from a reliable, enterprise-grade financial markets API.
Yes, the Marketstack API is designed to be used for algorithmic and automated trading systems. The availability of real-time, intraday, and historical data, combined with a scalable infrastructure, makes it a suitable tool for backtesting and executing automated strategies.
Marketstack covers over 2700+ stock exchanges, providing data for more than 30000+ Stock tickers. This includes major exchanges like the NASDAQ and NYSE, as well as a wide range of international markets.
You can retrieve intraday price data by using the dedicated intraday endpoint and specifying the desired stock symbol(s). The API allows you to set data frequency intervals for your request.
Yes, each Marketstack pricing plan comes with a specific monthly API request quota.
Yes, Marketstack's API can be integrated with data visualization tools. Services like FusionCharts can be used to seamlessly sync data from the API into platforms such as Excel, which can then be used with tools like Power BI or Tableau.
Since the Marketstack API is a standard RESTful service, it can be integrated with any programming language that can handle HTTP requests. The documentation provides code examples in various languages, including Python, PHP, and Node.
API authentication is handled using a unique access key that must be appended to the API endpoint URL.
Yes, Marketstack offers a free plan that includes 100 API requests per month. It provides access to end-of-day stock data, 1 year of historical history, and full exchange information with HTTPS encryption.
Paid plans start at $8.99/mo for 10,000 requests and scale up to the Business plan with 500,000 monthly requests. Higher-tier plans unlock real-time updates, extended historical data (up to 30+ years), and commercial use rights. You can view pricing features here.
Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.
Marketstack covers over 170,000 stock tickers across 70+ global exchanges, including NASDAQ and NYSE. It also provides data for 50+ countries and over 170 world currencies.
An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.
Prices for additional API calls will vary based on your plan.
Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.
When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.
If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base.
Still have a question?
Contact support