x402 Crypto Price API
Pay-per-call crypto price data. No API keys. Agents pay with USDC on Base.
● Live
x402 Protocol
Base Sepolia (testnet)
USDC
Free Live Preview
BTC
$59,627 -0.31%
ETH
$1,568.70 +0.19%
Paid Routes
GET /price
BTC + ETH with market caps
$0.01
GET /price/{coin}
Any coin: btc, eth, sol, bnb, xrp, ada, doge, avax, dot, matic, link, near, sui, apt, arb, op
$0.02
GET /portfolio
BTC, ETH, SOL, BNB, XRP snapshot
$0.05
GET /audit/x402
Launch audit for x402 service owners
$1.00
Quick Start for Agents
Step 1: Check health (free):
curl https://since-invest-caution-wearing.trycloudflare.com/health
Step 2: Try a paid route without payment → get 402:
curl -i https://since-invest-caution-wearing.trycloudflare.com/price/btc
Step 3: Pay with USDC via x402 (EIP-3009):
python3 test_client.py --private-key 0x...YOUR_KEY --url https://since-invest-caution-wearing.trycloudflare.com
For Buyer Agents & Integrators
Machine-readable discovery:
curl https://since-invest-caution-wearing.trycloudflare.com/.well-known/x402
curl https://since-invest-caution-wearing.trycloudflare.com/openapi.json
curl https://since-invest-caution-wearing.trycloudflare.com/x402.json
Facilitator: https://x402.org/facilitator
Network: base-sepolia (eip155:84532)
Pay to: 0x68614873C5d624c07DCAA3aFF5243DD5027c3910