# AI Data Extraction to JSON

> AI Data Extraction to JSON is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.007/call, status unknown (last checked 2026-10-11).

Extracts structured fields from a web page or raw text using AI and returns them as typed JSON

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/page-extract?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-data-extraction-to-json-be06caa6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vsUDoosG2OBchOyF4FloD

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 ai-data-extraction-to-json-be06caa6 -d '<json body>'
```

Example prompt: Extract the company name, VAT ID, registration number, and city from https://www.zalando.de/zalando-impressum/ and return them as structured JSON fields.

## When to prefer this

Choose this endpoint when you need to extract specific, named fields from a web page or raw text and receive them as typed, structured JSON — especially when the source is unstructured (HTML, free text, PDFs rendered as text). Prefer this over generic scraping when you want AI to handle ambiguous layouts, infer field values, and return clean typed data without writing custom parsers. It is ideal for one-off or ad-hoc extractions where defining a schema upfront is easier than building a scraper.

## Known failure modes

- URL is unreachable or returns non-200 — extraction fails or returns empty fields
- Page is JavaScript-heavy and content is not in static HTML — fields may be empty or incorrect
- Raw text exceeds 60,000 character limit — input gets truncated, reducing accuracy
- Field descriptions are ambiguous — model may fill wrong values or leave fields empty
- Instructions exceed 500 character limit — request rejected or truncated
- Payment in USDC not confirmed — request blocked before processing

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object with a 'data' key containing: the extracted field values keyed by the field names you defined, the AI model used, the page title, source URL, extraction timestamp, total fields requested, fields successfully filled, and whether input was truncated. Wrapped in a top-level 'success' boolean.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Page to extract from (or send text)"
  },
  "text": {
   "type": "string",
   "description": "Raw text instead of a URL, max 60,000 chars"
  },
  "fields": {
   "type": "object",
   "description": "Field name -> description string, or {type, description}. Types: string, number, integer, boolean, string[], number[]"
  },
  "instructions": {
   "type": "string",
   "description": "Optional extra rules, max 500 chars"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "data": {
    "city": "Berlin",
    "vat_id": "DE 260543043",
    "company": "Zalando SE",
    "register_number": "HRB 158855 B"
   },
   "model": "claude-haiku-5-5",
   "title": "Zalando wohnen",
   "source": "https://www.zalando.de/zalando-impressum/",
   "extracted_at": "2026-10-10T09:58:24.270Z",
   "fields_total": 4,
   "fields_filled": 4,
   "input_truncated": false
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-data-extraction-to-json-be06caa6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
