# agent402.tools Structured Scrape

> agent402.tools Structured Scrape is a paid API for AI agents from agent402.tools, paid per call via x402, $0.032/call, status unknown (last checked 2026-09-14).

Extracts structured data (clean text, JSON tables, specific elements) from any web page using a natural-language target description instead of regex or raw HTML parsing

## Facts

- Endpoint: POST https://agent402.tools/api/skill/structured-scrape
- Price: $0.032/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-structured-scrape-d183672d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fQbyUzhwVS7EPXW6Jyx9k

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-structured-scrape-d183672d -d '<json body>'
```

Example prompt: Scrape the product page at https://example.com/product/42 and pull out the price and availability as structured data — I need it as clean JSON, not raw HTML.

## When to prefer this

Choose this endpoint when you need to extract specific, well-defined data from a known web page URL without writing regex or parsing raw HTML manually. Ideal for one-shot extractions of prices, tables, article text, or named elements from any publicly accessible page. Prefer over general crawlers when you want structured output (JSON rows, clean text) from a single page with a natural-language description of what to extract.

## Known failure modes

- URL is inaccessible or returns non-200 status — extraction fails with an error
- Target description is too ambiguous and the element cannot be located on the page
- Page requires JavaScript rendering and the static HTML lacks the requested content
- Page blocks scraping via bot detection or CAPTCHA — returns access-denied error
- Payment of 0.2 USDC not completed via x402 — request rejected before execution

## How this service works

Bundled execution of the Structured scrape workflow - Pull structured data out of any web page deterministically - articles to clean text, tables to JSON rows, specific elements via CSS selector - without writing regex against raw HTML. One x402 payment runs 7 underlying tools (extract, render, html-select, html-table, html-strip, html-links, html-meta); partial-success per step.

## Output

Returns structured data extracted from the target web page — clean text for articles, JSON rows for tables, or the specific element value matching the described target — deterministically parsed without requiring regex or raw HTML handling.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Page to scrape (e.g. https://example.com/product/42)"
  },
  "target": {
   "type": "string",
   "description": "What to extract - a price, a table, a list, a paragraph, etc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "url": "https://agent402.tools/leaderboard",
   "target": "the price and SKU"
  },
  "pack": "structured-scrape",
  "steps": [
   {
    "ok": true,
    "slug": "extract",
    "result": {}
   },
   {
    "ok": true,
    "slug": "render",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-select",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-table",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-strip",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-links",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-meta",
    "result": {}
   }
  ],
  "summary": "7/7 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-structured-scrape-d183672d/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)
