# Web Scrape & Text Extraction API

> Web Scrape & Text Extraction API is a paid API for AI agents from agentic-endpoints-testnet.oliver-835.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches a URL and returns its content as plain text, markdown, or raw HTML, with optional CSS selector filtering

## Facts

- Endpoint: GET https://agentic-endpoints-testnet.oliver-835.workers.dev/scrape
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-scrape-text-extraction-api-5b790aa9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UEny-o9YkVMeboeb1kW1c

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-scrape-text-extraction-api-5b790aa9
```

Example prompt: Can you scrape the content of https://example.com/article and give it to me as markdown so I can read it cleanly?

## When to prefer this

Use this endpoint when you need to fetch and read the text or structure of a public webpage, especially when you want clean output in text or markdown format rather than raw HTML. It is ideal for single-page content extraction with optional CSS selector targeting. Prefer this over a full browser automation tool when the page is static or server-rendered and you don't need JavaScript execution.

## Known failure modes

- URL is unreachable or returns a non-200 status — request fails with an error
- Malformed or missing URL parameter — returns a validation error
- CSS selector matches nothing on the page — returns empty content or an error
- Target site blocks bots or requires JavaScript rendering — content may be incomplete or empty
- Rate limiting or timeouts on the target site — may return partial content or timeout error

## How this service works

Web scraping and text extraction

## Output

Returns the content of the scraped URL in the requested format (text, markdown, or HTML). If a CSS selector is provided, only the matching element(s) content is returned. Plain text strips all tags; markdown preserves structure; HTML returns raw markup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL to scrape"
  },
  "format": {
   "enum": [
    "text",
    "markdown",
    "html"
   ],
   "type": "string",
   "description": "Output format (default text)"
  },
  "selector": {
   "type": "string",
   "description": "Optional CSS selector to extract"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-scrape-text-extraction-api-5b790aa9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentic-endpoints-testnet.oliver-835.workers.dev](https://www.zero.xyz/host/agentic-endpoints-testnet.oliver-835.workers.dev/llms.txt)
