APIs your agent can pay for by the request.
No API keys, no signups, no subscriptions. Every route here is metered in USDC — call it, get an HTTP 402 with the price, sign a payment, and the data comes back. Built on the open x402 protocol and discoverable through the CDP Bazaar.
x402 doesn't just run on this server
This is real, live activity across the whole x402 ecosystem — every seller, every facilitator — not just traffic to AgentX402Pay. The same open protocol every route on this page speaks.
Live · x402 protocol, every seller
Real ecosystem-wide activity — not just this server. Data via agentic.market.
Three requests, no dashboard
x402 turns HTTP 402 Payment Required from a dead status code into a working payment flow. There's nothing to configure before your first call. Scroll to watch each step highlight the matching part of the exchange.
Call the endpoint
No payment attached, so the server replies 402 with the exact price and payment instructions.
Sign a payment
Your wallet (or agent's x402 client) signs a USDC payment for that exact amount — no on-chain transaction yet.
Retry and get paid data
Resend the request with the signed payment attached. The route runs, settles on success, and returns the response.
Payment flow
Follows the step you're reading.
Everything this server sells
Every route accepts GET requests, prices in USDC, settles only after a successful response, and declares Bazaar discovery metadata so agents can find it without reading docs first.
Flagship examples
5Each demonstrates a different x402 payment pattern — fixed price, usage-based, dynamic pricing, and payment channels.
Whole-route protection gated by proxy.ts before the page ever renders.
No query params required.
https://agentx402pay.com/protected
Live current weather for any city, sourced from Open-Meteo. Settles only on a successful lookup.
- city= Austin
https://agentx402pay.com/api/weather?city=Austin
Buyer authorizes a max in one signature; you charge only for the output actually generated.
- prompt= explain x402 in one paragraph
https://agentx402pay.com/api/generate?prompt=explain%20x402%20in%20one%20paragraph
Price is computed per-request from a tier query param instead of fixed at route definition.
- tier= premium
- topic= ai agents
https://agentx402pay.com/api/insights?tier=premium&topic=ai%20agents
Cheap repeatable calls accumulate in one payment channel, settled on a schedule instead of per-call.
No query params required.
https://agentx402pay.com/api/ping
Data endpoints
11Prediction markets, DeFi, crypto market data, and web search — the categories driving the most real usage across the x402 ecosystem today.
Search/list Polymarket prediction markets by volume
- q= election
- limit= 10
https://agentx402pay.com/api/polymarket-markets?q=election&limit=10
Single Polymarket market detail by slug
- slug= will-btc-hit-100k(required)
https://agentx402pay.com/api/polymarket-market?slug=will-btc-hit-100k
Search/list open Kalshi prediction markets
- q= fed
- limit= 10
https://agentx402pay.com/api/kalshi-markets?q=fed&limit=10
Single Kalshi market detail by ticker
- ticker= FED-24DEC(required)
https://agentx402pay.com/api/kalshi-market?ticker=FED-24DEC
DeFi protocol TVL, by chain + market cap
- protocol= aave(required)
https://agentx402pay.com/api/defi-tvl?protocol=aave
Rank blockchains by total DeFi TVL
- limit= 15
https://agentx402pay.com/api/defi-chains?limit=15
Price + 24h change for one or more coins
- ids= bitcoin,ethereum(required)
- vs= usd
https://agentx402pay.com/api/crypto-price?ids=bitcoin%2Cethereum&vs=usd
Rich market data: rank, volume, ATH, and more
- ids= bitcoin,ethereum(required)
- vs= usd
https://agentx402pay.com/api/crypto-market?ids=bitcoin%2Cethereum&vs=usd
Top trending cryptocurrencies right now
No query params required.
https://agentx402pay.com/api/crypto-trending
Real ranked web search (Exa): title, URL, published date, relevance score
- q= Base blockchain(required)
- numResults= 5
https://agentx402pay.com/api/web-search?q=Base%20blockchain&numResults=5
Finds the same real-world question priced differently on Polymarket vs. Kalshi and ranks by how far the odds diverge
- q= election
- limit= 10
- minDivergencePct= 10
https://agentx402pay.com/api/prediction-arb?q=election&limit=10&minDivergencePct=10
On-chain data
4Multi-chain reads across Base, Ethereum, Polygon, Arbitrum, Optimism — balances, gas prices, ENS, and a safelisted read-only RPC proxy, all built on free public nodes.
Safelisted read-only JSON-RPC proxy across five chains
eth_call, eth_getBalance, eth_blockNumber, and more
- method= eth_blockNumber(required)
- chain= base
- params= []
https://agentx402pay.com/api/rpc?method=eth_blockNumber&chain=base¶ms=%5B%5D
Native + optional ERC-20 token balance for any address
- address= 0xd8dA...6045(required)
- chain= base
- token= 0x8335...0913
https://agentx402pay.com/api/wallet-balance?address=0xd8dA...6045&chain=base&token=0x8335...0913
Current gas price + EIP-1559 fee estimate
- chain= base
https://agentx402pay.com/api/gas-price?chain=base
ENS name ⇄ address resolution
- name= vitalik.eth
https://agentx402pay.com/api/ens-resolve?name=vitalik.eth