Every developer account includes 1,000 free API calls per UTC month at 60 req/min, plus rollover prepaid credit support.
Sign in with Google, GitHub, X (Twitter), Nostr (NIP-07 / NIP-46), or Pubky Ring and link multiple identities to one account.
70+ exchange families across 250 countries via REST /v1 and hosted Streamable HTTP /mcp.
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.
Instant burst access for autonomous AI tasks, scripts, and CLI queries.
25,000 REST /v1 or MCP tool calls with cryptographic preimage verification.
High-volume 24/7 market polling and arbitrage bots at 60 req/min per token.
# 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}" | jqcurl -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}}}' | jqEndpoint: 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"
}
}
}
}get_global_bitcoin_indexGlobal 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_priceLive 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_exchangesAll 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_opportunitiesLive 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_discountsHighest-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_historyRolling 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_pricingInspect 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."
Base URL: https://api.bitcoinpricemap.com/v1
/v1/globalLive volume-weighted global BTC price (USD), 24h change, low/high, spread %, and coverage.
/v1/countries?sort=premium&limit=10All countries with live BTC price, local spread, and premium/discount vs global index. Supports continent, sort, and limit.
/v1/countries/:handleDetailed market stats and every active exchange in a specific country (e.g. br, kr, us, ca).
/v1/exchanges?sort=volumeAll tracked global and regional exchanges ranked by volume, price, or spread vs global index, including base fees.
/v1/exchanges/:globalHandleRegional breakdown of all markets operated by a specific exchange (e.g. bullbitcoin, binance, upbit).
/v1/arbitrage?btc=1&limit=10Fee- and slippage-adjusted cross-exchange Bitcoin arbitrage spreads across liquid markets.
/v1/history?window=1hHistorical Global Bitcoin Index price, global spread %, and regional spreads vs US (15m, 1h, 6h, 24h).
/v1/l402/statusInspect remaining credits, tier, and payment hash for an active Authorization: L402 <macaroon>:<preimage> token without deducting credits.
/v1/alertsProgrammatically list, create, update, test, and delete SSRF-hardened net-spread webhook alert rules.