{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-search-queries-response-schema.json",
  "title": "SearchQueriesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-admin-search-queries-api-openapi.yml#/components/schemas/SearchQueriesResponse",
  "properties": {
    "days": {
      "type": "integer",
      "title": "Days"
    },
    "last_searched_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Searched At"
    },
    "searches": {
      "type": "integer",
      "title": "Searches"
    },
    "zero_hits": {
      "type": "integer",
      "title": "Zero Hits"
    },
    "terms": {
      "type": "integer",
      "title": "Terms"
    },
    "surfaces": {
      "items": {
        "$ref": "#/$defs/SearchSurfaceCount"
      },
      "type": "array",
      "title": "Surfaces"
    },
    "top_terms": {
      "items": {
        "$ref": "#/$defs/SearchTerm"
      },
      "type": "array",
      "title": "Top Terms"
    },
    "zero_hit_terms": {
      "items": {
        "$ref": "#/$defs/SearchTerm"
      },
      "type": "array",
      "title": "Zero Hit Terms"
    },
    "recent": {
      "items": {
        "$ref": "#/$defs/SearchQuery"
      },
      "type": "array",
      "title": "Recent"
    }
  },
  "type": "object",
  "required": [
    "days",
    "searches",
    "zero_hits",
    "terms",
    "surfaces",
    "top_terms",
    "zero_hit_terms",
    "recent"
  ],
  "$defs": {
    "SearchQuery": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "searched_at": {
          "type": "string",
          "format": "date-time",
          "title": "Searched At"
        },
        "term": {
          "type": "string",
          "title": "Term"
        },
        "surface": {
          "type": "string",
          "title": "Surface"
        },
        "page_path": {
          "type": "string",
          "title": "Page Path"
        },
        "result_count": {
          "type": "integer",
          "title": "Result Count"
        }
      },
      "type": "object",
      "required": [
        "id",
        "searched_at",
        "term",
        "surface"
      ],
      "title": "SearchQuery"
    },
    "SearchSurfaceCount": {
      "properties": {
        "surface": {
          "type": "string",
          "title": "Surface"
        },
        "searches": {
          "type": "integer",
          "title": "Searches"
        },
        "zero_hits": {
          "type": "integer",
          "title": "Zero Hits"
        }
      },
      "type": "object",
      "required": [
        "surface",
        "searches",
        "zero_hits"
      ],
      "title": "SearchSurfaceCount"
    },
    "SearchTerm": {
      "properties": {
        "term": {
          "type": "string",
          "title": "Term"
        },
        "surface": {
          "type": "string",
          "title": "Surface"
        },
        "searches": {
          "type": "integer",
          "title": "Searches"
        },
        "zero_hits": {
          "type": "integer",
          "title": "Zero Hits"
        },
        "last_searched_at": {
          "type": "string",
          "format": "date-time",
          "title": "Last Searched At"
        }
      },
      "type": "object",
      "required": [
        "term",
        "surface",
        "searches",
        "zero_hits",
        "last_searched_at"
      ],
      "title": "SearchTerm",
      "description": "語 (大文字小文字をそろえた) と検索箱の組"
    }
  }
}