# Swerver Web Search Batch API

> Swerver Web Search Batch API is a paid API for AI agents from websearch--gw.swerver.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14, last successful call 2026-06-27).

Fetches and scrapes multiple URLs in a single batch request, returning clean HTML, Markdown, plain text, or extracted links with optional JavaScript execution and CSS selector targeting

## Facts

- Endpoint: POST https://websearch--gw.swerver.net/batch
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-06-27
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swerver-web-search-batch-api-7a14d9a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uPNq8b8AWiqhUWlA4MS1t

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-web-search-batch-api-7a14d9a3 -d '<json body>'
```

Example prompt: Can you fetch these three URLs for me — https://example.com, https://news.ycombinator.com, and https://techcrunch.com — and give me back the content of each one as clean Markdown?

## When to prefer this

Choose this endpoint when you need to scrape or fetch multiple URLs in a single round-trip to minimize latency and payment overhead. Ideal for agents that need to gather content from several pages simultaneously, want clean Markdown or plain text output without post-processing, or need JavaScript rendering and CSS selector targeting. Prefer over single-URL endpoints when you have 2+ URLs to process. No API key setup required — pay-per-use via USDC on Base makes it suitable for ad-hoc or low-volume automation.

## Known failure modes

- URL unreachable or returns non-200 status — individual result may contain error or empty content
- JavaScript evaluation failure on dynamic pages — JS errors may cause incomplete rendering
- Payment failure via x402 protocol — request blocked if USDC payment not completed
- CSS selector matches nothing — empty content returned for that field
- Stealth mode bypass failure on bot-protected sites — content may be blocked or captcha'd
- Batch too large — may hit size or rate limits causing partial failures

## How this service works

Web search and scraping API. Search the web or 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

A JSON array of results, one per input URL, each containing the scraped content in the requested format (Markdown, HTML, plain text, or links), plus metadata including whether the content was truncated, elapsed time in milliseconds, and content length. Also includes total batch processing time.

## Request schema (JSON Schema)

```json
{
 "tags": [
  "web",
  "scraping",
  "batch",
  "headless-browser"
 ],
 "description": "Scrape multiple URLs in parallel and return all results"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "url": "https://example.com",
    "format": "markdown",
    "content": "# Example",
    "metadata": {
     "truncated": false,
     "elapsed_ms": 300,
     "content_length": 500
    }
   }
  ],
  "total_time_ms": 1200
 }
}
```

## More

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