Test network mode — top-ups use test tokens and have no real value.

Market price API · JSON · REST · WebSocket

MarketAPI: the affordable ticker price API with a free tier

Ticker price API for developers. Live and historical prices for forex, metals, indices, stocks and crypto, delivered as clean JSON. Try it right here, with no signup needed.

1000 free credits on sign-up · then $1 per 1,000 credits · no subscription

Try the market price API in your browser

Search for a ticker, then run it in the shell. Every answer is the real JSON the API returns, along with the matching curl command.

api-shell — marketapi
Welcome to the MarketAPI API shell. Type help, or try price EURUSD.
$
  1. Find a ticker. Search above, or run symbols gold.
  2. Get the latest price. Run price EURUSD,XAUUSD to see bid, ask, time and status.
  3. Check the market. status EURUSD tells you whether the market is LIVE or MARKET_CLOSED.
  4. Copy the curl. Each result shows the exact request to use in your own code.
  5. Go further. Create a free account for your own API key, history, OHLC bars and streaming.

Why developers choose this price API

Real-time and historical

Latest bid and ask, tick history and OHLC bars from one minute to one day, all behind one consistent market price API.

Honest freshness

Every quote includes a status: LIVE, STALE or MARKET_CLOSED. An old weekend price is never presented as live.

Pay per use, no subscription

Prepaid credits, with free credits used first. You are only charged for data you actually receive, so it is an affordable market API for side projects and businesses alike.

Developer friendly

Plain REST and JSON, decimal-string prices, UTC timestamps, idempotent retries, WebSocket streaming, and clear error messages.

Secure by default

Hashed API keys with scopes and IP allow-lists, two-factor sign-in, and an append-only billing ledger.

Pay with popular wallets

USDT and USDC on Ethereum, BNB Chain, Arbitrum, Optimism, Base and Solana. Scan a QR code with MetaMask, Trust Wallet, Phantom or Coinbase Wallet.

A modern alternative to Yahoo Finance and yfinance

Scrapers break when a web page changes, and unofficial endpoints can disappear overnight. MarketAPI is a documented stock market API with stable versioned endpoints, API keys, rate limits you can see, and predictable JSON, so your dashboards, bots and spreadsheets keep working.

Compare with Yahoo Finance → · Migrate from yfinance →

Free stock market API tier

Create an account and receive 1000 free credits. That's enough to build and test your integration before you pay anything.

How the free tier works →

Simple, transparent pricing

Latest price1 creditper ticker returned
History1 creditper 1000 rows
Streaming1 creditper ticker per minute
Price$1per 1,000 credits

See full pricing

AI ASSISTANT
Ask AI to explain MarketAPI
Get a simple explanation from the AI assistant you already use.
Want to understand MarketAPI?Ask ChatGPT, Gemini, Grok, Perplexity or Claude.
QUESTION Explain MarketAPI in simple terms: what it does, who it's for, and how to start.
Choose your AI
No account with MarketAPI is required.

Frequently asked questions

Is there a free market price API?

Yes. New accounts receive 1000 free credits after confirming their email.

Which markets are covered?

Forex, metals, indices, energies, stock CFDs and crypto, as offered by our data feed. Download the ticker list.

What does the price API return?

JSON with decimal-string prices, UTC timestamps and a freshness status for every quote.

Is it an alternative to Yahoo Finance or yfinance?

Yes. It is a documented REST API with API keys and usage-based pricing, not a scraper. It is not affiliated with Yahoo.

How do I pay?

Top up with USDT or USDC on Ethereum, BNB Smart Chain, Arbitrum, Optimism, Base or Solana. Free credits are always used first.