Developer API, Keys & MCP

Real-time global Bitcoin prices, spreads, and fee-adjusted arbitrage with API keys and usage quotas
World Map
1,000 Free Calls / Month

Every developer account includes 1,000 free API calls per UTC month at 60 req/min, plus rollover prepaid credit support.

5 Instant Sign-In Options

Sign in with Google, GitHub, X (Twitter), Nostr (NIP-07 / NIP-46), or Pubky Ring and link multiple identities to one account.

15s Live Global Coverage

70+ exchange families across 250 countries via REST /v1 and hosted Streamable HTTP /mcp.

Loading developer console...
L402 / LSAT

L402 (Zero-Signup Agent API)

Autonomous Lightning pay-per-call on /v1/* and /mcp using HMAC macaroons + SHA-256 preimage proof. Send X-L402: 1 on any unauthenticated call to receive an automatic HTTP 402 challenge.

Micro Agent500 sats
2,500 API / MCP calls

Instant burst access for autonomous AI tasks, scripts, and CLI queries.

Starter Agent5,000 sats
25,000 API / MCP calls

25,000 REST /v1 or MCP tool calls with cryptographic preimage verification.

Builder Fleet21,000 sats
150,000 API / MCP calls

High-volume 24/7 market polling and arbitrage bots at 60 req/min per token.

Autonomous Agent L402 Flow (REST /v1)
# 1. Request an anonymous L402 Lightning challenge (HTTP 402 + WWW-Authenticate: L402)
CHALLENGE=$(curl -sX POST "https://api.bitcoinpricemap.com/v1/l402/challenge" \
  -H "Content-Type: application/json" \
  -d '{"tier":"micro"}')

MACAROON=$(echo "$CHALLENGE" | jq -r '.l402.macaroon')
INVOICE=$(echo "$CHALLENGE" | jq -r '.l402.invoice')

# 2. Pay $INVOICE with any Lightning wallet/agent (phoenixd, LND, Alby, Cashu) to obtain the 32-byte hex PREIMAGE
# 3. Call any /v1/* or /mcp endpoint immediately - zero signup, zero webhook delay!
curl -s "https://api.bitcoinpricemap.com/v1/global" \
  -H "Authorization: L402 ${MACAROON}:${PREIMAGE}" | jq
Streamable HTTP MCP with L402 Header
curl -sX POST "https://api.bitcoinpricemap.com/mcp" \
  -H "Content-Type: application/json" \
  -H "Authorization: L402 <MACAROON>:<64_HEX_PREIMAGE>" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"find_arbitrage_opportunities","arguments":{"btc":1}}}' | jq
MCP

Hosted Remote MCP Server

Endpoint: https://api.bitcoinpricemap.com/mcp

Add to ~/.gemini/config/mcp_config.json with your API key

{
  "mcpServers": {
    "bitcoinpricemap": {
      "serverUrl": "https://api.bitcoinpricemap.com/mcp",
      "headers": {
        "Authorization": "Bearer bpm_live_YOUR_API_KEY"
      }
    }
  }
}

Available MCP Tools (7)

get_global_bitcoin_index

Global BTC average price, 24h change %, global low/high, spread %, and volume.

Try asking: "What is the current Global Bitcoin Index price and 24h spread?"

get_country_bitcoin_price

Live BTC price, local spread, premium vs global, and active exchanges for any country.

Try asking: "Compare Bitcoin prices across exchanges in Brazil and South Korea."

list_bitcoin_exchanges

All tracked Bitcoin exchanges sorted by volume, price, or spread with fees.

Try asking: "Which Bitcoin exchanges have the highest 24h BTC volume right now?"

find_arbitrage_opportunities

Live fee-adjusted cross-exchange arbitrage spreads for any BTC trade size.

Try asking: "Find the top 5 Bitcoin arbitrage opportunities for a 2 BTC trade."

get_top_premiums_and_discounts

Highest-premium and lowest-discount Bitcoin markets globally or by region.

Try asking: "Show me the biggest Bitcoin premiums in Asia and Americas today."

get_bitcoin_index_history

Rolling time-series of Global BTC Index price and regional spreads vs US (15m, 1h, 6h, 24h).

Try asking: "How has the South Korea Kimchi premium moved over the last 6 hours?"

get_api_pricing

Inspect L402 Lightning pay-per-call tiers (micro, starter, builder), challenge endpoint, and remaining call balance.

Try asking: "Check my remaining BitcoinPriceMap L402 credits and pricing tiers."

REST v1

Developer REST API & Live Playground

Base URL: https://api.bitcoinpricemap.com/v1

GET/v1/global

Live volume-weighted global BTC price (USD), 24h change, low/high, spread %, and coverage.

GET/v1/countries?sort=premium&limit=10

All countries with live BTC price, local spread, and premium/discount vs global index. Supports continent, sort, and limit.

GET/v1/countries/:handle

Detailed market stats and every active exchange in a specific country (e.g. br, kr, us, ca).

GET/v1/exchanges?sort=volume

All tracked global and regional exchanges ranked by volume, price, or spread vs global index, including base fees.

GET/v1/exchanges/:globalHandle

Regional breakdown of all markets operated by a specific exchange (e.g. bullbitcoin, binance, upbit).

GET/v1/arbitrage?btc=1&limit=10

Fee- and slippage-adjusted cross-exchange Bitcoin arbitrage spreads across liquid markets.

GET/v1/history?window=1h

Historical Global Bitcoin Index price, global spread %, and regional spreads vs US (15m, 1h, 6h, 24h).

GET/v1/l402/status

Inspect remaining credits, tier, and payment hash for an active Authorization: L402 <macaroon>:<preimage> token without deducting credits.

GET/v1/alerts

Programmatically list, create, update, test, and delete SSRF-hardened net-spread webhook alert rules.

Feedback