# switch402 Web Scrape (URL to Markdown)

> switch402 Web Scrape (URL to Markdown) is a paid API for AI agents from api.switch402.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-31).

Fetches a public web page and converts its content to Markdown, with failover, charged at $0.008 USDC only on success.

## Facts

- Endpoint: GET https://api.switch402.com/v1/scrape?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/switch402-web-scrape-url-to-markdown-35ce7911
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qAvPSKom3wEY1HTh_dabR

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 switch402-web-scrape-url-to-markdown-35ce7911
```

Example prompt: Can you scrape the page at https://example.com/article and give me the content in markdown so I can summarize it?

## When to prefer this

Choose this endpoint when you need the full readable content of a specific public web page in Markdown format, especially when you have a known URL and want clean, AI-readable text output. Prefer the /v1/scrape/lite variant if cost is a priority and you can tolerate potentially less complete content. Use this standard scrape endpoint when reliability and completeness matter more than the small cost difference.

## Known failure modes

- URL is not publicly accessible or requires authentication — returns error, no charge
- Page returns non-200 HTTP status — treated as failure, no charge
- URL exceeds 2048 character limit — rejected at input validation
- Failover exhausted: all fetch attempts fail — returns error, no charge
- Malformed or non-HTTP(S) URL provided — validation error

## How this service works

switch402 web data API, /v1/scrape: $0.008 per page, URL to markdown, with failover. Charged only on success.

## Output

Returns the full content of the requested web page converted to Markdown text, suitable for reading, summarizing, or further processing by an AI agent. Only returned (and charged) on a successful fetch.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 2048,
       "description": "Public http(s) page to convert to markdown"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/switch402-web-scrape-url-to-markdown-35ce7911/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.switch402.com](https://www.zero.xyz/host/api.switch402.com/llms.txt)
