# Web Scrape to Markdown

> Web Scrape to Markdown is a paid API for AI agents from x402.orthogonal.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Fetches a webpage by URL and converts its HTML content into clean Markdown format

## Facts

- Endpoint: GET https://x402.orthogonal.com/context-dev/web/scrape/markdown
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-scrape-to-markdown-21294517
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tuk_ZV1d9qo6ezm08qEWp

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 web-scrape-to-markdown-21294517
```

Example prompt: Can you scrape https://www.example.com/article/ai-trends-2025 and give me the content as markdown, keeping the links but only pulling the main article body without navigation or sidebars?

## When to prefer this

Choose this endpoint when you need a webpage's content in readable Markdown format rather than raw HTML. It is ideal for LLM pipelines that need clean, structured text from arbitrary URLs — e.g. summarization, Q&A, research, or archiving workflows. Prefer it over the raw HTML sibling endpoint when downstream processing expects Markdown. Use the useMainContentOnly flag to filter noise for article or documentation pages.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — scrape fails with an error
- Page requires JavaScript rendering and content is not present in raw HTML
- URL missing protocol prefix (http:// or https://) — request rejected by schema validation
- Target site blocks scraping via robots.txt or anti-bot measures — returns empty or error content
- Very large pages may time out or return truncated content

## How this service works

Scrapes the given URL, converts the HTML content to Markdown, and returns the result.

## Output

Returns the page content as a Markdown-formatted string. Optionally includes hyperlinks (as Markdown link syntax), image references, or strips peripheral page elements (navigation, headers, footers, sidebars) to return only the main content body. Base64-encoded images can be shortened to reduce output size.

## 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",
     "properties": {
      "url": {
       "type": "string",
       "description": "Full URL to scrape and convert to markdown (must include http:// or https:// protocol)"
      },
      "includeLinks": {
       "type": "boolean",
       "description": "Preserve hyperlinks in Markdown output"
      },
      "includeImages": {
       "type": "boolean",
       "description": "Include image references in Markdown output"
      },
      "useMainContentOnly": {
       "type": "boolean",
       "description": "Extract only the main content of the page, excluding headers, footers, sidebars, and navigation"
      },
      "shortenBase64Images": {
       "type": "boolean",
       "description": "Shorten base64-encoded image data in the Markdown output"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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