# Extract API – Batch URL Extraction (up to 10 URLs)

> Extract API – Batch URL Extraction (up to 10 URLs) is a paid API for AI agents from extract-x402.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-21).

Fetches and extracts content (title, markdown, word count) from 1–10 URLs in a single paid call, returning structured results per URL with per-item success/failure status.

## Facts

- Endpoint: POST https://extract-x402.vercel.app/v1/batch?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-api-batch-url-extraction-up-to-10-urls-c05f3613
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6S6attLdYXLOuayUfFCTL

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 extract-api-batch-url-extraction-up-to-10-urls-c05f3613 -d '<json body>'
```

Example prompt: Grab the content from these three pages for me — https://example.com/article1, https://example.com/article2, and https://example.com/article3 — and give me the title and readable text from each one.

## When to prefer this

Choose this endpoint when you need to extract readable content from multiple web pages in one API call (up to 10 URLs) rather than issuing separate single-URL requests. It is ideal for batch research, competitive intelligence, or dataset construction workflows where efficiency and per-URL success reporting matter. Prefer the single-extract endpoint for one-off pages; use this batch endpoint when processing 2–10 URLs to save round-trips and cost ($0.05 flat vs $0.01 × N individually).

## Known failure modes

- Individual URLs return ok:false with an error string if the upstream server responds with 4xx/5xx
- Entire request rejected if the array contains 0 or more than 10 URLs
- Payment failure via x402 if insufficient USDC balance on Base
- Timeout if upstream pages are slow to respond
- Malformed or non-http(s) URLs may be rejected or return extraction errors

## How this service works

Paid web & document extraction (single or batch), rendering, screenshots, URL-to-PDF and site intelligence for AI agents. Payment via x402 (HTTP 402) in USDC on Base (eip155:8453). $0.01 per extract/sitemap/feed, $0.02 per render/screenshot/pdf, $0.03 per site-intel, $0.05 per 10-URL batch.

## Output

A JSON object with an overall count of successes and failures, plus a results array where each entry contains the URL, an ok boolean, and on success: the page title, markdown-formatted body text, and word count. Failed entries include an error message describing why extraction failed (e.g. upstream 404).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 10,
   "minItems": 1,
   "description": "Absolute http(s) URLs, 1-10 per call"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": 2,
  "type": "batch",
  "count": 2,
  "failed": 0,
  "results": [
   {
    "ok": true,
    "url": "https://example.com/a",
    "data": {
     "type": "html",
     "title": "A",
     "markdown": "# A ...",
     "wordCount": 120
    }
   },
   {
    "ok": false,
    "url": "https://example.com/b",
    "error": "upstream responded 404"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-api-batch-url-extraction-up-to-10-urls-c05f3613/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from extract-x402.vercel.app](https://www.zero.xyz/host/extract-x402.vercel.app/llms.txt)
