x402 Crypto Price Lookup · Crypto Price

by x402 Crypto Price Lookup

GETBaseSolanaArbitrumPolygon

$0.001

per call · USD Coin on Base

Look up current price, 24h change, and market cap for one or more cryptocurrencies

Endpoint

GET https://x402tap.com/api/crypto-price

3

Calls / 30d

3

Unique payers / 30d

Sep 7

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402tap.com/api/crypto-price", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402tap.com/api/crypto-price?ids=bitcoin%2Cethereum%2Csolana&vs=usd" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "prices": [
    {
      "change24hPct": -0.2,
      "id": "bitcoin",
      "marketCap": 1267177736333,
      "price": 63151
    }
  ],
  "vs": "usd"
}

Payment details

Pay to0xb810b599bc730aa85800babe7f5d160524322c86
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from x402 Crypto Price Lookup & similar services