{"slug":"code-halowerk-com-v1-json-to-types-85fce7","title":"Infer TypeScript, Go, Rust or Python type definitions from one or more JSON samp","host":"code.halowerk.com","method":"POST","resource":"https://code.halowerk.com/v1/json-to-types","category":"code","description":"Infer TypeScript, Go, Rust or Python type definitions from one or more JSON samples, with optional fields and nested types detected across samples. Feeds up to 100 JSON samples into quicktype-core 26.0.0 and renders type definitions only (TypeScript interfaces, Go structs with json tags, Rust serde ","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":893,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"language":"typescript","samples":[{"id":1,"name":"Lamp","price":9.5,"tags":["new"]}],"type_name":"Product"},"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":{"language":{"description":"Target language.","enum":["typescript","go","rust","python"],"type":"string"},"samples":{"description":"JSON values (usually objects) that all represent the same type.","items":{},"maxItems":100,"minItems":1,"type":"array"},"type_name":{"default":"Root","description":"Name of the top-level type.","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$","type":"string"}},"required":["samples","language"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":904,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":924,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":910,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":893,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":866,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":879,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":887,"error":null}],"description_full":"Infer TypeScript, Go, Rust or Python type definitions from one or more JSON samples, with optional fields and nested types detected across samples. Feeds up to 100 JSON samples into quicktype-core 26.0.0 and renders type definitions only (TypeScript interfaces, Go structs with json tags, Rust serde structs, Python 3.7 dataclasses). Properties missing in some samples become optional; nulls become nullable; integers and floats are distinguished.","last_updated":"2026-11-20T12:57:10.547Z","schemes":["exact"]}