# Web Scraper API – Text Extraction

> Web Scraper API – Text Extraction is a paid API for AI agents from scrape.payapi.market, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Fetches a web page by URL and returns its visible text content, title, description, and metadata as structured JSON

## Facts

- Endpoint: POST https://scrape.payapi.market/scrape/text?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-scraper-api-text-extraction-56d356f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Aqz0gMfMyYVEKpxiV3jjM

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-scraper-api-text-extraction-56d356f2 -d '<json body>'
```

Example prompt: Can you pull the visible text content from https://en.wikipedia.org/wiki/Artificial_intelligence and give me the title and main text?

## When to prefer this

Choose this endpoint when you need the clean readable text, title, and metadata from a single web page URL quickly and cheaply ($0.002 per call). It is ideal for agents that need to read and process web content without running a full headless browser or crawling multiple pages. Prefer it over general browser-automation tools when you just need plain text output and do not need JavaScript rendering or interaction.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — endpoint may return an error or empty text
- JavaScript-rendered pages (SPAs) may return little or no visible text since the scraper fetches raw HTML
- Paywalled or login-protected pages will return only what is visible to an unauthenticated request
- Malformed or non-HTTP URLs will be rejected at input validation
- Very large pages may be slow to process or may be truncated

## How this service works

HTML scraping (text, links, metadata, structured) with x402 payments and MCP server.

## Output

Returns a JSON object containing the page URL, extracted plain text body, page title, meta description (if present), the final URL after any redirects, and character and word counts of the extracted text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Absolute http(s) URL of the page to scrape, e.g. 'https://example.com'."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "text": "Example Domain\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.",
  "title": "Example Domain",
  "final_url": "https://example.com/",
  "char_count": 172,
  "word_count": 28,
  "description": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-scraper-api-text-extraction-56d356f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrape.payapi.market](https://www.zero.xyz/host/scrape.payapi.market/llms.txt)
