# URL Text Extractor (x402 Pay-Per-Use)

> URL Text Extractor (x402 Pay-Per-Use) is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-14).

Fetches a URL and returns clean, readable plain text extracted from the webpage content

## Facts

- Endpoint: GET https://gpt55.558686.xyz/v1/tools/url-text
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Success rate: 0% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-text-extractor-x402-pay-per-use-4afce522
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0NQt-DlzIT5K0TK3Wp47a

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 url-text-extractor-x402-pay-per-use-4afce522
```

Example prompt: Fetch the text content from https://example.com/article and give me the clean readable text, with a max of 5000 characters.

## When to prefer this

Use this endpoint when you need cheap ($0.0001 per call), pay-as-you-go plain text extraction from a known URL without a subscription. Ideal for agents that occasionally need to read webpage content, summarize articles, or ingest web data as text. Prefer over full browser automation tools when you only need readable text and not structured data, screenshots, or JavaScript-rendered content.

## Known failure modes

- URL unreachable or times out — returns ok: false with error detail
- URL redirects exceed max_redirects limit — fetch aborted
- Response body exceeds max_bytes before extraction completes — truncated or error
- Invalid or malformed URL input — validation error
- Paywalled or bot-blocked page returns empty or minimal text
- x402 payment fails or USDC balance insufficient — 402 response before fetch occurs

## How this service works

Fetch a public HTTP(S) URL and return cleaned readable text, title, final URL, status, and redirect details. This deterministic endpoint does not call an upstream model. Pay up to $0.002 per request with x402 USDC on Base. Public paid calls are limited to 1500 input characters and 128 output tokens.

## Output

A JSON object with ok (boolean), tool name ('urlText'), a clean readable text summary extracted from the fetched webpage, and a fetchedAt timestamp. Returns extracted plain text stripped of HTML markup up to the requested character or byte limits.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "url": "https://example.com",
   "max_bytes": 65536,
   "max_chars": 5000,
   "timeout_ms": 5000,
   "max_redirects": 2
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 2048,
       "minLength": 1
      },
      "max_bytes": {
       "type": "integer",
       "maximum": 524288,
       "minimum": 4096
      },
      "max_chars": {
       "type": "integer",
       "maximum": 10000,
       "minimum": 200
      },
      "timeout_ms": {
       "type": "integer",
       "maximum": 12000,
       "minimum": 1000
      },
      "max_redirects": {
       "type": "integer",
       "maximum": 3,
       "minimum": 0
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-text-extractor-x402-pay-per-use-4afce522/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
