# x402 Agent Tools – Web Page to Markdown Converter

> x402 Agent Tools – Web Page to Markdown Converter is a paid API for AI agents from api.gptshopltd.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-19).

Fetches a public web page by URL and returns its content as clean Markdown text, including title and word count.

## Facts

- Endpoint: GET https://api.gptshopltd.com/v1/web/markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-tools-web-page-to-markdown-converter-b37509cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PJWbtaBgDaXJoFwHFbHRf

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 x402-agent-tools-web-page-to-markdown-converter-b37509cb
```

Example prompt: Can you fetch the content of https://en.wikipedia.org/wiki/Artificial_intelligence and give it to me as markdown so I can read through it?

## When to prefer this

Choose this endpoint when an agent needs to read and process the textual content of a specific public web page without managing API keys or accounts. It is ideal for LLM pipelines that need clean markdown input from arbitrary URLs, paid frictionlessly per-call via USDC on Base or Solana using the x402 protocol. Prefer this over headless browser tools when lightweight markdown extraction suffices and over full-site crawlers when only a single page is needed.

## Known failure modes

- URL is not publicly accessible or requires authentication — returns error or empty content
- URL points to a non-HTML resource (PDF, image, binary) — markdown may be empty or malformed
- Page uses heavy JavaScript rendering — content may be incomplete if JS is not executed
- Invalid or malformed URL provided — schema validation error on required 'url' query param
- Payment failure via x402 protocol — 402 response returned before content is fetched

## How this service works

Pay-per-call tools for AI agents. USDC on Base or Solana via x402 v2; no keys, no accounts.

## Output

A JSON object containing the original URL, the page title, the full page content rendered as Markdown, and a word count integer. The markdown strips HTML boilerplate and navigation, leaving readable prose and structure.

## 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",
       "description": "Absolute public http(s) URL of the page"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://en.wikipedia.org/wiki/HTTP_402",
  "title": "List of HTTP status codes",
  "markdown": "This article lists standard...",
  "wordCount": 6414
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-tools-web-page-to-markdown-converter-b37509cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gptshopltd.com](https://www.zero.xyz/host/api.gptshopltd.com/llms.txt)
