# agent402.tools Content Extraction Workflow

> agent402.tools Content Extraction Workflow is a paid API for AI agents from agent402.tools, paid per call via x402, $0.044/call, status unknown (last checked 2026-09-15).

Converts arbitrary URLs and PDFs into clean structured text, including articles, page metadata, PDF pages, OCR'd images, and browser-rendered SPAs in a single bundled call

## Facts

- Endpoint: POST https://agent402.tools/api/skill/content-extraction
- Price: $0.044/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-content-extraction-workflow-88f42985
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bSpcxjnPXromLmpGjsLnX

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 agent402-tools-content-extraction-workflow-88f42985 -d '<json body>'
```

Example prompt: Can you extract the full article text and metadata from these two URLs: https://example.com/article and https://example.com/report.pdf — I need clean structured text from both, including any PDF pages.

## When to prefer this

Use this endpoint when you need a comprehensive, single-call extraction pipeline covering web pages, PDFs, and SPAs without stitching together multiple tools. It is ideal when you need both article content and metadata from the same URLs, or when URLs may be a mix of HTML pages and PDF documents. Prefer this over individual scraping tools when you want one x402 payment to cover the full extraction workflow.

## Known failure modes

- URL is unreachable or returns non-200 status — extraction fails for that URL
- PDF is password-protected or corrupted — PDF parsing returns error
- SPA requires authentication to render — browser rendering may return gated content
- Image OCR fails if image resolution is too low or format is unsupported
- Malformed or empty URL input — returns validation error
- Rate limits or network timeouts on the target site — partial or empty extraction

## How this service works

Bundled execution of the Content extraction workflow - Turn arbitrary URLs and PDFs into clean structured text - articles, page metadata, PDF pages, OCR'd images, browser-rendered SPAs. One x402 payment runs 6 underlying tools (extract, meta, pdf-to-markdown, pdf-extract-pages, render, image-ocr); partial-success per step.

## Output

Returns clean structured text extracted from the provided URLs or PDFs, including article body, page metadata (title, description, OpenGraph), PDF page content, OCR'd image text, and rendered content from JavaScript-heavy SPAs — all from a single bundled x402 payment covering 6 underlying extraction tools.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "string",
   "description": "Newline- or comma-separated list of URLs / PDF links to ingest"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "urls": "https://agent402.tools/"
  },
  "pack": "content-extraction",
  "steps": [
   {
    "ok": true,
    "slug": "extract",
    "result": {}
   },
   {
    "ok": true,
    "slug": "meta",
    "result": {}
   },
   {
    "ok": true,
    "slug": "pdf-to-markdown",
    "result": {}
   },
   {
    "ok": true,
    "slug": "pdf-extract-pages",
    "result": {}
   },
   {
    "ok": true,
    "slug": "render",
    "result": {}
   },
   {
    "ok": true,
    "slug": "image-ocr",
    "result": {}
   }
  ],
  "summary": "6/6 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-content-extraction-workflow-88f42985/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
