A

Asterpay · Price Bitcoin

by Asterpay

GETBaseEthereumArbitrumPolygonOptimismeip155:1187947933

$0.005

per call · USD Coin on Base

Get real-time cryptocurrency price data for any token

Endpoint

GET https://x402.asterpay.io/v1/market/price/bitcoin

9

Calls / 30d

5

Unique payers / 30d

Sep 9

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://x402.asterpay.io/v1/market/price/bitcoin", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.asterpay.io/v1/market/price/bitcoin?symbol=bitcoin" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "change_24h": 2.45,
  "market_cap": 1940000000000,
  "price_eur": 91200.15,
  "price_usd": 98450.23,
  "symbol": "bitcoin",
  "timestamp": "2026-02-01T12:00:00Z",
  "volume_24h": 45000000000
}

Payment details

Pay to0xd5f8481d8f25d3966d2010dbf9b47ffbdf745a9e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Ethereum, Arbitrum, Polygon, Optimism, eip155:1187947933
Schemesexact

Is this your API?

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

Get featured →

More from Asterpay & similar services