# AGISHub Web Scraper – URL to Markdown

> AGISHub Web Scraper – URL to Markdown is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Fetches any public web page and returns its main content as clean, token-efficient Markdown, with optional JavaScript rendering for SPAs.

## Facts

- Endpoint: POST https://api.agishub.com/paid/web-scraper
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-web-scraper-url-to-markdown-0db598e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VgvteAkuW6mi81lGvJUhq

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 agishub-web-scraper-url-to-markdown-0db598e8 -d '<json body>'
```

Example prompt: Can you fetch the page at https://example.com/blog/ai-trends and give me its content as clean markdown? It's a JavaScript-heavy site so make sure to render it first.

## When to prefer this

Use this endpoint when an AI agent needs to read or ingest a web page's content as clean, LLM-friendly Markdown — especially for RAG pipelines, content summarization, or any task where stripping HTML boilerplate matters. Prefer it over raw HTTP fetches when you need structured, token-efficient text. Enable render:true for SPAs or JS-heavy pages.

## Known failure modes

- URL is not publicly accessible or returns 4xx/5xx — scrape fails or returns error
- JavaScript-heavy page returns empty content when render:false is used — set render:true
- Page blocks bots via CAPTCHA or anti-scraping measures — content may be empty or partial
- Invalid URL format causes a validation error
- max_chars too small — returns heavily truncated content with truncated:true

## How this service works

Fetch any public web page and return its main content as clean, token-efficient Markdown (title, description, headings, links, lists). Set render:true to execute JavaScript first for single-page apps or JS-heavy pages that would otherwise come back empty. Built for RAG and for agents that need to read the contents of a URL.

## Output

A JSON object containing the page's main content rendered as clean Markdown, including title, meta description, headings, lists, and optionally links and images. May include a `truncated` flag if max_chars was applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Full http/https URL of the page to extract."
      },
      "render": {
       "type": "boolean",
       "description": "Render JavaScript with a headless browser before extracting (default false). Enable for SPAs / JS-heavy pages that return empty content otherwise. Slower."
      },
      "max_chars": {
       "type": "integer",
       "minimum": 0,
       "description": "Truncate the markdown to at most this many characters (sets truncated:true).",
       "exclusiveMinimum": true
      },
      "include_links": {
       "type": "boolean",
       "description": "Keep hyperlinks in the markdown output (default true)."
      },
      "include_images": {
       "type": "boolean",
       "description": "Keep images as markdown (default false)."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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