# URL to Text Extractor

> URL to Text Extractor is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches a web page from a URL and returns clean, furniture-stripped text along with its title, description, and site name

## Facts

- Endpoint: GET https://402.com.tr/api/x402/url-extract
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-to-text-extractor-ac950fc0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QkzgX-fWjv4B1tG6R78xW

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-to-text-extractor-ac950fc0
```

Example prompt: Can you fetch the content of https://example.com/article and give me the clean readable text from the page, stripping out all the navigation, ads, and scripts?

## When to prefer this

Choose this endpoint when your agent is running in a serverless or MCP environment with no browser access or HTML parser, and you need clean, reasoning-ready text from a web page URL. It is especially well-suited for agents that need to summarize, analyze, or fact-check web content without dealing with raw HTML, JavaScript rendering, or content noise like ads and navigation bars.

## Known failure modes

- Non-text content type (e.g. PDF, image, binary) — endpoint refuses and returns an error
- URL exceeds redirect chain or times out — network error returned
- Page content exceeds 2 MB cap — truncated or rejected
- Malformed or non-HTTP URL — validation error
- Target server returns 4xx/5xx — propagated error response

## How this service works

Pass a URL and get the page as clean text — furniture (nav, scripts, ads, footers) stripped, paragraphs preserved — plus its title, description and site name. The step every agent needs before it can reason about a page, and the one most agents can't do themselves: serverless runtimes and MCP clients have no browser and no HTML parser. Follows redirects safely, refuses non-text content, caps at 2 MB. Nothing crypto about it.

## Output

Returns the page's readable text with navigation, scripts, ads, and footers removed, along with the page title, meta description, and site name. Content is capped at 2 MB and non-text content types are refused. Redirects are followed automatically.

## 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": "Page URL"
      },
      "maxChars": {
       "type": "string",
       "description": "Max characters (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-to-text-extractor-ac950fc0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
