GET/{network}/api/v1/token/{token}/native_price
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cowswap/{network}/api/v1/token/{token}/native_priceCache cached 3s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeNative-asset spot price for one ERC-20 token (denominated in ETH, xDAI, POL, AVAX, or BNB depending on the selected network).
Try this endpoint
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cowswap/mainnet/api/v1/token/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/native_price"Parameters
| name | in | type | description | |
|---|---|---|---|---|
network | path | str | required | CoW Protocol network slug: mainnet, xdai, arbitrum_one, base, polygon, avalanche, bnb, linea, or sepolia (aliases such as ethereum, eth, gnosis, arbitrum, arb, bsc, or numeric chain IDs are normalized automatically). example: mainnet |
token | path | str | required | ERC-20 token contract address. example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 |
Response
type: object
pagination: none
sample: {
"price": "float"
}