{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/keenable/main/json-schema/keenable-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keenable-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "required": [
    "query",
    "mode",
    "results"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Echo of the search query"
    },
    "mode": {
      "type": "string",
      "description": "Search mode used"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchResult"
      }
    }
  },
  "$defs": {
    "SearchResult": {
      "type": "object",
      "required": [
        "title",
        "url",
        "description"
      ],
      "properties": {
        "title": {
          "type": "string",
          "description": "Page title"
        },
        "url": {
          "type": "string",
          "description": "Page URL"
        },
        "description": {
          "type": "string",
          "description": "Page description"
        },
        "snippet": {
          "type": "string",
          "description": "Search snippet with query-relevant highlights"
        },
        "published_at": {
          "type": "string",
          "description": "When the page was published (ISO 8601)"
        },
        "acquired_at": {
          "type": "string",
          "description": "When the page was indexed (ISO 8601)"
        }
      }
    }
  }
}