ekofyi
Liveapishipped v1.0.0

API Response Schema Generator

Automatically infer types from JSON API responses and generate production-ready schemas. Supports TypeScript interfaces, JSON Schema draft-07, and Zod validators. Handles nested objects, arrays, nullable fields, and optional properties. Paste multiple responses to merge and detect optional fields.

jsontypescriptschemazodapicodegen
format:
JSON sample
json-schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "active": {
      "type": "boolean"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "profile": {
      "type": "object",
      "properties": {
        "bio": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "years": {
                "type": "integer"
              }
            },
            "required": [
              "name",
              "years"
            ]
          }
        }
      },
      "required": [
        "bio",
        "website",
        "skills"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "email",
    "age",
    "active",
    "roles",
    "profile"
  ]
}

🔒 Infers types from JSON sample. Run on local data — never sent anywhere.