{
  "x402Version": 2,
  "id": 8238,
  "slug": "8238",
  "resource": "https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/custom",
  "description": "SchemaLock — extract structured JSON data from any PDF/image or raw text/HTML, converting it into a JSON Schema you supply, not limited to invoice/receipt/contract/resume. Unlike the fixed invoice/receipt/contract/resume endpoints, this accepts any JSON Schema — you define the fields. Takes a PDF/image file OR raw text/HTML you already have (e.g. a scraped page). Schema-conformance, not fact-checking. A rejected schema is a 400 and costs nothing.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x65c767C483dd862d08Bc3d6500Cd4CD770Ae28ED",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "content": "<string: raw text or HTML, e.g. an already-scraped web page, max 100000 chars — send this OR 'file', not both>",
            "file": "<binary: PDF, PNG, or JPEG/WEBP, max 15MB — send this OR 'content', not both>",
            "instructions": "<optional string: extra guidance for the model, max 1000 chars>",
            "schema": "<string: JSON Schema, type \"object\", e.g. {\"type\":\"object\",\"properties\":{\"order_id\":{\"type\":\"string\"},\"ship_date\":{\"type\":\"string\"},\"total_weight_kg\":{\"type\":\"number\"}}}>"
          },
          "bodyType": "form-data",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "order_id": "PO-88213",
              "ship_date": "2026-07-14",
              "total_weight_kg": 42.5
            },
            "retried": false,
            "validation_warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {}
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "doc-extract-api.thestarboy9696-4ef.workers.dev",
  "lastUpdated": "2026-09-08T19:25:19.108Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-08T19:25:18.474Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "doc-extract-api.thestarboy9696-4ef.workers.dev",
    "manifest_name": "doc-extract-api.thestarboy9696-4ef.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}