{"slug": "schema-first-pdf-json-in-one-api-call-try-the-playground", "title": "Schema-First PDF JSON in One API Call (Try the Playground)", "summary": "0xPdf has launched a schema-first PDF-to-JSON API that lets developers define a JSON schema or pick a template, send a PDF, and receive structured JSON in a single HTTP call or MCP tool. The service aims to replace brittle OCR-to-regex pipelines for extracting typed fields like vendor, totals, and line items from invoices and forms. A browser playground is available for testing with sample or uploaded PDFs.", "body_md": "If you are wiring invoice/form extraction into an app, the usual trap is: OCR dump → brittle regex → custom parsers per vendor.\n\n**0xPdf** flips that: you define a JSON schema (or pick a template), send a PDF, get structured JSON back — one HTTP call or MCP tool.\n\nOpen the browser playground and run sample PDFs (or upload your own):\n\n[https://0xpdf.io/samples?utm_source=devto&utm_medium=article&utm_campaign=schema-first-playground](https://0xpdf.io/samples?utm_source=devto&utm_medium=article&utm_campaign=schema-first-playground)\n\nNo production wiring required to see whether the shape fits your workflow.\n\n```\ncurl -X POST \"https://api.0xpdf.io/api/v1/pdf/parse\" \\\n  -H \"X-API-Key: YOUR_KEY\" \\\n  -F \"file=@invoice.pdf\" \\\n  -F \"schema_template=invoice\"\n```\n\nDocs + SDKs: [https://0xpdf.io/docs?utm_source=devto&utm_medium=article&utm_campaign=schema-first-playground](https://0xpdf.io/docs?utm_source=devto&utm_medium=article&utm_campaign=schema-first-playground)\n\nDevelopers and agents that need **typed fields** (vendor, totals, line items) — not a wall of OCR text.\n\nIf the playground output looks right on 3–5 of your real PDFs, the API path is usually straightforward.\n\nBuilt by [0xPdf](https://0xpdf.io/?utm_source=devto&utm_medium=article&utm_campaign=schema-first-playground).", "url": "https://wpnews.pro/news/schema-first-pdf-json-in-one-api-call-try-the-playground", "canonical_source": "https://dev.to/rishamax/schema-first-pdf-json-in-one-api-call-try-the-playground-516a", "published_at": "2026-07-15 16:44:37+00:00", "updated_at": "2026-07-15 17:11:58.837120+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "natural-language-processing"], "entities": ["0xPdf"], "alternates": {"html": "https://wpnews.pro/news/schema-first-pdf-json-in-one-api-call-try-the-playground", "markdown": "https://wpnews.pro/news/schema-first-pdf-json-in-one-api-call-try-the-playground.md", "text": "https://wpnews.pro/news/schema-first-pdf-json-in-one-api-call-try-the-playground.txt", "jsonld": "https://wpnews.pro/news/schema-first-pdf-json-in-one-api-call-try-the-playground.jsonld"}}