All services

Service

CoinGecko

crypto_data5 endpoints
Docs

On-demand crypto price and market data via x402. Get token prices, search liquidity pools, find trending pools, and query token data by contract address across 250+ networks. No API key required. IMPORTANT: Only /x402/* paths are available — do NOT use regular CoinGecko API paths like /coins/{id}.

x402

basesolana

Methods

5 methods available

GET/x402/onchain/networks/{id}/tokens/{address}
10000 USDC

Get price, liquidity, and market data for a token by contract address.

Replace {id} with network ID and {address} with contract address. Example: /x402/onchain/networks/eth/tokens/0xdac17f958d2ee523a2206206994597c13d831ec7

{
  "path": {
    "id": "string (network ID: 'eth', 'solana', 'base')",
    "address": "string (token contract address)"
  },
  "query": {
    "include_composition": "boolean (optional)"
  }
}
GET/x402/onchain/networks/{id}/trending_pools
10000 USDC

Get trending liquidity pools on a specific network.

Replace {id} with network ID. Example: /x402/onchain/networks/solana/trending_pools

{
  "path": {
    "id": "string (network ID: 'eth', 'solana', 'base', etc.)"
  }
}
GET/x402/onchain/search/pools
10000 USDC

Search liquidity pools and tokens by contract address, name, or symbol across networks.

GET with query params. Search by token name, symbol, or contract address. Example: /x402/onchain/search/pools?query=USDC

{
  "query": {
    "query": "string (search term: address, name, or symbol)",
    "network": "string (optional, e.g. 'eth', 'solana')"
  }
}
GET/x402/onchain/simple/networks/{id}/token_price/{address}
10000 USDC

Get token price by contract address on a specific network.

Replace {id} with network ID and {address} with token contract address. Example: /x402/onchain/simple/networks/eth/token_price/0xdac17f958d2ee523a2206206994597c13d831ec7

{
  "path": {
    "id": "string (network ID: 'eth', 'solana', 'base', etc.)",
    "address": "string (token contract address)"
  }
}
GET/x402/simple/price
10000 USDC

Get price and market data for CoinGecko-listed coins by ID or symbol.

GET with query params. ids and vs_currencies are required. Example: /x402/simple/price?ids=solana&vs_currencies=usd&include_24hr_change=true

{
  "query": {
    "ids": "string (comma-separated coin IDs, e.g. 'bitcoin,solana,ethereum')",
    "vs_currencies": "string (e.g. 'usd')",
    "include_market_cap": "boolean (optional)",
    "include_24hr_vol": "boolean (optional)",
    "include_24hr_change": "boolean (optional)"
  }
}