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.

March 2026 8 min read Free tier included
What's covered
  1. Quick Start — Get BTC Price in 1 Line
  2. 3 Free Crypto Price APIs Compared
  3. API 1: DeFi Trading — 229 Perpetual Markets
  4. API 2: Crypto Feeds — Real-Time WebSocket Data
  5. API 3: On-Chain Analytics — Any Token on Any Chain
  6. Full Python Example: Price Tracker
  7. Node.js Example: Price Monitor
  8. Comparison with Other Crypto Price APIs
  9. Getting an API Key (Optional)

1 Quick Start — Get BTC Price in 1 Line

Open your terminal and run this:

bash
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/price/BTC

Response:

{"symbol": "BTC", "price": "67017.5"}

That's it. No API key, no signup, no OAuth flow. Just a GET request and you have the current Bitcoin price.

Want Ethereum?

bash
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/price/ETH
{"symbol": "ETH", "price": "1951.65"}

Want all 229 supported tokens at once?

bash
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:

APITokensData SourceBest ForFree 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
Free tier
All three APIs allow 50 free requests per day without an API key. Need more? Create a free API key for 50 bonus credits, or top up with USDC for unlimited usage.

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

bash
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/price/SOL
{"symbol": "SOL", "price": "131.42"}

Get all prices

bash
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/prices
{"count": 229, "prices": {"BTC": "67017.5", "ETH": "1951.65", "SOL": "131.42", ...}}

Get market details (leverage, volume)

bash
curl https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/market/BTC

Available endpoints

Interactive API docs (Swagger UI)

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

bash
curl https://agent-gateway-kappa.vercel.app/v1/crypto-feeds/api/prices
{ "count": 38, "prices": { "BTCUSDT": { "symbol": "BTCUSDT", "price": 67100.2, "open": 65863, "high": 70100.6, "low": 65273.6, "volume": 14844.93, "change_pct": 1.88 }, ... } }

Each price object includes:

Available endpoints

Interactive API docs (Swagger UI)

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

bash
curl "https://agent-gateway-kappa.vercel.app/v1/onchain-analytics/api/search/PEPE"

Get token analytics by contract address

bash
# PEPE token on Ethereum
curl https://agent-gateway-kappa.vercel.app/v1/onchain-analytics/api/token/0x6982508145454ce325ddbe47a25d4ec3d2311933

Get trending tokens

bash
curl https://agent-gateway-kappa.vercel.app/v1/onchain-analytics/api/trending

Available endpoints

Interactive API docs (Swagger UI)

6 Full Python Example: Price Tracker

Here's a complete Python script that fetches prices from all three APIs:

python
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}%")
No dependencies needed
The only dependency is requests (pip install requests). No SDK, no client library, no authentication for the free tier.

7 Node.js Example: Price Monitor

javascript
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

FeatureOur APIsCoinGeckoCoinMarketCapBinance
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:

bash
curl -X POST https://agent-gateway-kappa.vercel.app/v1/defi-trading/api/keys/create
{ "api_key": "dt_a1b2c3d4...", "credits": 50, "message": "API key created. 50 free credits included." }

Then use it in your requests:

bash
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