# Machine Shop – JSON Schema Extract

> Machine Shop – JSON Schema Extract is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-20).

Extracts typed fields from a supplied JSON document using RFC 6901 JSON Pointer paths and returns the resolved values as structured JSON

## Facts

- Endpoint: POST https://api.pay-forge.online/v2/schema-extract?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-json-schema-extract-748ac706
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uCtqGzM8Ejag0gPr_CKPQ

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 machine-shop-json-schema-extract-748ac706 -d '<json body>'
```

Example prompt: From this API response JSON I'll paste, extract three fields for me: 'price' as a number at /data/pricing/amount, 'currency' as a string at /data/pricing/currency, and 'available' as a boolean at /data/stock/available.

## When to prefer this

Choose this endpoint when you have a JSON document in hand and need to extract one or more specific typed fields by their exact path without writing custom parsing code. It is ideal for inspecting API responses, x402 payment quotes, or configuration payloads where you know the JSON Pointer paths in advance. It does not perform web fetching, live monitoring, or purchasing — only document-local extraction.

## Known failure modes

- Invalid JSON Pointer syntax returns a 400 with pointer validation error
- Required field missing from document returns null or error per field
- Type mismatch between declared type and actual value may return coercion error
- Empty fields array or missing document property returns 400 validation error
- Deeply nested pointer that traverses a null intermediate node returns resolution failure
- Document exceeds size limits may cause timeout or rejection

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

A structured JSON object containing each requested field name mapped to its resolved and type-coerced value extracted from the input document. Fields marked required that are missing or type-mismatched may produce errors or null entries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fields": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ExtractField",
    "required": [
     "name",
     "pointer",
     "type"
    ],
    "properties": {
     "name": {
      "type": "string",
      "title": "Name",
      "pattern": "^[a-zA-Z][\\w-]*$",
      "maxLength": 80,
      "minLength": 1
     },
     "type": {
      "enum": [
       "string",
       "integer",
       "number",
       "boolean",
       "object",
       "array",
       "null"
      ],
      "type": "string",
      "title": "Type"
     },
     "pointer": {
      "type": "string",
      "title": "Pointer",
      "pattern": "^(?:/(?:[^~]|~[01])*)*$",
      "maxLength": 512
     },
     "required": {
      "type": "boolean",
      "title": "Required",
      "default": true
     }
    },
    "additionalProperties": false
   },
   "title": "Fields",
   "maxItems": 30,
   "minItems": 1
  },
  "document": {
   "type": "object",
   "title": "Document",
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-json-schema-extract-748ac706/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
