# DexL Agents – Extract Data

> DexL Agents – Extract Data is a paid API for AI agents from agents.dexl.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Extracts structured fields from unstructured text using AI, returning a typed JSON object with the requested named fields

## Facts

- Endpoint: POST https://agents.dexl.io/v1/tools/extract-data
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dexl-agents-extract-data-10b8c660
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xszQCJaTbMFIhLLep9qa8

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 dexl-agents-extract-data-10b8c660 -d '<json body>'
```

Example prompt: From this invoice text, extract the vendor name, invoice date, total amount, and due date as structured fields: 'Invoice #4821 from Acme Corp, dated March 15 2025, total due $1,240.00, payment by April 15 2025.'

## When to prefer this

Choose this endpoint when you need to extract a known set of named fields from unstructured or semi-structured text without writing custom parsing logic. It is ideal for documents like invoices, emails, job postings, support tickets, and product descriptions where the schema is known in advance. It is preferable to raw LLM calls when you want a pay-per-call, no-account-required extraction with typed output and a structured response schema. Use alternatives if you need to extract entities without a predefined schema (open-ended NER) or if the input exceeds 8000 characters.

## Known failure modes

- Text exceeds 8000 character limit — request rejected with validation error
- More than 25 fields requested — schema validation failure
- Field types mismatched to actual content — may return null or empty values for unrecognized fields
- Ambiguous or vague field descriptions — extracted values may be incorrect or missing
- Payment failure via x402 — request not processed
- Model hallucination — fields may be filled with plausible but incorrect values if the text is ambiguous

## How this service works

Pull named fields out of free text as JSON - names, dates, amounts, references, anything you list. Every field you ask for appears in the answer: one the text does not contain comes back null rather than guessed, so "not in the text" and "model did not answer" are never confused. Fixed price per call.

## Output

A JSON object with a `output` field containing the extracted key-value pairs for each requested field, plus `units` (billing units consumed, typically 1) and `cached` (boolean indicating whether the result was served from cache). Field values are typed according to the schema provided (string, number, boolean, or array).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8000
  },
  "fields": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "string",
      "description": "Field name"
     },
     {
      "type": "object",
      "required": [
       "name"
      ],
      "properties": {
       "name": {
        "type": "string"
       },
       "type": {
        "enum": [
         "string",
         "number",
         "boolean",
         "array"
        ],
        "type": "string"
       },
       "description": {
        "type": "string"
       }
      }
     }
    ]
   },
   "maxItems": 25,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": 1,
  "cached": false,
  "output": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dexl-agents-extract-data-10b8c660/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.dexl.io](https://www.zero.xyz/host/agents.dexl.io/llms.txt)
