Marketstack

Operational

Real-Time Stock Market Data API · by APILayer

  • Finance
  • JSON
  • 170k+ tickers
  • 70+ exchanges
Get your API key

Free plan · 100 requests / month · no card

Overview

API info

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.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/marketstack/v2/eod?access_key=YOUR_ACCESS_KEY&symbols=AAPL"
Run it in the Playground

Example response

200 - OK
{
    "pagination": {
        "limit": 100,
        "offset": 0,
        "count": 1,
        "total": 1
    },
    "data": [
        {
            "symbol": "AAPL",
            "open": "...",
            "high": "...",
            "low": "...",
            "close": "...",
            "volume": "...",
            "date": "..."
        }
    ]
}

Features

  • Enterprise-grade EDGAR data

    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.

  • Real-time & intraday updates

    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.

  • Global coverage

    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.

  • Historical data

    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

Flexible plan for every stage of growth

Start free. Upgrade when you go live.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get free API key

100 requests / month

Includes:

  • HTTPS Encryption
  • End-of-Day stock data
  • Historical data availability: 1 year
  • Stock ticker information

+ 3 more

See all 19 features

Starter

For your first live product

$9.99/ month

Billed monthly

Then $0.003996 per extra request, up to 20,000 extra a month

Subscribe now

10,000 requests / month

Everything in Free, plus:

  • Historical data availability: 10 years
  • Intraday data (US)
  • Stock market indices
  • Bonds data

+ 3 more

See all 19 features
Most popular

Professional

For growing traffic

$49.99/ month

Billed monthly

Then $0.0019996 per extra request, up to 200,000 extra a month

Subscribe now

100,000 requests / month

Everything in Starter, plus:

  • Historical data availability: 15+ years
  • Real-time stock prices
  • Commodity prices
  • 10× the requests of Starter

+ 1 more

See all 19 features

Enterprise

For high volume

$149.99/ month

Billed monthly

Then $0.00119992 per extra request, up to 1,000,000 extra a month

Subscribe now

500,000 requests / month

Everything in Professional, plus:

  • Company ratings
  • Company financial statements
  • Company details / facts
  • 5× the requests of Professional

+ 1 more

See all 19 features

Custom

Need more? Contact sales for custom needs.

Contact us

Compare all features

19 featuresFree$0Get free keyStarter$9.99/moSubscribeProfessional$49.99/moSubscribeEnterprise$149.99/moSubscribe
HTTPS Encryption
End-of-Day stock data
Historical data availability1 year10 years15+ years15+ 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 limitNone$0.003996$0.0019996$0.00119992

Playground

Try the API

Build a request in your browser and see the response it returns.

GET

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add Marketstack to a project.

  1. 1Get an API key

    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).

  2. 2Keep the key out of code

    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.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/marketstack/v2
    Auth
    access_key query parameter
    Formats
    JSON
    Endpoints
    • /eod End-of-day data
    • /intraday Intraday data
    Shell
    curl "https://api.apilayer.net/marketstack/v2/eod?access_key=$APILAYER_ACCESS_KEY&symbols=AAPL"

    The API info tab shows the response this request returns.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100HTTPS Encryption, End-of-Day stock data, Historical data availability: 1 year, Stock ticker information, Stock exchanges info, Splits & dividends data, Currencies & timezones
    Starter10,000Historical data availability: 10 years, Intraday data (US), Stock market indices, Bonds data, ETF holdings data, Commercial use allowed, Standard support included
    Professional100,000Historical data availability: 15+ years, Real-time stock prices, Commodity prices
    Enterprise500,000Company ratings, Company financial statements, Company details / facts

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

Need clarity?

Here are the answers you might be seeking

Data & features

01.What kind of market data can I access with Marketstack?

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.)

02.Is the market data accurate and reliable for financial applications?

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.

03.What is marketstack?

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.

04.How does Marketstack ensure the accuracy and reliability of its market data?

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%.

05.Does Marketstack offer WebSocket or streaming APIs for continuous real-time updates?

The Marketstack API is a REST API and does not offer WebSocket or streaming APIs.

06.Where is the data coming from?

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.

07.What happens if I exceed my API Request volume?

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.

08.What is the API's uptime?

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?

09.How can I integrate the Marketstack API with my existing trading or analytics platform?

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.

10.What data sources does Marketstack use for its stock market information?

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.

11.Can I use the Marketstack API for algorithmic or automated trading systems?

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.

12.What stock exchanges and markets are covered by Marketstack’s data feeds?

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.

13.How can I retrieve intraday price data for a specific stock using the API?

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.

14.Is there a data limit or request quota for different Marketstack pricing plans?

Yes, each Marketstack pricing plan comes with a specific monthly API request quota.

15.Can Marketstack be integrated with data visualization tools like Power BI, Tableau, or Excel?

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.

API access

01.What programming languages are supported for Marketstack API integration?

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.

02.How do I handle API authentication and secure my access key?

API authentication is handled using a unique access key that must be appended to the API endpoint URL.

Plans & pricing

01.Is there a free plan available for Marketstack?

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.

02.How does pricing scale as my usage grows?

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.

03.Can I also pay yearly?

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.

Overages

01.How extensive is Marketstack’s global market coverage?

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.

02.What is an overage?

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.

03.Why does APILayer have overage fees?

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.

04.How do I know if I will be charged for overages?

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.

05.What if I consistently have more API calls than my plan allows?

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