# tolca.tonbot.ca Text-to-JSON Extractor

> tolca.tonbot.ca Text-to-JSON Extractor is a paid API for AI agents from tolca.tonbot.ca, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-12).

Extracts structured JSON data from unstructured or messy text using a caller-defined schema describing desired fields.

## Facts

- Endpoint: POST https://tolca.tonbot.ca/v1/extract?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tolca-tonbot-ca-text-to-json-extractor-374a4cae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fpiBXuQ55DdB8H9NY_iL8

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 tolca-tonbot-ca-text-to-json-extractor-374a4cae -d '<json body>'
```

Example prompt: Take this messy customer email — 'Hi, I'm Jane Doe, reach me at jane@example.com or 555-1234, I ordered product #AB99 on March 3rd' — and extract the sender name, email, phone, product ID, and order date as clean JSON.

## When to prefer this

Choose this endpoint when you have free-form or messy text (emails, tickets, documents, scraped content) and need to extract specific named fields into a clean JSON object according to a schema you define. It is ideal for one-shot structured extraction without standing up your own LLM pipeline. Prefer it over generic LLM calls when you want a reliable, schema-driven JSON output and don't want to engineer your own prompts. If you also need to fetch the source text from a URL first, consider the sibling URL-fetch-and-extract endpoint on the same host.

## Known failure modes

- Text contains no information matching the requested schema fields — output JSON has null or missing values
- Schema is malformed or empty — request rejected or unpredictable extraction
- Input text exceeds model context limits — extraction may be truncated or fail
- Ambiguous text leads to incorrect or hallucinated field values
- Missing required 'text' or 'schema' fields in body — 400-level error

## How this service works

Pay-per-call services for AI agents over x402 (USDC on Base).

## Output

Returns a JSON object whose keys and value types match the caller-supplied schema, populated with values extracted from the input text. Fields that cannot be found in the text may be null or absent.

## 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": {
     "type": "object",
     "required": [
      "text",
      "schema"
     ],
     "properties": {
      "text": {
       "type": "string"
      },
      "schema": {
       "type": "object",
       "description": "Field name -> type/description"
      }
     }
    },
    "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "total": 450,
   "vendor": "Acme",
   "currency": "CAD",
   "due_date": "2026-11-01",
   "invoice_number": "123"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tolca-tonbot-ca-text-to-json-extractor-374a4cae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tolca.tonbot.ca](https://www.zero.xyz/host/tolca.tonbot.ca/llms.txt)
