# Web Page Contents Extractor

> Web Page Contents Extractor is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Fetches clean text, title, author, and publication date from up to 5 URLs in a single call

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/v1/contents?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-page-contents-extractor-f3a78b44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__yGo3JEa8ADQo5Nz9L27X

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-page-contents-extractor-f3a78b44
```

Example prompt: Can you fetch the clean readable text from these three pages for me: https://example.com/article1, https://example.com/article2, and https://example.com/article3 — keep each one under 3000 characters and return it as plain text?

## When to prefer this

Choose this endpoint when you need clean, reader-friendly text extracted from one to five web pages without dealing with HTML parsing or a browser. It's ideal for article ingestion, summarization pipelines, fact-checking, or any workflow that needs the main textual body of a page plus metadata (title, author, date) without building your own scraper. No API key is required, costs only $0.01 per call for up to 5 URLs, and failed fetches are not charged.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — that URL appears in statuses with a failure status and is not charged
- Page has no extractable text (e.g. pure JavaScript SPA with no server-rendered content) — returns empty or minimal text
- Invalid or malformed URL in the urls parameter — rejected at input validation
- More than 5 URLs provided — request likely rejected or only first 5 processed
- maxChars outside allowed range (500–20000) — may be clamped or rejected

## How this service works

Page contents API (urls or ids, text.maxCharacters), pay per request: clean text, title, author and date of up to 5 pages in one call. No account or API key; failed calls are not charged.

## Output

Returns a results array where each entry contains the page URL, extracted clean text (up to the requested character limit), page title, author, language code, published date, and a truncated flag. Also returns counts of how many pages were requested and successfully read, plus a statuses array with per-URL success or failure status.

## 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": [
      "urls"
     ],
     "properties": {
      "urls": {
       "type": "string",
       "examples": [
        "https://example.com,https://www.iana.org/help/example-domains"
       ],
       "description": "One to five page URLs: comma-separated, one per line, or a JSON array"
      },
      "format": {
       "type": "string",
       "examples": [
        "text"
       ],
       "description": "text (default) or markdown"
      },
      "maxChars": {
       "type": "string",
       "examples": [
        "3000"
       ],
       "description": "Characters per page, 500 to 20000 (default 4000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "read": {
       "type": "number"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "url": {
          "type": "string"
         },
         "lang": {
          "type": "string"
         },
         "text": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "author": {},
         "truncated": {
          "type": "boolean"
         },
         "textLength": {
          "type": "number"
         },
         "publishedDate": {}
        }
       }
      },
      "statuses": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "status": {
          "type": "string"
         }
        }
       }
      },
      "requested": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-page-contents-extractor-f3a78b44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
