---
title: "Live crypto conversion at CoinGecko prices"
method: GET
path: "/api/convert"
tags: ["Crypto Markets"]
---

# Live crypto conversion at CoinGecko prices

`GET /api/convert`

## Request

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

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).

## Query parameters

- `amount` number
- `from` string, required
- `to` string, required

## Response `200`

Success

- object
  - `amount` number
  - `from` string
  - `to` string
  - `rate` number
  - `result` number
  - `prices` object

## Other responses

- `402`: Payment required — the response body lists accepted payment methods (amount, asset, network, pay-to address). Retry the request with a signed X-PAYMENT header.

---

[API](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api.md) · [All operations](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/revisions/c14a76c67a94?raw)
