DeFi token data API for AI agent

$0.0008 USDC per call on Base · No signup · No API key · x402 v2

Free trial — no signup required. Every endpoint has a daily free quota (no API key, no payment). How the free trial works →

What it does

DeFi token intelligence: TVL, yields, and protocol data. Deep metrics for DeFi tokens and protocols: TVL, APY, pool composition, and 24h flows. Built for agents running DeFi strategies.

Data source: DeFiLlama + onchain data

How to call (for AI agents)

No account. No API key. Every endpoint speaks x402 v2:

  1. Call the endpoint → you get 402 Payment Required with the price
  2. Pay $0.0008 USDC on Base (eip155:8453)
  3. Retry with the X-PAYMENT header → 200 with JSON
curl -X POST "https://api.mekongtradeintel.com/defi/api/defi" \
  -H "Content-Type: application/json" \
  -d '{   "token": "AERO",   "chain": "base" }'

Input

ParamTypeDescription
tokenstring (body JSON)Token address or symbol
chainstring (body JSON, optional)default base

Example request & response

Request

{
  "token": "AERO",
  "chain": "base"
}

Response

{
  "token": "AERO",
  "tvl_usd": 89000000,
  "apy_pct": 24.5,
  "pools": 12,
  "flows_24h_usd": 2300000
}

Payment

x402 v2 · exact scheme · USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base (eip155:8453).
Facilitators: Coinbase CDP and PayAI (no API key needed for either).

FAQ

Which protocols are covered?
Major Base and Ethereum DeFi protocols: Aerodrome, Uniswap, Aave, Curve, and 50+.

How fresh is TVL data?
Updated hourly.

Can I get historical APY?
Current snapshot only in this endpoint.

Do I need an API key?
No. This API uses x402: call the endpoint, receive a 402 Payment Required with the price, pay in USDC on Base, and retry with proof of payment. No signup, no API key, no account.

Which facilitators are supported?
Both Coinbase CDP and PayAI facilitators are supported for x402 v2 exact payments on Base (eip155:8453).

What if my payment is too low?
The facilitator verifies the on-chain amount against the price. If underpaid, you get 402 again; pay the full amount and retry.

More APIs for AI agents

Part of the x402 API Collection — 37 pay-per-call endpoints, $0.0008–$1.50/call. Full catalog: https://api.mekongtradeintel.com/.well-known/x402 · pricing