C

CoinCap · History Bitcoin

by CoinCap

GETBase

$0.01

per call · USD Coin on Base

Historical price series for an asset slug (capped data points).

Endpoint

GET https://rest.coincap.io/v3/agentFriendly/history/bitcoin

3

Calls / 30d

2

Unique payers / 30d

Sep 4

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://rest.coincap.io/v3/agentFriendly/history/bitcoin", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://rest.coincap.io/v3/agentFriendly/history/bitcoin" \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x9baa4417d1e78f2ed5b09aa4abfb541aeb2cd6ed
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from CoinCap & similar services