# web-extract

> web-extract is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Extracts clean readable text or markdown from any public web page, including title, language, word/paragraph counts, and full article body.

## Facts

- Endpoint: POST https://api.firstmention.uk/s/web-extract/extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-extract-fac7cfe1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_itdIyXNUAss51BQuEI7Bb

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-extract-fac7cfe1 -d '<json body>'
```

Example prompt: Can you extract the full article text from https://www.bbc.com/news/technology-12345678 and give it to me as markdown?

## When to prefer this

Choose this endpoint when you need clean, readable text or markdown from a public web page without dealing with HTML parsing yourself. It is ideal for single-page article extraction where you want structured metadata (title, language, word/paragraph counts) alongside the body. Prefer it over generic scraping tools when you need output in either plain text or markdown format at a low per-call cost ($0.01 USDC).

## Known failure modes

- URL is behind a paywall or login wall — extraction returns empty or partial content
- Page uses heavy JavaScript rendering — static extractor may miss dynamically loaded content
- Invalid or non-public URL — returns an error indicating the page could not be fetched
- Rate limiting or server-side blocking by the target website — request fails with a fetch error
- Unsupported content type (e.g. PDF or binary) — endpoint may return an error or empty body

## How this service works

Extract clean readable text or markdown from any public web page: title, language, word/paragraph counts and the full article body. Free /preview sample first.

## Output

Returns the page title, detected language, word count, paragraph count, and the full article body as either plain text or markdown — cleaned of navigation, ads, and boilerplate HTML.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri"
  },
  "format": {
   "enum": [
    "text",
    "markdown",
    "json"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "text": "Example Domain This domain...",
  "title": "Example Domain"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-extract-fac7cfe1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
