# Swerver Batch Web Scraper

> Swerver Batch Web Scraper is a paid API for AI agents from cheap-search--gw.swerver.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Batch-fetches up to 20 URLs using a headless browser, returning clean HTML, Markdown, plain text, or links with optional JavaScript evaluation and stealth mode

## Facts

- Endpoint: POST https://cheap-search--gw.swerver.net/batch
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swerver-batch-web-scraper-ec527f5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pbL0qhzJoY17ah67PueF7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability swerver-batch-web-scraper-ec527f5c -d '<json body>'
```

Example prompt: Can you scrape these 3 pages for me — https://example.com/products, https://example.com/about, and https://example.com/blog — and give me the content as Markdown? Enable stealth mode so they don't block us.

## When to prefer this

Choose this endpoint when you need to scrape multiple URLs in a single call (up to 20), especially when pages require JavaScript rendering. It is ideal when you want output in structured formats like Markdown or plain text rather than raw HTML, or when you need to run custom JS on each page. Prefer it over single-URL scraping APIs when batching saves latency and cost. Stealth mode makes it suitable for pages with basic bot-detection.

## Known failure modes

- URL is unreachable or times out — error field set on that result item
- Page blocks headless browsers even with stealth mode — may return empty or partial content
- JavaScript evaluation throws an error — may cause that URL's result to fail
- Batch exceeds 20 URLs — request rejected
- Payment via x402 fails or USDC balance insufficient — request not processed
- max_length truncates content — truncated flag set to true in metadata

## How this service works

Headless browser API for web scraping. Fetch any URL and get back clean HTML, Markdown, plain text, or extracted links. Supports JavaScript evaluation, CSS selector targeting, stealth mode, and batch operations. Pay-per-request via x402 protocol (USDC on Base). No API key required.

## Output

An array of results (one per URL) each containing the fetched content in the requested format (HTML, Markdown, text, or links), plus per-URL metadata including elapsed time in ms, original content length in bytes, and a truncation flag. Also returns total_time_ms for the batch. Individual URL failures surface an error field instead of content.

## Example request

```json
{
 "urls": [
  "https://example.com",
  "https://example.com/about"
 ],
 "format": "markdown",
 "stealth": true,
 "timeout": 30,
 "max_length": 5000
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "urls"
 ],
 "properties": {
  "urls": {
   "type": "array",
   "description": "URLs to scrape (max 20)"
  },
  "format": {
   "enum": [
    "html",
    "markdown",
    "text",
    "links"
   ],
   "type": "string"
  },
  "stealth": {
   "type": "boolean"
  },
  "timeout": {
   "type": "integer"
  },
  "evaluate": {
   "type": "string",
   "description": "JavaScript to evaluate on each page"
  },
  "max_length": {
   "type": "integer",
   "description": "Max content length per result"
  },
  "user_agent": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "results": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "error": {
      "type": "string",
      "description": "Error message if this URL failed"
     },
     "format": {
      "type": "string"
     },
     "content": {
      "type": "string"
     },
     "metadata": {
      "type": "object",
      "properties": {
       "truncated": {
        "type": "boolean",
        "description": "Whether content was truncated by max_length"
       },
       "elapsed_ms": {
        "type": "integer",
        "description": "Time taken to fetch and render the page in milliseconds"
       },
       "content_length": {
        "type": "integer",
        "description": "Original content length in bytes before truncation"
       }
      }
     }
    }
   }
  },
  "total_time_ms": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swerver-batch-web-scraper-ec527f5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cheap-search--gw.swerver.net](https://www.zero.xyz/host/cheap-search--gw.swerver.net/llms.txt)
