API Documentation

Pay-per-call crypto market analytics API. No signup, no API keys. Pay with USDC on Base.

Version 8.0.0 Network base USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 Pay to 0x6BEd284f036B194cCfD1d035CadDAF164035e51d

Endpoints

Every endpoint returns JSON. Free endpoints need no payment, no account and no wallet.

GET/ FREE

Service discovery and metadata

GET/health FREE

Health check

GET/docs FREE

This documentation

GET/api/quote 0.01 USDC

Real-time market quote for BTC, ETH, SOL via Coinbase (Binance/CoinCap/CoinGecko fallbacks)

symbol — Optional. Comma-separated: btc,eth,sol (default: all)
$ curl https://munchausen-x402.munlab.workers.dev/api/quote?symbol=btc,eth
GET/api/analyze 0.05 USDC

LLM-powered market analysis via OpenRouter

$ curl https://munchausen-x402.munlab.workers.dev/api/analyze
GET/api/report 0.25 USDC

Full LLM research report via OpenRouter

$ curl https://munchausen-x402.munlab.workers.dev/api/report
POST/api/scrape 0.005 USDC

Fetch any URL and return clean extracted text (HTML stripped), title, metadata

body: {"url":"https://example.com"}
$ curl -X POST https://munchausen-x402.munlab.workers.dev/api/scrape -H 'Content-Type: application/json' -d '{"url":"https://example.com"}'
POST/api/fact-check 0.02 USDC

LLM fact-check of a claim: verdict (supported/refuted/partially_true/unverifiable), confidence 0-1, reasoning

body: {"claim":"The Eiffel Tower is in London"}
$ curl -X POST https://munchausen-x402.munlab.workers.dev/api/fact-check -H 'Content-Type: application/json' -d '{"claim":"The Eiffel Tower is in London"}'
POST/api/token-safety 0.01 USDC

EVM token rug-pull risk screening: liquidity, volume, pair age, txn counts, heuristic 0-100 risk score, verdict

body: {"address":"0x..."}
$ curl -X POST https://munchausen-x402.munlab.workers.dev/api/token-safety -H 'Content-Type: application/json' -d '{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}'
GET/api/token-safety/free FREE

Basic EVM token rug-risk check with no payment. Full audit via POST /api/token-safety.

address — Required. EVM token contract address
$ curl "https://munchausen-x402.munlab.workers.dev/api/token-safety/free?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
GET/revenue admin only

Revenue statistics (requires X-Admin-Key header)

How a payment works

Create EIP-3009 transferWithAuthorization signature for USDC

  1. 1. Send GET request to a paid endpoint
  2. 2. Receive 402 response with payment requirements in accepts[] array
  3. 3. Create and sign USDC payment transaction (EIP-3009 transferWithAuthorization)
  4. 4. Retry request with X-PAYMENT header containing base64-encoded payment payload
  5. 5. Server verifies payment via facilitator and returns data with X-PAYMENT-RESPONSE header
  6. Create EIP-3009 transferWithAuthorization signature for USDC
  7. curl -H 'X-Payment: <base64-encoded-payment-payload>' https://munchausen-x402.munlab.workers.dev/api/quote
  8. Server returns 200 with data and X-PAYMENT-RESPONSE header

The 402 you get first

curl -v https://munchausen-x402.munlab.workers.dev/api/quote → 402 Payment Required

{ "x402Version": 1, "accepts": [ { "scheme": "exact", "network": "base", "maxAmountRequired": "10000", "resource": "https://munchausen-x402.munlab.workers.dev/api/quote", "description": "Real-time market quote (BTC/ETH/SOL) via Coinbase (Binance/CoinCap/CoinGecko fallbacks)", "payTo": "0x6BEd284f036B194cCfD1d035CadDAF164035e51d", "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "mimeType": "application/json", "maxTimeoutSeconds": 120 } ] }