On-Demand Crypto Price & Market Data (x402)
x402-enabled, instant, pay-per-use crypto price & market data endpoints. Access with native crypto payment, no key or account required.
x402 Overview
x402 is a new open payment protocol developed by Coinbase that enables instant, automatic stablecoin payments directly over HTTP. Learn more about x402 here.
How It Works
Authentication
To access CoinGecko API with x402, you can follow the simple steps below:
- Set up an x402 client by following the official x402 Quickstart for Buyers
- Use the x402 Path: Call any supported endpoint by inserting
/x402/immediately after the version segment (/v3/) in the URL path.
Reminder
- Do not send
x-cg-pro-api-keyorx-cg-demo-api-key, as an API key is not required. - Root URL for the endpoints: All x402 requests must use the base path:
pro-api.coingecko.com/api/v3/x402/...
Supported Endpoints
- All parameters from the CoinGecko Pro API endpoints are supported. For the complete list of available parameters, features, limits, and payload data, please refer to the Pro API References of respective endpoints.
- For Onchain endpoint requests that require
network_id, you may check for the full list of network IDs via CSV or GSheet. We cover more than 250 networks, the widest coverage in the industry! - If you wish to learn more details about how to use CoinGecko API x402 endpoints, please visit this guide.
Request URL Examples:
-
Example 1: Get VIRTUALS and WETH tokens data on Base network:
-
Example 2: Search tokens and pools data on Solana network, with name, symbol, or contract address:
-
Example 3: Get the top trending tokens and pools data on Base network, in the last 5 minutes:
-
Example 4: Get KEETA price, liquidity, market data and more on Base network:
-
Example 5: Get USD price & market data of Bitcoin, Ethereum and Solana, by symbols:
Pricing & Payment Method
Current price: $0.01 USDC per API request, for all endpoints stated above.
Pricing Notice: The current pricing of $0.01 USDC per request is subject to change at any time without prior notice. Please check the latest pricing when generating your payment header.
Each search request is charged on a pay-per-use basis using cryptocurrency through the payment header system.
Network supported:
- Base
- Solana
Paying with Privy Wallet
Privy provides embedded and agent wallets that natively support x402, making them an all-in-one option for paying for CoinGecko API calls.
Request Example
Response Example
Please refer to the respective endpoint documentation for full parameter and payload support.
