# AgentX402Pay > AgentX402Pay (agentx402pay.com) is a set of 20 monetized HTTP APIs on the x402 payment protocol. No API keys or signups: call any route, receive an HTTP 402 response with the exact USDC price, sign a payment with an x402-compatible client, retry the request, and get the data back. Payments settle on Base, Polygon, Arbitrum, or Solana mainnet through Coinbase's CDP Facilitator; /api/generate and /api/ping accept Base only. Last updated: 2026-11-19. ## Docs - [OpenAPI spec](https://agentx402pay.com/openapi.json): machine-readable spec for all 20 endpoints, including per-route x402 pricing under `x-payment-info`. - [Pricing](https://agentx402pay.com/pricing): human-readable per-route USDC prices. - [x402 protocol docs](https://docs.x402.org): the underlying payment protocol. - [x402 resource list](https://agentx402pay.com/.well-known/x402): every paid URL on this server. ## Endpoints - [Weather](https://agentx402pay.com/api/weather) — live current conditions for any city, via Open-Meteo ($0.01) - [Text Generator](https://agentx402pay.com/api/generate) — text generation: usage-based up to $0.05 (upto) or flat $0.05 (exact); Base only - [Trend Insights](https://agentx402pay.com/api/insights) — topic attention from Wikipedia page views: 7-day average, week-over-week change, peak day; premium adds daily series, spikes and related topics ($0.01–$0.025) - [Heartbeat](https://agentx402pay.com/api/ping) — cheap repeatable ping via batch-settlement ($0.001; Base only) - [Polymarket Markets](https://agentx402pay.com/api/polymarket-markets) — search/list active markets ($0.01) - [Polymarket Market Detail](https://agentx402pay.com/api/polymarket-market) — single market by slug ($0.01) - [Kalshi Markets](https://agentx402pay.com/api/kalshi-markets) — search/list open markets ($0.01) - [Kalshi Market Detail](https://agentx402pay.com/api/kalshi-market) — single market by ticker ($0.01) - [Prediction Market Divergence](https://agentx402pay.com/api/prediction-arb) — same question on Polymarket and Kalshi, checked for matching outcome, numbers, dates and wording, with live quotes and hedge edge; no match = 404, not charged ($0.05) - [DeFi Protocol TVL](https://agentx402pay.com/api/defi-tvl) — by chain, plus market cap ($0.01) - [DeFi Chain TVL Ranking](https://agentx402pay.com/api/defi-chains) — chains by total DeFi TVL ($0.01) - [Crypto Price Lookup](https://agentx402pay.com/api/crypto-price) — price, 24h change, market cap ($0.01) - [Crypto Market Data](https://agentx402pay.com/api/crypto-market) — rank, 24h high/low, volume, ATH ($0.01) - [Crypto Trending](https://agentx402pay.com/api/crypto-trending) — top trending coins right now ($0.01) - [Web Search](https://agentx402pay.com/api/web-search) — real-time ranked results via Exa ($0.015) - [Multi-Chain RPC](https://agentx402pay.com/api/rpc) — safelisted read-only JSON-RPC proxy ($0.01) - [Wallet Balance Lookup](https://agentx402pay.com/api/wallet-balance) — native + ERC-20 balance ($0.01) - [Gas Price Oracle](https://agentx402pay.com/api/gas-price) — current gas + EIP-1559 estimate ($0.01) - [ENS Resolver](https://agentx402pay.com/api/ens-resolve) — name ↔ address resolution ($0.01) - [Gold Source Indexing](https://agentx402pay.com/api/gold-index) — POST the document in the request body (never in the URL or query string), as JSON `{"text": "..."}` (50 to 1,000,000 characters), a raw `text/plain` body, or `multipart/form-data` with a `file` field (plain text, HTML or PDF; 4 MB body limit). Or send JSON `{"url": "..."}` to index a public HTML, plain-text or PDF document (first 50 PDF pages). Returns a hierarchical index of sections and content blocks without rewriting your text: every node has an exact [start, end) span in UTF-16 code units that slices back to the source text, its full section path, and a SHA-256 fingerprint of that span, plus a coverage check showing whether any text was left out. ($0.05) ## Example: index a document ``` curl -i -X POST https://agentx402pay.com/api/gold-index \ -H "Content-Type: application/json" \ -d '{"text": "SERVICES AGREEMENT\n\nARTICLE 1 - SERVICES\nProvider will deliver the Services described in Exhibit A.", "filename": "services-agreement.txt"}' ``` The first call returns HTTP 402 with the price in the `PAYMENT-REQUIRED` header. Retry the same request with a signed x402 payment (for example with @x402/fetch's `wrapFetchWithPayment`) to receive the index. To upload a file instead: `curl -X POST https://agentx402pay.com/api/gold-index -F "file=@contract.pdf"`.