Free Crypto Price API — Real-Time Bitcoin, Ethereum & 500+ Token Prices
Need real-time cryptocurrency prices for your app, bot, or dashboard? Here are three free APIs you can start using in 30 seconds — no signup, no API key, just a single curl command.
- Quick Start — Get BTC Price in 1 Line
- 3 Free Crypto Price APIs Compared
- API 1: DeFi Trading — 229 Perpetual Markets
- API 2: Crypto Feeds — Real-Time WebSocket Data
- API 3: On-Chain Analytics — Any Token on Any Chain
- Full Python Example: Price Tracker
- Node.js Example: Price Monitor
- Comparison with Other Crypto Price APIs
- Getting an API Key (Optional)
1 Quick Start — Get BTC Price in 1 Line
Open your terminal and run this:
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/price/BTC
Response:
That's it. No API key, no signup, no OAuth flow. Just a GET request and you have the current Bitcoin price.
Want Ethereum?
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/price/ETH
Want all 229 supported tokens at once?
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/prices
2 3 Free Crypto Price APIs Compared
We actually provide three different crypto price APIs, each optimized for different use cases:
| API | Tokens | Data Source | Best For | Free Tier |
|---|---|---|---|---|
| DeFi Trading | 229 perps | Hyperliquid DEX | Major token prices, trading | 50 req/day |
| Crypto Feeds | 38 pairs | Bybit (WebSocket) | Real-time streaming, OHLCV | 50 req/day |
| On-Chain Analytics | Any token | DexScreener + GeckoTerminal | New tokens, DEX pairs, liquidity | 50 req/day |
3 API 1: DeFi Trading — 229 Perpetual Markets
The DeFi Trading API wraps the Hyperliquid DEX, providing live prices for 229 perpetual futures markets. Prices update continuously based on actual trading activity.
Get a single token price
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/price/SOL
Get all prices
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/prices
Get market details (leverage, volume)
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/market/BTC
Available endpoints
GET /api/price/:symbol— Single token priceGET /api/prices— All 229 token pricesGET /api/markets— All markets with leverage and detailsGET /api/market/:symbol— Single market detailsGET /api/book/:symbol— Order bookGET /api/candles/:symbol— OHLCV candlestick dataGET /api/funding/:symbol— Funding rate
4 API 2: Crypto Feeds — Real-Time WebSocket Data
The Crypto Feeds API provides real-time streaming prices from Bybit. Get OHLCV data, 24h change percentages, and volume — all from a single REST endpoint.
Get all 38 trading pair prices
curl https://agent-gateway-kappa.vercel.app/v1/crypto-feeds/api/prices
Each price object includes:
- price — Current last traded price
- open / high / low — 24h OHLC data
- volume — 24h trading volume in base currency
- quote_volume — 24h volume in USD
- change_pct — 24h price change percentage
Available endpoints
GET /api/prices— All 38 trading pairs with OHLCVGET /api/prices/:symbol— Single pair (e.g., BTCUSDT)
5 API 3: On-Chain Analytics — Any Token on Any Chain
Need prices for new or low-cap tokens that aren't on centralized exchanges? The On-Chain Analytics API pulls data from DexScreener and GeckoTerminal, covering tokens on 8 chains including Ethereum, Solana, Base, Polygon, and BSC.
Search for any token
curl "https://agent-gateway-kappa.vercel.app/v1/onchain-analytics/api/search/PEPE"
Get token analytics by contract address
# PEPE token on Ethereum
curl https://agent-gateway-kappa.vercel.app/v1/onchain-analytics/api/token/0x6982508145454ce325ddbe47a25d4ec3d2311933
Get trending tokens
curl https://agent-gateway-kappa.vercel.app/v1/onchain-analytics/api/trending
Available endpoints
GET /api/tokens/:address— Token analytics (price, volume, liquidity, holders)GET /api/search?q=query— Search any token by name or symbolGET /api/trending— Currently trending tokens
6 Full Python Example: Price Tracker
Here's a complete Python script that fetches prices from all three APIs:
import requests
BASE = "https://agent-gateway-kappa.vercel.app/v1/defi-trading"
# Get a single price
resp = requests.get(f"{BASE}/api/price/BTC")
btc = resp.json()
print(f"Bitcoin: ${btc['price']}")
# Get all prices
resp = requests.get(f"{BASE}/api/prices")
prices = resp.json()["prices"]
# Top 10 by price
top10 = sorted(prices.items(), key=lambda x: float(x[1]), reverse=True)[:10]
for symbol, price in top10:
print(f" {symbol:<8} ${float(price):>12,.2f}")
# Crypto Feeds — get 24h change data
FEEDS = "https://agent-gateway-kappa.vercel.app/v1/crypto-feeds"
resp = requests.get(f"{FEEDS}/api/prices")
feeds = resp.json()["prices"]
print("\n24h Movers:")
for sym, data in feeds.items():
change = data.get("change_pct", 0)
if abs(change) > 3:
arrow = "+" if change > 0 else ""
print(f" {sym:<12} {arrow}{change}%")
requests (pip install requests). No SDK, no client library, no authentication for the free tier.
7 Node.js Example: Price Monitor
const BASE = "https://agent-gateway-kappa.vercel.app/v1/defi-trading";
// Get Bitcoin price
const btc = await fetch(`${BASE}/api/price/BTC`).then(r => r.json());
console.log(`Bitcoin: $${btc.price}`);
// Get all 229 prices
const { prices } = await fetch(`${BASE}/api/prices`).then(r => r.json());
console.log(`Tracking ${Object.keys(prices).length} tokens`);
// Build a simple price alert
async function checkPrice(symbol, threshold) {
const { price } = await fetch(`${BASE}/api/price/${symbol}`).then(r => r.json());
if (parseFloat(price) > threshold) {
console.log(`ALERT: ${symbol} is at $${price} (above $${threshold})`);
}
}
await checkPrice("BTC", 100000);
await checkPrice("ETH", 3000);
8 How This Compares to Other Crypto Price APIs
| Feature | Our APIs | CoinGecko | CoinMarketCap | Binance |
|---|---|---|---|---|
| Free tier | 50 req/day (no key) | 10-30 req/min | 10K req/month | 1200 req/min |
| API key required | No (optional) | Yes (since 2024) | Yes | Some endpoints |
| Signup required | No | Yes | Yes | Some endpoints |
| On-chain tokens | Any (via analytics) | 14K+ | 10K+ | CEX only |
| DEX liquidity data | Yes | Limited | Limited | No |
| Perpetual markets | 229 | No | No | Yes |
| WebSocket | Yes (Feeds) | No | No | Yes |
| CORS enabled | Yes | Yes | Yes | Partial |
The main advantages of our APIs are: no signup for basic usage, DEX-native data from Hyperliquid and DexScreener, and coverage of on-chain tokens that aren't listed on centralized exchanges.
9 Getting an API Key (Optional)
The free tier gives you 50 requests per day without any key. If you need more, create a free API key in one command:
curl -X POST https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/keys/create
Then use it in your requests:
curl -H "Authorization: Bearer dt_a1b2c3d4..." \
https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/prices
Need more credits? Top up with USDC on Base — 500 credits per $1, starting from $0.01.
Start Getting Crypto Prices Now
No signup. No API key. Just copy a curl command and go.
Try It in Swagger UI