{"version":1,"resources":["https://api.switch402.com/v1/scrape","https://api.switch402.com/v1/scrape/lite","https://api.switch402.com/v1/map","https://api.switch402.com/v1/metadata","https://api.switch402.com/v1/screenshot","https://api.switch402.com/v1/screenshot/full","https://api.switch402.com/v1/search","https://api.switch402.com/v1/pdf"],"instructions":"POST {\"url\": \"<page>\"} to /v1/scrape ($0.008) or /v1/scrape/lite ($0.003) for the page as clean markdown. x402 v2 exact, USDC on Base (eip155:8453); charged only on success. Site tools: POST {\"url\": \"<page>\"} to /v1/map (links + sitemap URLs, optional \"limit\") or /v1/metadata (title, description, OG/Twitter, canonical, JSON-LD), map and metadata $0.001 each. Screenshot: POST {\"url\": \"<page>\"} to /v1/screenshot ($0.008, viewport) or /v1/screenshot/full ($0.012, whole page); returns a base64 PNG (max 8 MB). Search: POST {\"q\": \"<query>\", \"limit\": 10} to /v1/search ($0.008; query up to 400 characters, up to 10 results). PDF to text: POST {\"url\": \"<pdf>\", \"pages\": [1, 2]} to /v1/pdf ($0.008; up to 10 MB with a declared size and 50 pages, text-based PDFs; scanned or password-protected PDFs return an error and are not charged). Free quote: /v1/quote?url=<page>. MCP: POST https://api.switch402.com/mcp (tools scrape, scrape_lite, map, metadata, screenshot, screenshot_full, search, pdf, quote). Docs: https://api.switch402.com/llms.txt, https://api.switch402.com/openapi.json Optional prepaid API keys: Buy: POST https://api.switch402.com/v1/credits/buy/{5|20|50|monthly} (x402; the key is shown once). Balance: GET https://api.switch402.com/v1/credits (Bearer key). Recover: POST https://api.switch402.com/v1/credits/recover/nonce {\"key_id\"} -> sign \"switch402 recover <key_id> <nonce>\" with the buying wallet -> POST https://api.switch402.com/v1/credits/recover {\"key_id\",\"nonce\",\"signature\"}.","openapi":"https://api.switch402.com/openapi.json","mcp":"https://api.switch402.com/mcp","credits":{"optional":true,"auth":"Authorization: Bearer <key>","packs":[{"id":"5","buy":"https://api.switch402.com/v1/credits/buy/5","method":"POST","price_usd":"$5","credit_usd":"$5"},{"id":"20","buy":"https://api.switch402.com/v1/credits/buy/20","method":"POST","price_usd":"$20","credit_usd":"$21"},{"id":"50","buy":"https://api.switch402.com/v1/credits/buy/50","method":"POST","price_usd":"$50","credit_usd":"$55","max_per_wallet_per_day":1},{"id":"monthly","buy":"https://api.switch402.com/v1/credits/buy/monthly","method":"POST","price_usd":"$10","credit_usd":"$10","plan_days":30,"plan_lite_price_usd":"$0.0025"}],"balance":"https://api.switch402.com/v1/credits","recover":{"nonce":"https://api.switch402.com/v1/credits/recover/nonce","recover":"https://api.switch402.com/v1/credits/recover","message":"switch402 recover <key_id> <nonce>"},"limits":{"per_key_per_minute":60,"per_key_calls_per_day":3000,"per_key_spend_per_day_usd":"$5","purchases_per_wallet_per_day":3},"terms":"Prepaid credits (optional). Buy a $5, $20 (+5% credit) or $50 (+10% credit) pack once with x402 and get an API key. Send it as `Authorization: Bearer <key>`. Each call debits that endpoint's own price, only when it succeeds: `/v1/scrape/lite` $0.003 per page, `/v1/scrape` $0.008 per page, `/v1/map` and `/v1/metadata` $0.001 per call, `/v1/screenshot` $0.008, `/v1/screenshot/full` $0.012, `/v1/search` $0.008 and `/v1/pdf` $0.008 per call. Failed calls cost nothing. Monthly plan, $10 for 30 days. During the period, lite pages bill at the plan rate: $10 covers 4,000 lite pages. You pay for pages you actually use. Nothing expires: leftover balance stays on your key and is debited at the normal endpoint prices after the period ends. Lost a key? The wallet that bought it can move the balance to a new key with a signed, single-use challenge. Limits: 60 calls per minute per key, 3,000 calls per day, $5 spend per day; 3 purchases per wallet per day, at most 1 $50 pack."}}