# AgentIndex x402 – Structured Data Extraction

> AgentIndex x402 – Structured Data Extraction is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Extracts structured fields from a URL or raw text according to a caller-supplied JSON Schema, returning a strictly conforming data object.

## Facts

- Endpoint: POST https://x402.agentindex.world/extract
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentindex-x402-structured-data-extraction-6dab04a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1nxN1csv0aABkNuHe_uui

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 agentindex-x402-structured-data-extraction-6dab04a0 -d '<json body>'
```

Example prompt: Extract the product name, price, and whether it's in stock from this URL — https://example-shop.com/widget-pro — and give me those fields as structured JSON.

## When to prefer this

Choose this endpoint when you need to extract specific, named fields from a URL or raw text and want the result as a strictly typed JSON object matching your own schema. It is ideal for e-commerce data harvesting, article metadata extraction, or any scenario where you know exactly which fields you need and want schema-validated output. Prefer it over a generic web-read endpoint when downstream code depends on predictable field names and types.

## Known failure modes

- Both url and text provided — API requires exactly one
- Neither url nor text provided — request will fail
- URL is inaccessible, paywalled, or returns non-200 — extraction will fail or return empty fields
- Schema has fields that cannot be found in source content — those fields may be null or omitted
- Malformed JSON Schema supplied — API may reject or return unstructured output
- Payment not processed (x402 flow failure) — 402 response, no extraction performed

## How this service works

Process the files and content an agent gives you. Nothing else. A pay-per-call kit for AI agents in USDC on Base (x402/MPP): pdf, web-read, extract, summarize, and the free detect-language entry point - see GET /capabilities. Plus two tools outside the kit: translate and jobs.

## Output

A JSON object whose `data` field strictly conforms to the JSON Schema you supplied. For example, {"data":{"price":29.99,"in_stock":true,"product_name":"Widget Pro"}}. Fields are typed and validated against your schema.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL to read and extract from. Provide this or text, not both."
  },
  "text": {
   "type": "string",
   "description": "Raw text to extract from. Provide this or url, not both."
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema describing the fields to extract. The response's `data` field will strictly conform to it."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "price": 29.99,
   "in_stock": true,
   "product_name": "Widget Pro"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentindex-x402-structured-data-extraction-6dab04a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
