Skip to main content

GET /api/smart/prices

Get Multiple Token Prices (Batch)

Fetch prices for multiple tokens in a single request. More efficient than individual calls.

Query Parameters​

Pass tokens as comma-separated list: ?tokens=eth,btc,usdc

Limits​

  • Max 50 tokens per request
  • Cached for 30 seconds

Pricing​

  • $0.005 per request (regardless of token count)

Endpoint​

GET https://api.web3identity.com/api/smart/prices

Parameters​

NameInTypeRequiredDescription
tokensquerystringâś…Comma-separated token symbols

Example Request​

curl -s "https://api.web3identity.com/api/smart/prices" | jq

Responses​

200 Batch price data​

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