74trust / 100
Price Bitcoin
by x402.asterpay.io in Onchain & crypto
x402 APIPassing, checked 18 min ago
Get real-time cryptocurrency price data for any token
GET https://x402.asterpay.io/v1/market/price/bitcoin
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 187 ms typical, 187 ms slowest 5%
- Last check
- 18 min ago
- Next check
- in 13 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.asterpay.io/v1/market/price/bitcoin?symbol=bitcoin"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.asterpay.io%2Fv1%2Fmarket%2Fprice%2Fbitcoin
const res = await pay("https://x402.asterpay.io/v1/market/price/bitcoin?symbol=bitcoin");
console.log(await res.json());Example input
{
"symbol": "bitcoin"
}Example output
{
"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
}Security scan
- Charges more than its listed price in payment
Listed at $0.005, charges $0.0075
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 18 min ago | Passed | 402 | 187 ms | $0.0075 |
| 5 h ago | Passed | 402 | 311 ms | $0.005 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.0075 |