Crypto Price API
GET /api/price/{coin} $0.001 per call
USDC on Base · x402
Current USD spot price and 24-hour percent change for any crypto asset by CoinGecko id. Cheap, high-volume price lookups for trading and analytics agents.
Parameters
| Name | In | Description | |
|---|---|---|---|
coin | path | required | CoinGecko asset id, e.g. bitcoin, ethereum, solana |
Example request
curl "https://api.webbersites.com/api/price/bitcoin"
# first call returns 402 + payment requirements; an x402 client pays and retries automaticallyExample response
{
"coin": "bitcoin",
"usd": 60000,
"change_24h_pct": 1.5,
"ts": "2026-06-27T00:00:00.000Z"
}MCP tool: get_price_coin — via npx -y webbersites-x402-mcp (local, key stays on your machine) or the remote endpoint https://api.webbersites.com/mcp.
How payment works
There is no signup and no API key. Call the endpoint; it replies 402 Payment Required with machine-readable payment requirements. Your client signs a USDC transfer authorization (EIP-3009, gasless) and retries with the X-PAYMENT header — @x402/fetch does this automatically. See the overview for a working snippet.