{"slug":"saylorinnovations-com-api-dev-json-schema-073e41","title":"Infer a JSON Schema from a sample JSON document","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/dev/json-schema","category":"code","description":"Infer a JSON Schema from a sample JSON document - types, nested objects and arrays, required fields and string formats like email, date, uri and uuid","price_listed":0.01,"price_asked":null,"state":"no_terms","state_label":"Answers HTTP 404 without x402 payment terms","checks_7d":1,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"json":"{\"id\":7,\"name\":\"Ada\",\"email\":\"ada@example.com\",\"joined\":\"2026-01-05\",\"tags\":[\"a\",\"b\"],\"score\":9.5,\"active\":true}"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"properties":{"json":{"description":"URL-encoded sample JSON document (up to 6000 characters)","type":"string"}},"required":["json"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"fields":{"type":"array"},"note":{"description":"Caveat or context for reading the result","type":"string"},"root_type":{"description":"Root type","type":"string"},"schema":{"type":"object"},"schema_nodes":{"description":"Schema nodes","type":"number"},"source":{"description":"Data source the values come from","type":"string"}},"required":["root_type","schema","fields"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":404,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":225,"error":null}],"description_full":"Infer a JSON Schema from a sample JSON document - types, nested objects and arrays, required fields and string formats like email, date, uri and uuid","last_updated":"2026-10-17T10:22:28.659Z","schemes":["exact"]}