{"uid":"cap_HqypORTBrgdGmCb18dnNy","slug":"structura-messy-input-to-schema-conformant-json-e8089730","name":"Structura — Messy Input to Schema-Conformant JSON","description":"Turn a URL, HTML, text or a PDF-ish blob into JSON that provably validates against your JSON Schema. Paid per call over x402.","url":"https://structura.x.c00l.site/infer","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"data":{"name":"Widget Pro","price":19.99},"valid":true,"schema":{"type":"object","title":"Product Listing","$schema":"https://json-schema.org/draft/2020-12/schema","required":["name","price"],"properties":{"name":{"type":["string","null"],"description":"Product name."},"price":{"type":["number","null"],"description":"Numeric price."}}},"documentKind":"e-commerce product page","repairAttempts":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KjV-JyzXHh41G6PHV87qp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts URLs, HTML, plain text, or PDF-like blobs into JSON that validates against a user-supplied JSON Schema, with repair attempts tracked.","exampleAgentPrompt":"Fetch the product page at https://example.com/widget-pro and extract the name and price into JSON that validates against this schema: {\"type\":\"object\",\"required\":[\"name\",\"price\"],\"properties\":{\"name\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"}}}.","exampleUseCases":[{"title":"E-commerce product data extraction","prompt":"Grab this product page at https://shop.example.com/shoes/running-x and extract the product name, price, and availability into JSON conforming to this schema: {\"type\":\"object\",\"required\":[\"name\",\"price\",\"available\"],\"properties\":{\"name\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"},\"available\":{\"type\":\"boolean\"}}}."},{"title":"PDF invoice field parsing","prompt":"I have a PDF invoice blob — can you pull out the invoice number, vendor name, total amount due, and due date into validated JSON using this schema: {\"type\":\"object\",\"required\":[\"invoiceNumber\",\"vendor\",\"total\",\"dueDate\"],\"properties\":{\"invoiceNumber\":{\"type\":\"string\"},\"vendor\":{\"type\":\"string\"},\"total\":{\"type\":\"number\"},\"dueDate\":{\"type\":\"string\"}}}}?"},{"title":"News article metadata extraction","prompt":"Parse this news article HTML and give me the headline, author, and publication date as schema-conformant JSON matching {\"type\":\"object\",\"required\":[\"headline\",\"author\",\"publishedAt\"],\"properties\":{\"headline\":{\"type\":\"string\"},\"author\":{\"type\":\"string\"},\"publishedAt\":{\"type\":\"string\",\"format\":\"date-time\"}}}."}],"resultDescription":"Returns a JSON object containing: 'data' (the extracted, schema-conformant JSON payload), 'valid' (boolean indicating whether the output passes JSON Schema validation), 'schema' (the JSON Schema used or inferred), 'documentKind' (a human-readable label for the detected document type), and 'repairAttempts' (number of times the system retried to coerce the output into a valid form).","failureModes":["URL is inaccessible or returns non-200 status — extraction fails with an error","Input content is too ambiguous or sparse to map to the supplied schema — may return valid:false","Schema is too strict and output cannot be repaired to conform — repairAttempts exhausted","PDF blob is image-based (scanned) and text extraction is not possible","Schema references unsupported JSON Schema features or draft versions","Payment not received via x402 protocol — request rejected before processing"],"whenToPreferThis":"Choose Structura when you need provably schema-valid JSON output from unstructured or semi-structured sources (URLs, HTML, text, PDFs) and correctness matters — especially when downstream systems require strict schema conformance. It is preferable to generic web scrapers or LLM extraction pipelines when you need the 'valid' guarantee and repair-attempt transparency, and when you are willing to pay per call for reliability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:04.090Z","isFirstParty":false}