POST/data/v1/token-prices
Auth X-Hub-Key from API_HUB_KEYExecute
POST /run/uniswap/data/v1/token-pricesCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing freeBatch-fetch latest USD spot prices and update timestamps for a list of (chainId, address) tokens.
Try this endpoint
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sX POST "https://openapihub.dev/run/uniswap/data/v1/token-prices" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"tokens": [{"chainId": 1, "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}, {"chainId": 8453, "address": "0x4200000000000000000000000000000000000006"}]}'Parameters
| name | in | type | description | |
|---|---|---|---|---|
tokens | body | list[dict] | required | List of {chainId: int|str, address: str} token pairs. example: [{"chainId":1,"address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},{"chainId":8453,"address":"0x4200000000000000000000000000000000000006"}] |
Response
type: object
data key: tokenPrices
pagination: none
sample: {
"tokenPrices": [
{
"chainId": "int",
"address": "str",
"priceUsd": "float",
"updatedAt": "str"
}
]
}