Crypto Markets

Live crypto conversion at CoinGecko prices

Live crypto conversion at CoinGecko prices: any coin to any coin or fiat, and fiat to coin. ?amount=0.5&from=bitcoin&to=ethereum — common tickers (btc, eth, sol…) accepted. Returns the rate, the converted amount, and the underlying prices. Prices cached ≤30s; cheap enough to call in a loop.

Price: $0.001 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

get/api/convert

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/convert
  • Auth: API key in header X-PAYMENT

Query parameters

amountnumber

quantity of 'from' (default 1)

fromstring required

CoinGecko id or ticker (bitcoin/btc), or fiat code (usd, eur…)

tostring required

CoinGecko id/ticker or fiat code

Response

Success

amountnumber
fromstring
tostring
ratenumber
resultnumber
pricesobject

Changes

No recorded changes to this operation across all 1 revision of this API.