# AgentUtility Structured Extract

> AgentUtility Structured Extract is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-28).

Extracts structured data from free-form text using an LLM, validating the output against a caller-provided JSON Schema.

## Facts

- Endpoint: POST https://x402.agentutility.ai/structured-extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-structured-extract-dabeaf4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3Oq1LEmWkCJ9sE9bvo3B4

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 agentutility-structured-extract-dabeaf4d -d '<json body>'
```

Example prompt: Pull the name, email, age, and city out of this paragraph and give me the result as structured JSON: 'Hi, I'm John Smith, 42 years old, living in NYC. You can reach me at john@example.com.'

## When to prefer this

Choose this endpoint when you need to reliably extract typed, schema-validated structured data from arbitrary free-form text without managing your own LLM infrastructure or API keys. It is ideal for one-off or low-volume extraction tasks where paying $0.01 per call is preferable to provisioning a model. Prefer it over raw LLM calls when you need the output validated against a JSON Schema automatically.

## Known failure modes

- Text exceeds 30,000 character limit — request rejected
- Provided JSON Schema is malformed or unparseable — extraction fails
- LLM unable to find required fields in text — extracted object may be incomplete or null
- Schema validation fails — 'validates' field returns false with partial extraction
- Network or payment failure — x402 payment not processed, request not executed

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing: the extracted data object matching the caller-provided schema, a boolean 'validates' flag indicating whether the output conforms to the schema, the schema used, the model name that performed the extraction, and the source/provider name.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text",
      "schema"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Source text. Up to 30,000 chars."
      },
      "schema": {
       "type": "object",
       "description": "JSON Schema describing the desired output object. The handler relays this to the model and validates the result's top-level shape."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "model": {
       "type": "string"
      },
      "schema": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string"
        },
        "required": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "properties": {
         "type": "object",
         "properties": {
          "age": {
           "type": "object",
           "properties": {
            "type": {
             "type": "string"
            }
           }
          },
          "city": {
           "type": "object",
           "properties": {
            "type": {
             "type": "string"
            }
           }
          },
          "name": {
           "type": "object",
           "properties": {
            "type": {
             "type": "string"
            }
           }
          },
          "email": {
           "type": "object",
           "properties": {
            "type": {
             "type": "string"
            }
           }
          }
         }
        }
       }
      },
      "source": {
       "type": "string"
      },
      "extracted": {
       "type": "object",
       "properties": {
        "age": {
         "type": "integer"
        },
        "city": {
         "type": "string"
        },
        "name": {
       
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "zai-org-glm-4.7",
  "schema": {
   "type": "object",
   "required": [
    "name"
   ],
   "properties": {
    "age": {
     "type": "number"
    },
    "city": {
     "type": "string"
    },
    "name": {
     "type": "string"
    },
    "email": {
     "type": "string"
    }
   }
  },
  "source": "venice",
  "extracted": {
   "age": 42,
   "city": "NYC",
   "name": "John Smith",
   "email": "john@example.com"
  },
  "validates": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-structured-extract-dabeaf4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
