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. 22 production endpoints covering crypto prices, funding rates, DeFi yields, cross-exchange arbitrage, technical indicators, on-chain metrics, sentiment, historical data, and institutional signals: trader positioning, spot ETF flows, macro/on-chain context, and supply metrics.

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

Bundle — best value (1)

GET /api/market-pulse
$0.018 USDC
8 signals, one call, one payment. Sentiment, liquidation levels, volatility, correlation, funding predictions, positioning, supply and stablecoin health together. The parts cost $0.022 and eight separate settlements — this is 18% cheaper and settles once.

Market Data (7)

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

On-Chain Data (3)

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

Arbitrage & Cross-Venue (2)

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

Technical Analysis (2)

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

Sentiment & Macro (2)

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

Historical Data (1)

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

Positioning & Institutional (4)

GET /api/positioning
$0.005 USDC
Trader positioning per coin: open interest, long/short ratios (global + top traders), funding across Binance and CoinEx
GET /api/etf-flows
$0.005 USDC
Spot BTC & ETH ETF daily net flows (institutional demand, USD millions) — latest plus 30-day history
GET /api/macro-onchain
$0.003 USDC
Stablecoin supply (dry powder), BTC/ETH dominance, market cap, BTC network fundamentals, Fear & Greed, trending coins
GET /api/supply
$0.003 USDC
Circulating/total/max supply plus the circulating-to-total overhang ratio per major coin (structural sell-pressure signal)

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 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
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