ExactJSON API & MCP Documentation

ExactJSON exposes 11 live, deterministic, pay-per-call JSON endpoints over x402 V2 (Base Mainnet (eip155:8453), USDC) and Model Context Protocol (MCP). No API keys, no account registration, and strict Pay-Only-On-Success settlement.

Authentication & x402 V2 Payment Flow

Every paid /v1/* route requires zero API keys. Send an unpaid GET request to receive HTTP 402 Payment Required with a base64-encoded PAYMENT-REQUIRED header containing exact Base USDC terms, then retry with PAYMENT-SIGNATURE via @x402/fetch. Only HTTP 200 responses settle; 400, 404, 405, 502, and 503 never charge your wallet.

MCP Server (Remote HTTP & Stdio)

Connect x402-native MCP clients directly to https://exactjson.com/mcp (Streamable HTTP, JSON-RPC 2.0, 12 tools), or run the local stdio bridge npx -y exactjson-mcp with BUYER_PRIVATE_KEY and MAX_PAYMENT_USD=$0.05. Official MCP Registry ID: io.github.exactjsondev/exactjson.

Endpoint Reference (11 Paid Routes + Free Health)

Check GET https://exactjson.com/health for free before batch workflows to verify paused: false.

Endpoint USDC Summary & Sample Request
GET /v1/solana/safety $0.01 Solana SPL token safety & liquidity snapshot
Deterministic Solana SPL token safety snapshot combining RugCheck security risks, authority flags, and DEX liquidity/volume/FDV ratios.
GET /v1/solana/trending $0.015 Trending Solana tokens pre-screened with RugCheck safety scores
Live trending Solana pools combined with parallel RugCheck deterministic risk scores, authority flags, liquidity, and 24h trader flow in one call.
GET /v1/perps/snapshot $0.005 Hyperliquid perpetual futures market snapshot
Deterministic Hyperliquid perpetual futures snapshot with mark/oracle basis, annualized funding rate, open interest, spread, L2 depth imbalance, and $10k VWAP slippage.
GET /v1/perps/screener $0.01 Hyperliquid all-markets perpetual futures screener
Scans all ~180+ Hyperliquid perpetuals in one call: market breadth, median funding APR, and top leaderboards for extreme funding, mark/oracle basis dislocations, and volume/OI turnover.
GET /v1/perps/funding-arb $0.015 Cross-venue perpetual funding spread scanner (Hyperliquid, dYdX v4, Kraken Futures)
Compares live hourly & annualized funding rates across Hyperliquid, dYdX v4, and Kraken Futures in one call to surface the widest cross-venue funding spreads and mark-price basis.
GET /v1/predictions/scanner $0.01 Polymarket + Kalshi live prediction markets scanner & carry finder
Scans live Polymarket and Kalshi prediction markets in one call with implied probabilities, bid-ask spreads, 24h volume/liquidity ratios, keyword search, and high-conviction annualized carry to expiry.
GET /v1/options/surface $0.015 Deribit BTC/ETH options volatility surface, skew, max pain & OI walls
Distills hundreds of live Deribit BTC or ETH option contracts into one deterministic brief: ATM IV term structure, contango/backwardation slope, OTM put-call skew, put/call OI ratios, exact max pain strike, and top call/put OI walls.
GET /v1/macro/liquidity $0.01 Official US Treasury debt, TGA cash, NY Fed ON RRP, SOFR/EFFR & net liquidity impulse
Combines 5 official US Treasury Fiscal Data and NY Fed feeds in one call: exact US public debt, Treasury General Account (TGA) balance & flows, ON RRP balance, EFFR/SOFR funding spread (bps), and deterministic net USD liquidity impulse.
GET /v1/evm/safety $0.01 Multi-chain EVM token safety, honeypot simulation & DEX liquidity audit
Deterministic EVM token safety audit across Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC combining GoPlus security, Honeypot.is simulation, engine disagreement flags, and DEX liquidity ratios.
GET /v1/predictions/arb $0.02 Polymarket vs Kalshi cross-venue prediction market arbitrage detector
Matches overlapping Polymarket and Kalshi prediction markets within a 72h expiry window to surface cross-venue arbitrage spreads, fee-adjusted net edge (bps), annualized APY, and resolution-risk warnings.
GET /v1/execution/quote-check $0.01 Multi-tier pre-trade slippage & liquidity check for EVM swaps and Hyperliquid perps
Pre-trade execution and slippage simulator across USD size tiers ($1k/$10k/$50k+) for EVM DEX swaps (KyberSwap Aggregator + DEX Screener) or Hyperliquid perpetual L2 books, returning price impact bps, max size under 100bps, and liquidity grade.

Error Model & Retry Discipline

Errors return structured JSON with machine-readable error and human-readable message fields. Do not retry 400 (bad query parameter) or 404 (unknown token/market) without fixing inputs. Back off on 502 (fail-closed upstream outage) and 503 (operator pause).

API Versioning & Deprecation Policy

All paid endpoints are versioned in the URL path under /v1/*. Additive fields within v1 are non-breaking. Any breaking contract change ships under a new path prefix (e.g. /v2/*) with at least 90 days of advance notice via standard HTTP Deprecation and Sunset headers before retirement.