# AGISHub Structured Data Extraction

> AGISHub Structured Data Extraction is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Renders a web page in a headless browser and extracts structured JSON data from it using a natural-language prompt and/or a JSON Schema

## Facts

- Endpoint: POST https://api.agishub.com/paid/extract-structured
- 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/agishub-structured-data-extraction-21161dbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PVjiYzbqmJ2vX6JvRUwa8

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 agishub-structured-data-extraction-21161dbf -d '<json body>'
```

Example prompt: Go to https://www.amazon.com/dp/B09JQMJHXY and extract the product name, price, star rating, and number of reviews as structured JSON — the page is JavaScript-rendered so make sure it fully loads first.

## When to prefer this

Choose this endpoint when you need to extract structured, schema-conformant data from any public web page — especially JavaScript-rendered SPAs where a plain HTTP fetch would return an empty shell. It is ideal when you already know the shape of data you want (via JSON Schema) or can describe it in plain English. Prefer it over raw page fetchers when the output must be machine-readable JSON rather than Markdown or raw HTML.

## Known failure modes

- URL is inaccessible or requires login — returns error indicating page could not be loaded
- Page content does not contain the requested data — returns empty or null fields
- Invalid URL format — validation error on the url field
- Ambiguous prompt with no schema — may return inconsistently shaped JSON
- Anti-bot protection (Cloudflare, CAPTCHAs) blocks headless browser — extraction fails
- Timeout if page takes too long to render

## How this service works

AI-powered structured extraction: give a URL plus a natural-language prompt and/or a JSON Schema, and get back clean structured JSON (e.g. product name, price, rating). Renders the page in a headless browser first, so it works on SPAs.

## Output

A structured JSON object whose shape is determined either by the provided JSON Schema or inferred from the natural-language prompt. Fields typically include whatever data points were requested (e.g. product name, price, rating, description). The response is clean and ready for downstream processing without further parsing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Full http/https URL of the page to extract data from."
      },
      "prompt": {
       "type": "string",
       "description": "Natural-language instruction of what to extract, e.g. 'the product name, price and rating'. Provide this and/or a schema."
      },
      "schema": {
       "type": "object",
       "description": "Optional JSON Schema object describing the exact shape of the data to return. When given, the output is constrained to it.",
       "additionalProperties": {}
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-structured-data-extraction-21161dbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
