{"slug":"format-openverbs-com-v1-infer-schema-4a7607","title":"Infer a JSON Schema (draft-07) from a sample document in any supported format","host":"format.openverbs.com","method":"POST","resource":"https://format.openverbs.com/v1/infer-schema","category":"code","description":"Infer a JSON Schema (draft-07) from a sample document in any supported format. Types are inferred, present keys are marked required, and heterogeneous array item schemas are merged. The result validates out of the box with /v1/validate.","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":472,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"data":"example","from":"json"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"data":{"description":"The sample document to infer a schema from, as a string in the `from` format.","maxLength":1000000,"minLength":1,"type":"string"},"from":{"description":"Source format of `data`. Default json.","enum":["json","json5","jsonc","yaml","xml","csv","tsv","toml","ndjson","ini","env","properties","plist","querystring"],"type":"string"}},"required":["data"],"type":"object"},"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"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":472,"error":null}],"description_full":"Infer a JSON Schema (draft-07) from a sample document in any supported format. Types are inferred, present keys are marked required, and heterogeneous array item schemas are merged. The result validates out of the box with /v1/validate.","last_updated":"2026-09-06T08:09:06.416Z","schemes":["exact"]}