← Back to marketplace

CoinGecko Pro API

external

Professional crypto market data: prices, market caps, volumes, historical data, exchange listings, NFT floors. Pay-per-call via x402.

by Coingecko8 endpoints100% uptime174ms avg

Price

from $0.0100

per request

Network

base

Category

other

On-chain txns

69

Uptime

100%

Avg latency

174ms

Checks

160

Status

Healthy

Base URL

https://pro-api.coingecko.com

Endpoints (8)

Discovered from on-chain x402 payment activity. Prices shown are per-call in USDC.

POST/api/v3/x402/onchain/networks/base/tokens/0xc0634090f2fe6c6d75e61be2b949464abb498973
base$0.0100

Query the latest onchain DEX price, liquidity, and market data of a token, based on the provided token contract address on a network

POST/api/v3/x402/onchain/networks/base/tokens/0xc0634090f2fe6c6d75e61be2b949464abb498973
base$0.0100

Query the latest onchain DEX price, liquidity, and market data of a token, based on the provided token contract address on a network

POST/api/v3/x402/onchain/networks/base/trending_pools
base$0.0100

Query the latest onchain DEX trending pools & tokens, based on a provided network.

POST/api/v3/x402/onchain/networks/eth/tokens/0xdac17f958d2ee523a2206206994597c13d831ec7
base$0.0100

Query the latest onchain DEX price, liquidity, and market data of a token, based on the provided token contract address on a network

POST/api/v3/x402/onchain/search/pools
base$0.0100

Search onchain DEX pools and token, by contract address, name, or token symbol.

POST/api/v3/x402/onchain/simple/networks/base/token_price/0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b,0x4200000000000000000000000000000000000006
base$0.0100

Query onchain DEX token price & market data based on the provided token contract addresses on a network.

POST/api/v3/x402/simple/price
solana$0.0100

Query prices & market data of coins listed on CoinGecko, by coin IDs, names, or symbols.

POST/api/v3/x402/simple/price
base$0.0100

Query prices & market data of coins listed on CoinGecko, by coin IDs, names, or symbols.

Payment

Protocolx402 (direct payment, USDC)
Networkbase

How to call

Via APIHub (recommended)No wallet · pay with credits · gasless
# one-time setup
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call it
npx @apihubio/cli call https://pro-api.coingecko.com \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://pro-api.coingecko.com
APIHub pays the provider on your behalf and debits your credit balance for the exact amount. No wallet setup, no gas, no per-call signing.
Via direct x402 (advanced)Bring your own wallet
import { wrapFetchWithPayment } from "@x402/fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = createWalletClient({ account, chain: base, transport: http() });
const x402Fetch = wrapFetchWithPayment(client);

const res = await x402Fetch("https://pro-api.coingecko.com", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ /* check provider docs for input */ }),
});
const data = await res.json();
Requires USDC on Base and gas on each call. The @x402/fetch client signs EIP-3009 transferWithAuthorization for each 402 response and retries.

This is an external service not operated by APIHub. Listing data is sourced from public on-chain records and third-party indexes. Payment goes directly to the service provider via the x402 protocol. APIHub does not guarantee availability, accuracy, or quality of external services.