GET/{network}/api/v1/token/{token}/native_price

Claude ↗ChatGPT ↗
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 free

Native-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

nameintypedescription
networkpathstrrequiredCoW 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
tokenpathstrrequiredERC-20 token contract address.
example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

Response

type: object
pagination: none
sample: {
  "price": "float"
}