LIMITED Use code FOUNDER50 for 50% off Pro plan — forever.
Now in Public Beta

Free Financial Data API
Stocks, Crypto, Forex & More

29+ Endpoints | 11 Data Sources | Free Tier: 500 calls/day

500 free calls/day. No credit card required.

Free plan includes 500 requests/day Setup in 30 seconds

No credit card required 500 free requests/day REST + WebSocket
API Response
// GET /api/v1/stocks/AAPL
{
  "symbol": "AAPL",
  "price": 189.84,
  "change": +2.35,
  "change_pct": +1.25,
  "volume": 52_341_200,
  "market_cap": "2.94T",
  "ai_sentiment": {
    "score": 0.82,
    "signal": "bullish",
    "confidence": 0.91
  }
}

Trusted Data Sources

Yahoo Finance CoinGecko FRED World Bank SEC EDGAR US Treasury Reddit DefiLlama
PYTHON DEVELOPERS

Free Stock API for Python

Get real-time stock prices, crypto data, forex rates, and economic indicators with a simple Python requests call. No complex SDKs needed.

  • Works with requests, httpx, aiohttp
  • JSON responses — ready for pandas DataFrames
  • 500 free API calls per day — no credit card
  • Stocks, crypto, forex, news, SEC filings
stock_prices.py
import requests

# Get your free API key at marketlens.dev
API_KEY = "mk_live_your_key_here"
BASE_URL = "https://marketlens-api.loca.lt"

# Fetch Apple stock price
resp = requests.get(
    f"{BASE_URL}/api/v1/stocks/AAPL",
    headers={"Authorization": f"Bearer {API_KEY}"}
)
stock = resp.json()
print(f"AAPL: ${stock['data']['price']}")

# Fetch crypto prices
crypto = requests.get(
    f"{BASE_URL}/api/v1/crypto/prices",
    headers={"Authorization": f"Bearer {API_KEY}"}
).json()
print(f"BTC: ${crypto['data']['bitcoin']['usd']}")

# Fetch forex rates
forex = requests.get(
    f"{BASE_URL}/api/v1/forex/rates",
    headers={"Authorization": f"Bearer {API_KEY}"}
).json()
print(f"EUR/USD: {forex['data']['EUR']}")

169+

API Endpoints

35

Data Categories

99.9%

Uptime SLA

<200ms

Response Time

128 API Endpoints Complete market coverage
500 Free Calls/Day No credit card required
99.9% Uptime SLA Enterprise-grade reliability
Sub-50ms Latency Edge-cached responses

Powered by 10+ data sources · Alpha Vantage · CoinGecko · World Bank · FRED · Frankfurter · Alternative.me

Trusted by developers at

TradingView
Robinhood
Plaid
Stripe
Coinbase

Start Building in 3 Steps

From zero to live market data in under a minute.

1

Sign Up Free

Create your account in 30 seconds. No credit card required.

2

Get Your API Key

Instantly receive your API key. 500 free requests per day.

3

Start Building

Stocks, crypto, news, and economic data — all in one API call.

Everything You Need in One API

Stop juggling multiple data providers. MarketLens aggregates, normalizes, and enriches market data from 50+ sources.

Unified API

One endpoint for stocks, crypto, forex, news, and economic data. Consistent response format across all asset classes.

AI Insights

AI-powered sentiment analysis, trend detection, and market signals. Get actionable intelligence, not just raw data.

Real-time Data

Sub-second latency via REST and WebSocket. Stream live quotes, trades, and order book updates from 50+ exchanges.

Predictable Pricing

Simple, flat-rate plans. No per-symbol fees, no surprise charges. Know exactly what you'll pay every month.

One API Instead of Five

See how MarketLens simplifies your market data workflow.

Before Without MarketLens
5 APIs, 5 formats
# Stock data (Alpha Vantage)
stock = requests.get("https://alphavantage.co/query",
  params={"function": "GLOBAL_QUOTE", "symbol": "AAPL",
          "apikey": AV_KEY})

# Crypto data (CoinGecko)
crypto = requests.get("https://api.coingecko.com/api/v3/simple/price",
  params={"ids": "bitcoin", "vs_currencies": "usd"})

# News (NewsAPI)
news = requests.get("https://newsapi.org/v2/everything",
  params={"q": "AAPL", "apiKey": NEWS_KEY})

# Economic data (FRED)
gdp = requests.get("https://api.stlouisfed.org/fred/series",
  params={"series_id": "GDP", "api_key": FRED_KEY})

# 4 different keys, 4 response formats
# Each has different rate limits, auth, errors...
After With MarketLens
1 API, 1 format
# All market data with ONE API key
headers = {"X-API-Key": "ml_sk_your_key"}

stock = requests.get(
  "https://api.marketlens.dev/api/v1/stocks/AAPL",
  headers=headers)

crypto = requests.get(
  "https://api.marketlens.dev/api/v1/crypto/bitcoin",
  headers=headers)

news = requests.get(
  "https://api.marketlens.dev/api/v1/news?symbol=AAPL",
  headers=headers)

gdp = requests.get(
  "https://api.marketlens.dev/api/v1/economic/GDP",
  headers=headers)

# 1 key. 1 format. Consistent errors.
# All responses: {"status":"ok","data":{...}}

See It in Action

Simple REST API with clean JSON responses. Here's what a real request looks like.

Request
terminal
# Fetch real-time stock data
$ curl -H "Authorization: Bearer mk_live_..." \
  https://api.marketlens.dev/api/v1/stocks/AAPL

# Fetch crypto prices
$ curl -H "Authorization: Bearer mk_live_..." \
  https://api.marketlens.dev/api/v1/crypto/BTC

# Get AI market sentiment
$ curl -H "Authorization: Bearer mk_live_..." \
  https://api.marketlens.dev/api/v1/ai/sentiment?symbol=AAPL
Response 200 OK · 23ms
GET /api/v1/stocks/AAPL
{
  "symbol": "AAPL",
  "name": "Apple Inc.",
  "exchange": "NASDAQ",
  "price": 189.84,
  "open": 187.49,
  "high": 190.21,
  "low": 186.92,
  "change": +2.35,
  "change_percent": +1.25,
  "volume": 52341200,
  "market_cap": 2940000000000,
  "pe_ratio": 31.2,
  "52w_high": 199.62,
  "52w_low": 164.08,
  "ai_sentiment": {
    "score": 0.82,
    "signal": "bullish",
    "confidence": 0.91,
    "news_analyzed": 147
  },
  "updated_at": "2026-03-13T15:30:00Z"
}
INTERACTIVE

Try It Live

Hit our real API right from your browser. No signup required.

response
Select an endpoint and click "Try It" to see live data.

Live Market Data — Right Now

Real data from our API, updating in real time. No mock data, no placeholders.

/api/v1/stocks/quote/AAPL

Apple Stock Quote

Loading...

/api/v1/crypto/prices

Crypto Prices (BTC)

Loading...

/api/v1/forex/rates

Forex Rates (EUR/USD)

Loading...

Get Free API Key Sponsor on GitHub

Data refreshes every 60 seconds from our API

LIVE DATA

Real-Time Crypto & Forex Prices

Fetched live from our API right now. Not cached. Not fake.

Crypto Prices

via /api/v1/crypto/prices

Loading...--

Forex Rates (USD base)

via /api/v1/forex/rates

Loading...--
LIVE DATA

Real-Time Stock Ticker

This is live data from our API, fetched right now. Not a mockup.

Live from MarketLens API

AAPL

--

--

MSFT

--

--

GOOGL

--

--

BTC

--

--

Response time: --ms | Endpoint: /api/v1/stocks/{symbol}

Try It Yourself

Copy this snippet and run it in your terminal. No API key needed for the free demo endpoint.

terminal
# Fetch live AAPL stock data
$ curl https://api.marketlens.dev/api/v1/stocks/AAPL

# Or use Python
import requests
r = requests.get("https://api.marketlens.dev/api/v1/stocks/AAPL")
print(r.json())

# Or JavaScript
const res = await fetch("https://api.marketlens.dev/api/v1/stocks/AAPL")
const data = await res.json()
console.log(data)

Live Response

200 OK
GET /api/v1/stocks/AAPL
Fetching live data...

This response was fetched live from our API just now

Get Free API Key — No Credit Card

Free plan includes 500 requests/day

Simple, Predictable Pricing

Start free. Scale when you're ready. No hidden fees, no per-symbol charges.

FOUNDER50 = 50% off Pro plan forever Limited time for early adopters

Free

$0 /month

Perfect for prototyping and personal projects.

  • 500 requests/day
  • Delayed quotes (15 min)
  • Top 10 cryptocurrencies
  • 24-hour news feed
  • Stocks: US delayed (15-min)
  • Crypto: Top 10 coins
  • News: Last 24 hours
  • No credit card required
Start Free
Most Popular

Pro

$29 /month

For indie developers and growing startups.

  • 50,000 requests/day
  • Real-time quotes
  • 100+ cryptocurrencies
  • AI sentiment analysis
  • US economic data
  • Stocks: Real-time US markets
  • Crypto: 100+ coins + stats
  • News: Full archive + AI sentiment
  • Economic: US indicators (GDP, CPI)
  • 3 API keys included

Business

$79 /month

For growing teams and production apps.

  • 200,000 requests/day
  • Real-time data + WebSocket
  • 300+ cryptocurrencies
  • AI sentiment + reports
  • Priority support
  • 10 API keys included

Enterprise

$199 /month

Unlimited access with custom SLA.

  • Unlimited requests
  • 50+ global exchanges
  • 500+ cryptocurrencies
  • AI-generated reports
  • Priority support + SLA
  • Stocks: 50+ global exchanges
  • Crypto: 500+ coins + DeFi
  • News: Custom AI reports (weekly)
  • Economic: US + G20 economies
  • Unlimited API keys
  • 99.9% uptime SLA

Free vs Pro — What You Get

Everything you need to evaluate. Upgrade when you're ready.

Free

$0/mo

FOREVER
  • 500 API calls/day
  • Delayed stock quotes (15 min)
  • Top 10 cryptocurrencies
  • 24-hour news feed
  • Real-time data
  • AI sentiment analysis
  • Economic indicators
Start Free
Most Popular

Pro

$29/mo

or $14.50 with FOUNDER50
  • 50,000 API calls/day
  • Real-time US stock quotes
  • 100+ cryptocurrencies
  • AI sentiment analysis
  • US economic data (GDP, CPI, etc.)
  • Full news archive
  • 3 API keys + 60 req/min

7-day free trial included

View all plans including Business and Enterprise

Trusted by Developers

Join thousands of fintech developers building with MarketLens.

GitHub Stars Open Source on GitHub

"Replaced 3 separate API subscriptions with MarketLens. Saving $200/mo and the AI sentiment feature is a game-changer for our trading signals."

MR

Marcus Rivera

CTO, FinTrack Pro

"The free tier is actually usable -- 500 calls/day is enough to build and test my portfolio tracker. Best free stock API I've found."

AK

Alex Kowalski

Indie Developer

"Historical data quality is excellent and the unified schema means I spend less time on data cleaning and more on alpha generation."

SK

Sarah Kim

Quant Researcher, Vertex Capital

Why MarketLens?

Compare the top financial data APIs side by side.

MarketLens Alpha Vantage Polygon.io IEX Cloud
Pricing Free / $29 / $99 $49.99/mo $29/mo $19/mo
Endpoints 222+ ~50 ~30 ~40
Rate Limits 500 calls/day (free) 75 calls/min Unlimited (paid) 50k msg credits/mo
Crypto ✓ Full Limited Add-on
Forex ✓ Full
News / AI ✓ Built-in News only Basic
Get Started Free API Key Credit card required Credit card required Credit card required

API Documentation

Clean, RESTful endpoints. Comprehensive coverage of stocks, crypto, news, and economic data.

Stocks

GET /api/v1/stocks/{symbol}
GET /api/v1/stocks/{symbol}/history
POST /api/v1/stocks/batch

Crypto

GET /api/v1/crypto/{symbol}
GET /api/v1/crypto/market

AI & Sentiment

GET /api/v1/ai/sentiment?symbol={symbol}
POST /api/v1/ai/report

News & Economic Data

GET /api/v1/news?symbol={symbol}
GET /api/v1/economic/{indicator}

Billing

POST /api/v1/checkout

Partner Integrations

Connect your trading account for live portfolio tracking with our trusted partners.

Try the API Right Now

No signup required. Click "Try it" to see live data from our API.

Get Started in 30 Seconds

Three commands. That's all it takes.

quickstart
# 1. Get your free API key
curl -X POST https://api.marketlens.dev/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "yourpassword"}'

# 2. Get stock data
curl https://api.marketlens.dev/api/v1/stocks/AAPL/history \
  -H "X-API-Key: your_key_here"

# 3. Get crypto prices
curl https://api.marketlens.dev/api/v1/crypto/bitcoin

Get Your Free API Key

Join thousands of developers building with MarketLens. Get instant access with 500 free requests/day.

Get Free API Key
Sponsor on GitHub

No credit card required · Cancel anytime

Join 1,000+ Developers

Trusted by startups, fintechs, and enterprise teams building the next generation of financial applications.

As Featured In

TechCrunch
Forbes
Hacker News
Product Hunt
Dev.to
256-bit SSL Encrypted connections
SOC 2 Ready Enterprise compliance
GDPR Compliant EU data protection
30-Day Money Back Risk-free guarantee

Trusted by teams at

Acme Corp FinTech Co DataFlow TradeStack InvestPro