WebExtract

WebExtract API

Web page to clean Markdown + fixed-schema structured JSON for AI agents. robots.txt respected. Free tier is opt-in: send X-Billing: free (or ?free=1) for 20…

Developer tools#development

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Web page to clean Markdown + fixed-schema structured JSON for AI agents. robots.txt respected. Free tier is opt-in: send X-Billing: free (or ?free=1) for 20 calls/day per IP. Requests with no key, no payment and no opt-in get HTTP 402 Payment Required (reason x402_required); X-Billing: x402 does the same explicitly. MCP (/mcp) keeps 20 free calls/day per IP without a header. Credits never expire. No charge on failed fetches (404, timeout, blocked, robots.txt disallowed). Structured JSON at no extra cost: /v1/extract = 1 credit, /v1/markdown = 0.4 credit. If structured fields come back empty, you're only charged the Markdown rate. Prepaid packs $1=200 credits, $5=1000 credits, $20=5000 credits, $50=15000 credits via https://webextract.dev/#pricing (Authorization: Bearer ). Or pay per call without an account via x402 v2: /v1/extract $0.005, /v1/markdown $0.002 in USDC on Base (recommended), Polygon, Arbitrum One, World Chain, Monad, Avalanche C-Chain or OP Mainnet (eip155:8453, eip155:137, eip155:42161, eip155:43114, eip155:10, eip155:480, eip155:143); send the signed payload in the PAYMENT-SIGNATURE header; x402 settles at the quoted price and only when the request succeeds. Sandbox for testing x402 clients: same endpoints under /sandbox/v1/* or with X-Billing: x402-testnet, Base Sepolia (eip155:84532) test USDC only, free test money, rate limited. JS rendering (headless browser, JavaScript executed, ports 80/443 only, one render at a time per client): /v1/render/extract = 1.6 credits or $0.008 x402, /v1/render/markdown = 0.8 credits or $0.004 x402; 5 free renders/day per IP with X-Billing: free (separate from the 20/day free tier); sandbox under /sandbox/v1/render/* or X-Billing: x402-testnet. Failed renders are not charged.

Endpoints 9

  • GETURL → clean Markdown + structured JSON/v1/extract
  • POSTURL → clean Markdown + structured JSON (POST alias: url in JSON or form body)/v1/extract
  • GETURL → clean Markdown only (0.4 credit / $0.002 x402)/v1/markdown
  • POSTURL → clean Markdown only (0.4 credit / $0.002 x402) (POST alias: url in JSON or form body)/v1/markdown
  • GETURL → headless-browser render (JavaScript executed) → Markdown + structured JSON (1.6 credits / $0.008 x402)/v1/render/extract
  • POSTURL → headless-browser render (JavaScript executed) → Markdown + structured JSON (1.6 credits / $0.008 x402) (POST alias: url in JSON or form body)/v1/render/extract
  • GETURL → headless-browser render (JavaScript executed) → Markdown only (0.8 credits / $0.004 x402)/v1/render/markdown
  • POSTURL → headless-browser render (JavaScript executed) → Markdown only (0.8 credits / $0.004 x402) (POST alias: url in JSON or form body)/v1/render/markdown
  • GETRemaining credits (or free calls today without key)/v1/balance

API details

Base URL
https://api.webextract.dev
Authentication
A bearer token in the Authorization header
An API key in the x-api-key header
Operations
9 operations on 5 pathsGET 5POST 4
Response formats
application/json
Description format
OpenAPI 3.1.0, API version 1.5.0

How to test the WebExtract API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the WebExtract API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “URL → clean Markdown + structured JSON” (GET /v1/extract), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the WebExtract API?

Web page to clean Markdown + fixed-schema structured JSON for AI agents. robots.txt respected. Free tier is opt-in: send X-Billing: free (or ?free=1) for 20… It is listed under Developer tools and has 9 endpoints.

Who publishes the WebExtract API?

It is listed from WebExtract's public API description (an OpenAPI document), not published by WebExtract on Swastik Codes. Anyone who controls webextract.dev can claim the profile by adding a DNS TXT record.

What is the base URL of the WebExtract API?

Requests go to https://api.webextract.dev. Endpoint paths are added to this base URL.

How do I authenticate with the WebExtract API?

It accepts 2 methods: A bearer token in the Authorization header; an API key in the x-api-key header.

How many endpoints does the WebExtract API have?

9 operations on 5 paths (5 GET, 4 POST).

Is forking the WebExtract API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.