# FreeTier Agent API — Text-to-JSON Extraction

> FreeTier Agent API — Text-to-JSON Extraction is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-18).

Extracts structured JSON data from unstructured text using a caller-supplied JSON Schema, returning typed fields with sourcing metadata.

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/extract-json?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/freetier-agent-api-text-to-json-extraction-6c370553
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rU8iXL8BT0RN1uyPNGnwj

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 freetier-agent-api-text-to-json-extraction-6c370553
```

Example prompt: Pull out the company name, total amount, currency, due date, order ID, and billing email from this invoice text and return it as JSON: 'ACME GmbH — Invoice #4471, due 2026-11-30, EUR 1,299.00, bill to billing@acme.example.'

## When to prefer this

Choose this endpoint when you need to convert free-form or semi-structured text into a typed, schema-validated JSON object without running your own LLM pipeline. It is ideal for invoice parsing, document field extraction, and email parsing use cases where you supply a JSON Schema and want back a clean object. Prefer it over generic LLM prompting when you need consistent field names, missing-field tracking, and source citations, and when you want pay-per-call pricing with no signup overhead.

## Known failure modes

- Missing required `text` or `schema` query params returns an error
- Invalid JSON Schema string causes a parse error
- Text exceeding 6000 characters may be truncated or rejected
- Fields not present in the source text appear in the `missing` array rather than causing failure
- Malformed or overly complex schemas may yield incomplete extractions
- Payment failure (x402) if USDC balance insufficient

## How this service works

Pay-per-call data API for AI agents: AI model prices and cost calculator, 4,259 MCP servers, email domain checks, text-to-JSON extraction, country/holiday/currency lookup, page and link checks, page-to-markdown, 2,230 verified APIs. x402, USDC on Base, no signup. Sources cited in every response.

## Output

Returns a JSON object with a `data` field containing the extracted values keyed by your schema's property names, a `method` field indicating the extraction engine used (e.g. workers-ai), a `missing` array listing any schema fields that could not be extracted, and a `sources` array with citation references.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "schema"
     ],
     "properties": {
      "mode": {
       "enum": [
        "auto",
        "heuristic"
       ],
       "type": "string"
      },
      "text": {
       "type": "string",
       "description": "input text, max 6000 chars"
      },
      "schema": {
       "type": "string",
       "description": "JSON Schema (type object with properties) as a JSON string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "email": "billing@acme.example",
   "total": 1299,
   "company": "ACME GmbH",
   "currency": "EUR",
   "due_date": "2026-11-30",
   "order_id": "4471"
  },
  "method": "workers-ai",
  "missing": [],
  "sources": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/freetier-agent-api-text-to-json-extraction-6c370553/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
