# AGISHub Web Scraper

> AGISHub Web Scraper 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-15).

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

## Facts

- Endpoint: GET https://api.agishub.com/v1/web-scraper
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-web-scraper-4b1883c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RwfrnPPhWn2J8-C3d75v7

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-4b1883c0
```

Example prompt: Can you fetch the content of https://en.wikipedia.org/wiki/Artificial_intelligence and give me the main text as clean markdown, keeping the links but skipping images?

## When to prefer this

Choose this endpoint when an AI agent needs to read and understand the text content of a specific public web page, especially for RAG pipelines, research tasks, or when the agent needs to act on information at a known URL. Prefer it over full-site crawlers when you only need a single page. Use the render:true option specifically for JavaScript-heavy SPAs that return empty HTML without execution. It is more token-efficient than raw HTML fetching due to its Markdown cleaning.

## Known failure modes

- URL is not publicly accessible or returns 4xx/5xx — empty or error response
- JavaScript-heavy SPA returns empty content when render:false (solution: set render:true)
- Page behind authentication or paywall — content not accessible
- Very large pages may be truncated if max_chars is set low
- Malformed or invalid URL format causes request failure
- Rate limiting or blocking by target site may result in partial or empty content

## 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, token-efficient Markdown, including the title, description, headings, links, and lists. Optionally truncated to a specified character limit, with a flag indicating if truncation occurred.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "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
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Fetch any public web page and return its main content as clean, token-efficient Markdown (title, description, headings, "
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-web-scraper-4b1883c0/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)
