# Machine Shop – Extract JSON Fields

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

Extracts typed JSON field values from a text document using JSON Pointer paths

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/extract-json-fields?utm_source=zero.xyz
- Price: $0.004/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-extract-json-fields-3f01d696
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h-uCmKQAb20tnmGC4lIkG

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-extract-json-fields-3f01d696 -d '<json body>'
```

Example prompt: From this API response text, extract the fields at '/user/id', '/user/email', and '/plan/tier' and return their typed values.

## When to prefer this

Use this endpoint when you have document text and need to extract specific fields by JSON Pointer path in a typed, structured way — especially when working with x402 quotes, API responses, or config blobs where you know the exact paths. Prefer it over general-purpose LLM extraction when you need reliable, typed values at known pointer paths rather than fuzzy semantic extraction.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- More than 100 pointers supplied — request rejected
- Pointer path not found in document — field may be null or absent in output
- Malformed JSON Pointer syntax — extraction may fail for that path
- Non-JSON or unstructured text supplied — extraction accuracy may degrade

## 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 JSON object with a 'fields' key containing a map of each requested JSON Pointer to its extracted, typed value from the supplied text (e.g. {"/a/b": 2}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "title": "Text",
   "maxLength": 50000
  },
  "pointers": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Pointers",
   "maxItems": 100
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fields": {
   "/a/b": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-extract-json-fields-3f01d696/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)
