82trust / 100

Proxy Crypto Prices

by Crypto Price API in Onchain & crypto

x402 APIPassing, checked 6 min ago

Crypto prices in USD and other currencies. Data from DefiLlama. Three modes: (1) coins as CoinGecko-style IDs or tickers (up to 50) for live price and 24h change, converted to the requested currencies; (2) tokens as chain:address (e.g. base:0x833589fC…, ethereum:0x6982…) for any DEX-traded token; (3) at (past ISO date or unix seconds) for historical USD prices of coins and tokens. Params: coins, tokens, currencies (default ['usd']), at.

POST https://agentsvc.io/api/v1/proxy/crypto-prices

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
93 ms typical, 93 ms slowest 5%
Last check
6 min ago
Next check
in 22 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/crypto-prices" \
  -H "content-type: application/json" \
  -d '{"coins":["bitcoin","ethereum"],"currencies":["usd"]}'
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%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fcrypto-prices
const res = await pay("https://agentsvc.io/api/v1/proxy/crypto-prices", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coins":["bitcoin","ethereum"],"currencies":["usd"]}),
});
console.log(await res.json());

Example input

{
  "coins": [
    "bitcoin",
    "ethereum"
  ],
  "currencies": [
    "usd"
  ]
}

Example output

{
  "data": {
    "fetched_at": "2026-04-10T14:00:00.000Z",
    "not_found": [],
    "prices": {
      "bitcoin": {
        "price_time": "2026-04-10T13:59:41.000Z",
        "symbol": "BTC",
        "usd": 71923,
        "usd_24h_change": 1.42
      },
      "ethereum": {
        "price_time": "2026-04-10T13:59:38.000Z",
        "symbol": "ETH",
        "usd": 2188,
        "usd_24h_change": 0.41
      }
    },
    "source": "DefiLlama coins API"
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 min agoPassed402200 ms$0.002
5 h agoPassed40293 ms$0.002