CoinGecko
Query onchain DEX token price & market data based on the provided token contract addresses on a network.
- Price per call
- $0.01
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 2
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0xa4a2e2ca3fbfe21aed83471d28b6f65a233c6e00,0x5f980dcfc4c0fa3911554cf5ab288ed0eb13dba3,0x0086cff0c1e5d17b19f5bcd4c8840a5b4251d959,0x16332535e2c27da578bc2e82beb09ce9d3c8eb07,0xc0634090f2fe6c6d75e61be2b949464abb498973,0xff8104251e7761163fac3211ef5583fb3f8583d6,0x9f86db9fc6f7c9408e8fda3ff8ce4e78ac7a6b07,0xa1f72459dfa10bad200ac160ecd78c6b77a747be,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0xc78fabc2cb5b9cf59e0af3da8e3bc46d47753a4e", { method: "GET" });
console.log(await res.json());https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0xa4a2e2ca3fbfe21aed83471d28b6f65a233c6e00,0x5f980dcfc4c0fa3911554cf5ab288ed0eb13dba3,0x0086cff0c1e5d17b19f5bcd4c8840a5b4251d959,0x16332535e2c27da578bc2e82beb09ce9d3c8eb07,0xc0634090f2fe6c6d75e61be2b949464abb498973,0xff8104251e7761163fac3211ef5583fb3f8583d6,0x9f86db9fc6f7c9408e8fda3ff8ce4e78ac7a6b07,0xa1f72459dfa10bad200ac160ecd78c6b77a747be,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0xc78fabc2cb5b9cf59e0af3da8e3bc46d47753a4e