{"uid":"cap_Zh56fWvA6SIyar-dQ1WNO","slug":"fittings-json-schema-inference-12eaa704","name":"fittings JSON Schema Inference","description":"Infers a JSON Schema 2020-12 document from sample records: unified types, required keys, array item types and string formats.","url":"https://fittings.sh/v1/schema/infer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","description":"Up to 1000 JSON values, 50000 nodes and 32 levels deep"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004999","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.004999/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004999","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004999","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uYhQS6s1L1AAwGBaeAFzB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004999","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers a JSON Schema 2020-12 document from a set of sample JSON records, detecting unified types, required keys, array item types, and string formats.","exampleAgentPrompt":"Can you look at these JSON records I have and automatically figure out the schema — unified types, which fields are required, array item types, and any string formats like dates or UUIDs?","exampleUseCases":[{"title":"API response schema documentation","prompt":"I have 50 sample responses from an API endpoint and I need a JSON Schema 2020-12 document generated from them automatically — can you infer the schema including required fields and string formats?"},{"title":"Data pipeline input validation","prompt":"Here are 200 records from our data pipeline ingestion log. Can you infer a JSON schema from them so I can use it to validate future incoming records?"},{"title":"Unknown data structure exploration","prompt":"I got this dump of JSON objects from a third-party system and I have no idea what the structure looks like — can you analyze up to 1000 of these records and produce a JSON Schema that captures all the types, required keys, and any array structures?"}],"resultDescription":"A JSON Schema 2020-12 document that captures unified field types across all sample records, marks fields as required when present in all records, describes array item types, and detects common string formats (e.g. date-time, UUID, email). The schema reflects the union of all observed structures.","failureModes":["Input array exceeds 1000 records, 50000 nodes, or 32 levels of nesting — returns validation error","Empty records array — may return minimal or empty schema","Highly inconsistent record structures may produce overly permissive schemas with many anyOf branches","Malformed JSON in records — parse error returned","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to automatically derive a formal JSON Schema 2020-12 document from sample data, especially when dealing with unknown or undocumented data structures. Prefer it over manual schema writing when you have real examples but no schema, or when you want to document an API's response shape programmatically. It handles up to 1000 records at once and resolves string formats automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:51:15.505Z","isFirstParty":false,"canonicalSlug":"fittings-json-schema-inference-12eaa704"}