AgentData API

x402 crypto market data API for AI agents — pay-per-request with USDC on Base Mainnet

● LIVE on Base Mainnet

What is AgentData API?

AgentData API is a pay-per-request crypto market data service built specifically for AI agents. Traditional APIs require accounts, API keys, and human onboarding — AI agents can't do that, but they can sign USDC transactions.

This service implements the x402 payment protocol (HTTP 402 Payment Required + ERC-3009 TransferWithAuthorization on Base Mainnet). An agent sends a request, receives a 402 response with payment instructions, signs a USDC authorization, and resends. The server settles the payment on-chain and returns the data. No accounts. No API keys. No rate limits to negotiate.

Built for Claude Desktop via MCP, ElizaOS, Coinbase AgentKit, and any x402-compatible client. 16 production endpoints covering crypto prices, funding rates, DeFi yields, cross-exchange arbitrage, technical indicators, on-chain metrics, sentiment, and historical data.

Try for Free

Test the data quality before paying. Free endpoints are rate-limited to 10 requests per minute.

GET /api/try/prices
FREE
Real-time prices for BTC, ETH, SOL, BNB, XRP — try now
GET /api/try/sentiment
FREE
Fear & Greed + composite sentiment — try now
GET /api/try/funding-rates
FREE
Perpetual funding rates with signals — try now

Market Data (6)

GET /api/prices
$0.001 USDC
Real-time prices for BTC, ETH, SOL, BNB, XRP
GET /api/funding-rates
$0.001 USDC
Perpetual futures funding rates with long/short signals
GET /api/market-overview
$0.002 USDC
Full market overview with sentiment and arbitrage signals
GET /api/volatility
$0.001 USDC
24h volatility, range, annualized vol for BTC/ETH/SOL
GET /api/liquidation-levels
$0.002 USDC
Estimated liquidation zones by leverage (5x/10x/20x)
GET /api/correlation
$0.001 USDC
30-day price correlation matrix (ETH/BTC, SOL/BTC, SOL/ETH)

On-Chain Data (3)

GET /api/gas-prices
$0.001 USDC
Gas prices for Base, Ethereum, Solana with USD cost estimation
GET /api/base-activity
$0.002 USDC
Base network activity: TPS, block stats, gas utilization
GET /api/defi-yields
$0.002 USDC
Top DeFi yields from Aave, Compound, Morpho, Pendle (DefiLlama aggregated)

Arbitrage & Cross-Venue (2)

GET /api/arbitrage-opportunities
$0.003 USDC
Cross-exchange spread opportunities between MEXC, Binance, Bybit, OKX
GET /api/dex-vs-cex
$0.003 USDC
DEX aggregated prices vs CEX prices with spread analysis

Technical Analysis (2)

GET /api/indicators
$0.002 USDC
RSI, MACD, Bollinger Bands, ATR. Query: ?symbol=BTCUSDT&interval=1h
GET /api/support-resistance
$0.003 USDC
Support & resistance levels via fractal analysis. Query: ?symbol=BTCUSDT

Sentiment & Macro (2)

GET /api/sentiment
$0.001 USDC
Composite sentiment: Fear & Greed Index + Funding-based + derived score
GET /api/stablecoin-health
$0.001 USDC
USDC/DAI live depeg check + top 10 stablecoins by market cap

Historical Data (1)

GET /api/historical
$0.005 USDC
Historical OHLCV candles for backtesting. Query: ?symbol=BTCUSDT&interval=1d&limit=500

How It Works

  1. Your agent sends a GET request to any paid endpoint
  2. Server responds with HTTP 402 Payment Required and a PAYMENT-REQUIRED header
  3. Agent decodes the header to get amount, USDC contract, and recipient
  4. Agent signs an ERC-3009 TransferWithAuthorization message
  5. Agent resends the request with the signed PAYMENT-SIGNATURE header
  6. Server settles payment on-chain and returns the data

Technical Details

Protocol x402 v2
Network Base Mainnet (eip155:8453)
Payment Asset USDC
USDC Contract 0x8335...0291
Facilitator Self-hosted

Agent Discovery

GET /discovery
x402-native service description
GET /openapi.json
OpenAPI 3.0 specification
GET /llms.txt
LLM-readable documentation
GET /agent.json
Google A2A Agent Card