x402AgentTools

🪙Crypto Price (Live)

Live cryptocurrency prices from CoinGecko's public API: current price in USD/EUR/GBP/JPY plus 24-hour change for any coin by id or common ticker (btc, eth, sol…). Cached 60 seconds.

Worked examples

Live examples refresh automatically — call the API for guaranteed-fresh results.

Machine API (x402)

$0.002 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/crypto/price?ids=bitcoin%2Cethereum&vs=usd HTTP/1.1
Host: agenttools-hub.vercel.app

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "crypto/price",
  "input": {"ids":"bitcoin,ethereum","vs":"usd"},
  "result": { "value": null, "answer": "" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

Live spot prices for any CoinGecko-listed token, by id or common ticker, in USD/EUR/GBP/JPY with 24-hour change. Results are cached for 60 seconds — fresh enough for agents, gentle on rate limits.

Frequently asked questions

Which ids can I use?

Any CoinGecko coin id (bitcoin, ethereum, chainlink…) or one of ~20 common tickers (btc, eth, sol, link, usdc…) which are mapped automatically.

How current is 'live'?

CoinGecko aggregates exchange feeds in real time; this endpoint caches responses for 60 seconds to stay inside the free tier.

Popular conversions & variations

Related tools