Skip to main content

GET /api/price/{token}

Get Token Price

Get real-time price for any supported token with 9-source fallback for reliability.

Supported Tokens​

ETH, BTC, USDC, USDT, DAI, LINK, UNI, AAVE, ARB, OP, MATIC, SOL, and 100+ more

Data Sources (fallback order)​

  1. CoinGecko → 2. DefiLlama → 3. CoinCap → 4. Binance → 5+ more

Pricing​

  • $0.005 per request

Endpoint​

GET https://api.web3identity.com/api/price/{token}

Parameters​

NameInTypeRequiredDescription
tokenpathstringâś…Token symbol (case-insensitive)
currencyquerystring❌Target currency (usd, eur, btc)

Example Request​

curl -s "https://api.web3identity.com/api/price/:token" | jq

Responses​

200 Price data​

{
"symbol": "ETH",
"price": 2843.52,
"change24h": 2.34,
"marketCap": 341000000000,
"volume24h": 12500000000,
"source": "coingecko",
"timestamp": "2026-02-08T03:15:00.000Z"
}

400 Bad Request - Invalid parameters or malformed request​

{
"error": "Invalid parameter format",
"code": "INVALID_PARAMETER"
}

402 Payment Required - Free tier exhausted​

{
"example": "response"
}

404 Not Found - Resource does not exist​

{
"error": "Resource not found",
"code": "NOT_FOUND"
}

429 Rate Limited​

{
"example": "response"
}

500 Internal Server Error - Something went wrong on our end​

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}

Auto-generated from OpenAPI spec