{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-bible-search-response-schema.json",
  "title": "BibleSearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-bible-api-openapi.yml#/components/schemas/BibleSearchResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The search query, when q is used."
    },
    "similar_to": {
      "type": "string",
      "description": "The reference, when similar_to is used."
    },
    "mode": {
      "type": "string",
      "enum": [
        "keyword",
        "phrase",
        "semantic",
        "hybrid",
        "strongs",
        "similar"
      ],
      "description": "The search mode used."
    },
    "translation": {
      "$ref": "#/$defs/BibleTranslationInfo"
    },
    "total": {
      "type": "integer",
      "description": "Total number of matching verses, for keyword, phrase and Strong's number searches."
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BibleSearchResult"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BibleWarning"
      }
    }
  },
  "$defs": {
    "BibleSearchResult": {
      "type": "object",
      "properties": {
        "reference": {
          "type": "string"
        },
        "book": {
          "type": "string"
        },
        "book_code": {
          "type": "string"
        },
        "chapter": {
          "type": "integer"
        },
        "verse": {
          "type": "integer"
        },
        "text": {
          "type": "string"
        },
        "score": {
          "type": "number",
          "description": "For semantic and similar_to searches: how close the verse is in meaning (higher is closer, 1 is the maximum)."
        }
      }
    },
    "BibleTranslationInfo": {
      "type": "object",
      "description": "The translation: id, name and language code.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Translation id."
        },
        "name": {
          "type": "string"
        },
        "language": {
          "type": "string",
          "description": "Language code, e.g. en, es or zh-Hans."
        }
      }
    },
    "BibleWarning": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VERSE_NOT_IN_TRANSLATION",
            "NUMBERING_DIFFERS",
            "BOOK_NOT_IN_TRANSLATION",
            "RANGE_CLAMPED",
            "PARTIAL_VERSE",
            "OPEN_RANGE",
            "PARTIAL_MATCH",
            "SEMANTIC_NOT_AVAILABLE"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}