WebExtract is a web content extraction API for AI agents and RAG pipelines. In a single call it returns the page's main content as Markdown plus fixed-structure JSON data, including product/price, tables, and article metadata, with a consistent JSON structure across different websites.
Key capabilities:
- /v1/extract returns the main content as Markdown (navigation, ads, and scripts removed, tables converted to GFM format), product information (name, brand, SKU/GTIN, price, currency, availability, rating; price_detail lists list price/sale price/current price and matched variant; unknown prices are marked as unresolved with a reason), tables (headers and rows, including row count, column count, and width consistency checks), and article metadata (title, author, publish/modified date, canonical URL, language, site name).
- /v1/markdown returns only Markdown, title, and word count, at a lower price.
Usage:
- Free tier: REST calls require the X-Billing: free header or the ?free=1 parameter, with 20 free calls per IP per day and no key required; MCP calls get 20 free calls per day without any header.
- Paid option: prepaid credits, no subscription. Purchased via Stripe Checkout, with the API key shown once on the success page; existing keys can top up credits ($1, $5, $20, $50). Credits never expire, and failed scrapes (404, timeout, blocked, disallowed by robots.txt) are not charged. Structured JSON incurs no extra charge; if structured fields are empty, only the Markdown rate is charged.
- No-account payment: pay-per-use with USDC via x402, supporting 7 chains. Requests with no key, no payment, and no X-Billing: free return HTTP 402 with payment requirements, and x402 clients can pay automatically and retry.
- Integration: MIT-licensed official SDKs and toolkits (npm and PyPI), plus MCP client configuration examples (examples/mcp) that use the free tier by default and read the WEBEXTRACT_API_KEY environment variable. The remote MCP server address is https://api.webextract.dev/mcp,已在官方 Registered in the MCP Registry as dev.webextract/extract. MCP tools include extract_url (Markdown + structured JSON, 1 credit) and page_markdown (Markdown only, 0.4 credits), both declaring outputSchema and returning structuredContent.
Use cases:
- AI agents retrieving structured web data
- Content extraction and preprocessing for RAG pipelines
- Automated collection of product information, tables, and article metadata
Limitations:
- Currently only fetches raw HTML and does not execute JavaScript, so pages that rely on browser rendering may return less content.
- Respects robots.txt, does not bypass CAPTCHA or anti-bot protection, and rejects private network addresses.
- Error codes include 400 (missing or invalid URL), 401 (wrong key), 402 (payment required or insufficient credits), 413 (content too large), 415 (unsupported type), 422 (site blocked), 451 (disallowed by robots.txt); these errors are returned as JSON and are not charged.
- A sandbox environment is available (/sandbox/v1/extract and /sandbox/v1/markdown, or X-Billing: x402-testnet), accepting only Base Sepolia test USDC, rate-limited by IP.