# agent-web-reader Web Content Extractor (x402)

> agent-web-reader Web Content Extractor (x402) is a paid API for AI agents from x402.charliemorrison.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetches any public URL and returns extracted text, title, links, word count, and description — paid per call via USDC on Base, no API key required.

## Facts

- Endpoint: GET https://x402.charliemorrison.dev/extract
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-web-reader-web-content-extractor-x402-1f2a827f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2TaAMKdfSZG5lDchtURU3

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 agent-web-reader-web-content-extractor-x402-1f2a827f
```

Example prompt: Can you read the contents of https://techcrunch.com/2024/05/01/openai-launch/ and give me a summary of what the article says?

## When to prefer this

Use this endpoint when an AI agent needs to read and extract the textual content of any arbitrary public web URL at low cost ($0.002/call) without maintaining an API key, especially in pay-per-use autonomous agent pipelines using x402/USDC on Base for micropayments.

## Known failure modes

- URL is unreachable or returns a non-200 status — likely a 4xx/5xx from the upstream site
- URL is missing or malformed — 400 bad request
- Payment not settled or insufficient USDC balance — 402 payment required
- Target page requires JavaScript rendering — extracted text may be empty or incomplete
- Rate limiting or blocking by the target website — partial or empty content returned

## How this service works

Web-content reader: fetch any http(s) URL and return clean readable text, title/description/canonical, and outbound links as JSON — the data an agent ingests on each step of a crawl or RAG loop. Input: url.

## Output

Returns a JSON object with: kind (e.g. 'html'), extracted plain text of the page body, a list of links found on the page, the page title, word count, and meta description. Payment of $0.002 USDC is settled automatically per call via x402 on Base.

## 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 http(s) URL to fetch and extract"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "kind": {
       "type": "string"
      },
      "text": {
       "type": "string"
      },
      "links": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "title": {
       "type": "string"
      },
      "word_count": {
       "type": "number"
      },
      "description": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "kind": "html",
  "text": "…",
  "links": [],
  "title": "Example",
  "word_count": 120
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-web-reader-web-content-extractor-x402-1f2a827f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.charliemorrison.dev](https://www.zero.xyz/host/x402.charliemorrison.dev/llms.txt)
