Instant Access to Crypto Prices & Market Data with x402

Instant Access to Crypto Prices & Market Data with x402

Fetch crypto prices and onchain data with x402. Pay $0.005 USDC per request on Base, Solana or Polygon, with no API key, subscription or account.

Fetch crypto prices and onchain data with x402. Pay $0.005 USDC per request on Base, Solana or Polygon, with no API key, subscription or account.

GET /api/v3/x402/onchain/networks/eth/tokens/0xdac17f958d2ee523a2206206994597c13d831ec7

?include=top_pools

Trusted by Industry Builders

How It Works

How It Works

  1. Make A Request

Send a request to any x402-enabled endpoint. The server responds with a 402 status and the payment requirements.

GET /api/v3/x402/onchain/networks/eth/tokens/0xdac17f958d2ee523a2206206994597c13d831ec7

?include=top_pools

  1. Sign & Pay

Your wallet signs a USDC authorization and submits the payment signature header. Coingecko currently supports USDC payments on Solana, Base and Polygon.

  1. Receive Data

API access granted and it returns the data you requested. You're all done!

{

"data": {

"id": "eth_0xdac17f958d2ee523a2206206994597c13d831ec7",

"type": "token",

"attributes": {

"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",

"name": "Tether USD",

"symbol": "USDT",

"decimals": 6,

"image_url": "https://coin-images.coingecko.com/coins/images/325/large/Tether.png?1696501661",

"coingecko_coin_id": "tether",

"total_supply": "91775654692250534.0",

"normalized_total_supply": "91775654692.2505",

"price_usd": "0.999188255",

"fdv_usd": "91700939859.6687",

"total_reserve_in_usd": "405089394.14192413773442554227",

"volume_usd": {

"h24": "1142454033.37436"

},

"market_cap_usd": "171798403974.784"

},

"relationships": {

"top_pools": {

"data": [

{

"id": "eth_0x667701e51b4d1ca244f17c78f7ab8744b4c99f9b",

"type": "pool"

},

{

"id": "eth_0xf063bd202e45d6b2843102cb4ece339026645d4a",

"type": "pool"

},

{

"id": "eth_0x8aa4e11cbdf30eedc92100f4c8a31ff748e201d44712cc8c90d189edaa8e4e47",

"type": "pool"

}

]

}

}

},

"included": [

{

"id": "eth_0x667701e51b4d1ca244f17c78f7ab8744b4c99f9b",

"type": "pool",

"attributes": {

"base_token_price_usd": "0.999949947925521",

"base_token_price_native_currency": "0.000223341206041575",

"base_token_balance": "74198606.301554",

"base_token_liquidity_usd": "74194892.50738515",

"quote_token_price_usd": "0.99918825500163",

"quote_token_price_native_currency": "0.000223171080110164",

"quote_token_balance": "29771050.29628",

"quote_token_liquidity_usd": "29746883.795105774",

"base_token_price_quote_token": "1.0007623117",

"quote_token_price_base_token": "0.9992382689",

"address": "0x667701e51b4d1ca244f17c78f7ab8744b4c99f9b",

"name": "USDC / USDT",

"pool_created_at": "2025-09-18T08:28:30Z",

"token_price_usd": "0.99918825500163",

"fdv_usd": "91700939859.6687",

"market_cap_usd": "171798403975.064",

"price_change_percentage": {

"m5": "-0.02",

"m15": "-0.65",

"m30": "-0.01",

"h1": "0",

"h6": "-0.18",

"h24": "-0.5"

},

"transactions": {

"m5": {

"buys": 0,

"sells": 2,

"buyers": 0,

"sellers": 2

},

"m15": {

"buys": 4,

"sells": 7,

"buyers": 3,

"sellers": 5

},

"m30": {

"buys": 12,

"sells": 19,

"buyers": 7,

"sellers": 9

},

"h1": {

"buys": 39,

"sells": 48,

"buyers": 16,

"sellers": 15

},

"h6": {

"buys": 180,

"sells": 271,

"buyers": 31,

"sellers": 35

},

"h24": {

"buys": 870,

"sells": 1109,

"buyers": 55,

"sellers": 59

}

},

"volume_usd": {

"m5": "988.7572917698",

"m15": "1857835.95996426",

"m30": "3190909.49729904",

"h1": "9434171.29930675",

"h6": "84784863.3965608",

"h24": "388004708.962186"

},

"reserve_in_usd": "103939687.035"

},

"relationships": {

"base_token": {

"data": {

"id": "eth_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",

"type": "token"

}

},

"quote_token": {

"data": {

"id": "eth_0xdac17f958d2ee523a2206206994597c13d831ec7",

"type": "token"

}

},

"dex": {

"data": {

"id": "fluid-ethereum",

"type": "dex"

}

}

}

}

]

}

x402-enabled Endpoints

Simple Price

Fetch price, market cap and 24-hour trade volume for coins listed on Coingecko by symbols or coin ids

On-chain Simple Price

Access on-chain token price, market cap, liquidity and 24-hour volume for tokens listed on GeckoTerminal

Token Data

Get complete on-chain price and market data, including logo, price changes, transactions and more

Search Pools

Query data for a specific pool or token by contract address, token name, or symbol

Trending Pools

Discover what's popular on a blockchain with Coingecko API's on-chain trending pools endpoint

The x402 Advantage

The x402 Advantage

Low Entry Barriers

Access crypto data without API keys, account setups or credit card details. Just instant access.

Zero upfront costs or subscriptions

No minimum commitments

$0.005 USDC per request

Agent-Ready

Built for AI agents to operate independentlyโ€”pay, access, and retrieve data autonomously.

Agents pay directly with USDC on Solana, Base or Polygon

No web interface or human intervention needed

Only pay for what your agents use

Frequently asked questions

What is x402?

x402 is an open payment protocol developed by Coinbase that enables instant, automatic stablecoin payments directly over HTTP. It allows you to pay for API requests using USDC without needing API keys or subscriptions.

What is x402?

x402 is an open payment protocol developed by Coinbase that enables instant, automatic stablecoin payments directly over HTTP. It allows you to pay for API requests using USDC without needing API keys or subscriptions.

How much does each API request cost?

Currently, each API request costs $0.005 USDC. However, this pricing is experimental and subject to change without prior notice. Always check the latest pricing when generating the payment header.

How much does each API request cost?

Currently, each API request costs $0.005 USDC. However, this pricing is experimental and subject to change without prior notice. Always check the latest pricing when generating the payment header.

How do I get started with x402?

Follow these steps:

  1. Set up an x402 client using the official x402 Quickstart for Buyers guide.

  2. Fund your wallet with USDC on Base, Solana or Polygon.

  3. Call a supported endpoint by adding /x402/ after /v3/ in the Pro API path, for example pro-api.coingecko.com/api/v3/x402/simple/price. No API key is needed.

  4. Your x402 client signs the USDC payment and resends the request automatically.

Supported endpoints include Simple Price, onchain token price, Search Pools, Trending Pools by Network and Token Data by Address. See the Coingecko x402 docs for the full list.

How do I get started with x402?

Follow these steps:

  1. Set up an x402 client using the official x402 Quickstart for Buyers guide.

  2. Fund your wallet with USDC on Base, Solana or Polygon.

  3. Call a supported endpoint by adding /x402/ after /v3/ in the Pro API path, for example pro-api.coingecko.com/api/v3/x402/simple/price. No API key is needed.

  4. Your x402 client signs the USDC payment and resends the request automatically.

Supported endpoints include Simple Price, onchain token price, Search Pools, Trending Pools by Network and Token Data by Address. See the Coingecko x402 docs for the full list.

Is this suitable for production applications?

These are experimental endpoints. For production systems, we strongly recommend using Coingecko API's stable, standard subscription endpoints. x402 features, pricing, and availability may change without notice.

Is this suitable for production applications?

These are experimental endpoints. For production systems, we strongly recommend using Coingecko API's stable, standard subscription endpoints. x402 features, pricing, and availability may change without notice.

Access Crypto Data Instantly with x402

Access Crypto Data Instantly with x402

Data Delivery
Legal
ยฉ 2026 Coingecko. All Rights Reserved.
Data Delivery
Legal
ยฉ 2026 Coingecko. All Rights Reserved.
Data Delivery
Legal
ยฉ 2026 Coingecko. All Rights Reserved.