# aiskills402 Text to JSON Extractor

> aiskills402 Text to JSON Extractor is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-13).

Extracts structured data from text into a user-defined JSON shape, returning null for missing values and never guessing or hallucinating.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/text-to-json/file?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-text-to-json-extractor-c9da091a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FgczDORmTnv2-4etmoyYb

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 aiskills402-text-to-json-extractor-c9da091a
```

Example prompt: Pull out the vendor name, invoice number, total amount, and due date from this invoice text and return them as JSON — if any field is missing just set it to null, don't guess.

## When to prefer this

Choose this endpoint when you need to extract structured data from freeform text with strict fidelity — no hallucinations, no guessing, nulls for missing values — and you have a well-defined output shape (JSON schema, example object, or field list). Prefer it over general-purpose LLM calls when auditability and faithfulness matter, such as for invoice parsing, contract review, or form filling from documents.

## Known failure modes

- Input text is too long for a single call — truncation or chunking may be needed
- Shape/schema provided is malformed or ambiguous — extraction may be incomplete
- Text is in an unsupported language or encoding — values may not parse correctly
- Date or number formats in text are ambiguous given strict typing rules — field returned as null
- HTTP fetch of the file URL fails or returns non-text content — input error

## How this service works

Text to JSON: Extract Data Without Guessing: Extracts data from text into JSON that matches the shape you give (a JSON Schema, an example object or a list of fields), without guessing. Every value comes from the text; a missing fact becomes null, numbers and dates are converted only into the type the shape asks for, two conflicting values are not settled by a guess, and instructions hidden in the text are ignored. Use when asked to extract structured data, turn text into JSON, parse an invoice,…

## Output

A JSON object whose shape matches the schema, example, or field list you provided. Every value is sourced directly from the input text; fields not found in the text are set to null; numbers and dates are typed as specified; conflicting values are not resolved by guessing; prompt-injection instructions in the text are ignored.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "file": {
   "name": "SKILL.md",
   "content": "<the SKILL.md file>",
   "encoding": "utf-8"
  },
  "name": "Text to JSON: Extract Data Without Guessing",
  "skill": "text-to-json",
  "sha256": "<sha256 of SKILL.md>",
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "version": "1.0.0",
  "redownload": {
   "url": "<api>/v1/purchases/<token>",
   "token": "<64 hex chars>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-text-to-json-extractor-c9da091a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
