close
switch402
Live

Web data API: scrape, map, metadata, screenshots, search, PDF

switch402 gives AI agents one pay-per-call API for web data: page to markdown ($0.008, lite $0.003), site map and page metadata ($0.001), screenshots ($0.008, full page $0.012), web search ($0.008) and PDF to text ($0.008). Pay per call in USDC on Base over x402, charged only on success; scrape calls fail over automatically. No signup, API key or plan required; optional prepaid packs and a $10 monthly lite plan.

Quickstart

  1. Send the request below. Without payment it returns HTTP 402 with the x402 payment requirements.
  2. Pay $0.008 USDC on Base with any x402 client and retry. Most clients do this step for you.
  3. You get the page back as markdown. You are charged only on success; if every provider fails you get a 502 and pay nothing.
curl -i -X POST https://api.switch402.com/v1/scrape \
  -H 'content-type: application/json' \
  -H 'user-agent: my-agent/1.0' \
  -d '{"url":"https://example.com"}'

Send your own User-Agent header (for example my-agent/1.0); some default library user-agents are blocked at the edge. A lite endpoint, POST https://api.switch402.com/v1/scrape/lite, is $0.003 per call.

367
x402 listings tracked by YourAITools
325
returned valid x402 payment terms on their last check
29
search and web-scrape tools in the YourAITools directory with valid x402 terms

Source: youraitools.co/listings.json and api.youraitools.co/stats/v1/listings (one unpaid check per listing per day), pulled Oct 30, 2026, 1:06 PM ET. These are directory counts, not switch402 usage.

How it works

  1. 1
    Call one endpoint

    Send a scrape request to a single switch402 URL.

  2. 2
    We pick the provider

    We route to multiple verified x402 scrape providers. Any that failed their last check are skipped, and a failed call fails over to the next.

  3. 3
    Pay per call

    Pay $0.008 USDC on Base over x402, only on success. No plan required; optional prepaid packs and a $10 monthly lite plan, and nothing expires: leftover balance stays on your key.

Today switch402 covers page to markdown, site maps, page metadata, screenshots, web search and PDF to text.

Want to see when pay-per-call beats a monthly plan? Try the cost calculator.

Pricing

Pay per successful call in USDC on Base over x402. No signup or plan required. Failed calls cost nothing.

  • Scrape$0.008 per page
    /v1/scrape

    Any public page as clean markdown, with automatic failover.

  • Scrape lite$0.003 per page
    /v1/scrape/lite

    /v1/scrape/lite: $0.003 per page. A page as markdown, charged only on success.

  • Site map$0.001 per call
    /v1/map

    Lists a site's pages: the same-site links on a page plus the URLs in its sitemap, deduped, up to 1,000.

  • Page metadata$0.001 per call
    /v1/metadata

    Reads a page's title, description, canonical URL, language, social (OpenGraph and Twitter) tags and JSON-LD structured data.

  • Screenshot$0.008 per call
    /v1/screenshot

    The visible 1280x800 viewport of a page, JavaScript rendered, as a PNG.

  • Full-page screenshot$0.012 per call
    /v1/screenshot/full

    The whole scrollable page as a PNG.

  • Web search$0.008 per call
    /v1/search

    Up to 10 ranked web results for a query, each with title, URL and snippet.

  • PDF to text$0.008 per call
    /v1/pdf

    The text of a public PDF, page by page: up to 10 MB and 50 pages, optional page selection. Not charged if extraction fails.

  • QuoteFree
    /v1/quote

    The price and availability for a URL before you pay.

Optional prepaid credits and a $10 monthly lite plan

Prefer a balance? Buy a $5, $20 (+5% credit) or $50 (+10% credit) pack once with x402 and get an API key. Each call debits that endpoint's own price, only when it succeeds. The monthly plan is $10 for 30 days: lite pages bill at $0.0025 during the period, so $10 covers 4,000 lite pages. Nothing expires.

How credits work

Screenshots, web search and PDF to text

All use cases

Scraping API pricing, answered

Get updates (optional)

Optional: leave your email and we will write when we add a new tool. Live today: scrape, scrape lite, screenshot, full-page screenshot, web search, site map, page metadata and PDF to text. No spam, and you do not need this to use the API.