CleanSnapv1 API
Zero-Login API Playground · Pure-TS Engine · MCP Ready

Turn any webpage into clean LLM Markdown

One fast Micro-API that strips GDPR cookie modals, nav bars, scripts, and ads — returning token-counted Markdown, OpenGraph metadata, headings, and link graphs for AI agents & RAG.

Median: <350msToken Savings: 75–92%SSRF Guard: Strict
POST/api/v1/extract
SSRF Guard On
1-Click Presets:
curl -X POST "https://usecleansnap.com/api/v1/extract" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://docs.acme-ai.dev/guides/streaming-tool-calls",
    "stripCookieBanners": true,
    "stripNav": true,
    "includeLinks": true,
    "includeMetadata": true,
    "maxChars": 24000
  }'
LLM CONTEXT BENCHMARK (1,200 SAAS & DOCS URLS)

Stop paying frontier-model input rates for cookie banners

Raw HTML dumps waste up to 90% of your context window on Tailwind classes, hydration JSON, inline SVGs, and OneTrust dialogs.

Raw HTML DOM Dump19,400 tokens / page
Naive Regex Text Strip7,850 tokens / page
CleanSnap LLM-Ready Markdown2,180 tokens / page (-88.7%)

Strict SSRF Protection

Blocks localhost, RFC1918 private IPv4, 169.254.169.254 cloud metadata, IPv6 ULA, and DNS-rebinding redirects.

Balanced CMP Stripping

Excises nested OneTrust, Cookiebot, TrustArc, Didomi, and GDPR overlays without breaking article markup.

MCP Server Native

Copy-paste synced MCP JSON configs for Claude Desktop, Cursor, and Antigravity right from the playground.

Metadata & Link Graph

Extracts canonical, OpenGraph, author, publish date, heading tree, and deduplicated internal/outbound links.

DEVELOPER ENGINEERING GUIDES (28)

Production playbooks for AI web extraction

Copy-paste code, SSRF checklists, MCP configs, and RAG chunking recipes for real-world HTML extraction.

All 28 Guides
Predictable Flat-Rate Pricing

Stop burning credits on headless Chrome

Every extraction costs the same regardless of page length. No opaque token multipliers, no browser concurrency walls.

Free

30 RPM
$0/month

1,000 extractions / mo

Zero-login playground and personal AI agent prototyping.

  • GET & POST /api/v1/extract
  • Cookie banner & nav stripping
  • Metadata, headings & link graph
  • LLM token estimation stats
  • MCP Server config generator
Most Popular

Starter

120 RPM
$19/month

50,000 extractions / mo

For indie SaaS apps, RAG pipelines, and active coding agents.

  • Everything in Free
  • Dedicated API key + usage dashboard
  • Up to 100k chars per extraction
  • Custom strip-selector overrides
  • Priority email support

Growth

400 RPM
$49/month

200,000 extractions / mo

High-concurrency AI agents, research tools, and SaaS monitors.

  • Everything in Starter
  • Batch URL extraction queue
  • ETag / canonical response caching
  • Webhook alerts on diff changes
  • 99.9% uptime SLA

Scale

1,500 RPM
$99/month

1,000,000 extractions / mo

Production enterprise RAG ingestion with predictable flat billing.

  • Everything in Growth
  • Dedicated regional edge routing
  • Custom User-Agent & allowlist
  • SOC-ready zero-payload logging
  • Direct Slack engineering channel

Developer Frequently Asked Questions

How does CleanSnap convert webpages without headless Chrome cold starts?

CleanSnap runs a pure-TypeScript HTML extraction engine that fetches SSR/SSG HTML directly over HTTP, strips scripts, styles, cookie/consent overlays, navigation, and footers using balanced-tag excision, prefers <article> or <main>, and converts headings, lists, blockquotes, tables, and fenced code blocks into clean LLM-ready Markdown.

How does CleanSnap prevent SSRF when AI agents pass arbitrary URLs?

Every live request validates URL schemes (http/https only), blocks localhost, RFC1918 private IPv4 ranges, link-local cloud metadata IPs (169.254.169.254), private IPv6 ranges, and verifies resolved DNS records across every manual redirect hop.

Can I connect CleanSnap to Claude Desktop, Cursor, or Antigravity via MCP?

Yes. Toggle your preferred options in the Playground above and click the 'MCP Server Config' tab to copy a ready-to-paste JSON server configuration for Claude Desktop, Cursor, Windsurf, or Antigravity.

What response headers and metrics are included on every API call?

Every response returns X-Extract-Time-Ms, X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers alongside JSON stats for wordCount, charCount, estimatedTokens, rawEstimatedTokens, and tokenSavingsPercent.

Does CleanSnap support both GET and POST requests?

Yes. Send POST /api/v1/extract with a JSON body ({ url, stripCookieBanners, stripNav, includeLinks, includeMetadata, maxChars }) or GET /api/v1/extract?url=https://example.com.