switch402

v0.4.1
com.switch402/switch402 Checked 3 days ago Published 1 month ago

Markdown scrape, site map, page metadata, screenshots, web search and PDF to text.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scrape Scrape a page to markdown

Page to clean markdown, routed to a healthy provider with automatic failover. Paid: $0.008 USDC on Base via x402 (charged only on success). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) page to convert to markdown.

scrape_lite Scrape a page to markdown (lite)

URL to markdown: any public page as clean markdown, with failover (/v1/scrape/lite: $0.003 per page). Paid: $0.003 USDC on Base via x402 (charged only on success). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) page to convert to markdown.

map Map a site: links + sitemap URLs

Same-site URLs found on the page plus sitemap URLs (robots.txt Sitemap lines or /sitemap.xml), deduped, up to limit (default 200, max 1000). Paid: map $0.001 USDC on Base via x402 (charged only on success). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) page or site root.
limitinteger

metadata Page metadata (title, OG, JSON-LD)

Title, meta description, canonical, lang, OpenGraph and Twitter tags, and parsed JSON-LD blocks of an HTML page. Paid: metadata $0.001 USDC on Base via x402 (charged only on success). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) HTML page.

screenshot Screenshot a page (PNG)

The visible part of a public page (1280x800 viewport, JavaScript rendered) as a base64 PNG in image_base64. Paid: $0.008 USDC on Base via x402 (charged only on success). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) page to capture.

screenshot_full Full-page screenshot (PNG)

The whole scrollable page (JavaScript rendered) as a base64 PNG in image_base64. Paid: $0.012 USDC on Base via x402 (charged only on success). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) page to capture.

pdf PDF to text

A public PDF URL in, its text page by page out (up to 50 pages, 10 MB; text-based PDFs). Paid: $0.008 USDC on Base via x402 (charged only when text comes back). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

ParameterTypeDescription
url *stringPublic http(s) URL of a PDF.
pagesOptional page numbers (up to 50): [1, 2] or "1-3,7".

quote Price and availability (free)

Free. Our price for a tier, how many providers are healthy right now, estimated latency, and payment status.

ParameterTypeDescription
url *stringPublic http(s) page to convert to markdown.
tierstring