# VendSDK Fetch Text — Web Page to Plain Text

> VendSDK Fetch Text — Web Page to Plain Text is a paid API for AI agents from vendsdk.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches a public URL and returns its content as stripped plain text, with title and truncation metadata, for use in research, RAG pipelines, and summarization agents

## Facts

- Endpoint: GET https://vendsdk.com/api/v/fetch-text
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vendsdk-fetch-text-web-page-to-plain-text-02f30486
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VWzlgkp3csNTmQcQKCEeY

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 vendsdk-fetch-text-web-page-to-plain-text-02f30486
```

Example prompt: Can you fetch the plain text from https://en.wikipedia.org/wiki/Large_language_model and give me the readable content, up to about 8000 characters?

## When to prefer this

Choose this endpoint when you need clean, readable plain text from a public webpage for downstream NLP tasks like summarization, RAG ingestion, or research — especially when you want HTML stripped automatically without running a headless browser. It is the right choice over raw HTTP fetch endpoints when you specifically need text extraction rather than headers, status codes, or structured data. Prefer it over general web crawlers when you need a single-page, per-call, pay-per-use model with predictable cost.

## Known failure modes

- Non-HTTPS or private URLs will be rejected — only public https:// URLs are accepted
- URL is unreachable or returns non-200 status — ok will be false
- Page uses heavy JavaScript rendering and content may not be fully visible to a plain HTTP fetch
- max_chars parameter passed as non-string may cause schema validation errors
- Very large pages may be truncated (truncated: true) if content exceeds max_chars limit
- Paywalled or bot-blocked pages may return minimal or no useful text content

## How this service works

Fetch a public page and return plain text (HTML stripped) for research, RAG, and summarization agents

## Output

A JSON object containing: ok (boolean success flag), text (plain text content with HTML stripped), chars (character count of returned text), title (page title extracted from HTML), service (identifier string), and truncated (boolean indicating whether the text was cut off at max_chars limit).

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public https:// page URL"
      },
      "max_chars": {
       "type": "string",
       "description": "Max text chars default 12000"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "text": {
       "type": "string"
      },
      "chars": {
       "type": "number"
      },
      "title": {
       "type": "string"
      },
      "service": {
       "type": "string"
      },
      "truncated": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vendsdk-fetch-text-web-page-to-plain-text-02f30486/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vendsdk.com](https://www.zero.xyz/host/vendsdk.com/llms.txt)
