{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sightkick-so/json-schema/sightkick-so-get-search-console-query-schema.json",
  "title": "get_search_console.query",
  "description": "Search Analytics by query, page, country (usa, gbr, deu), device, date or appearance, filtered, up to 1,000 rows (startRow for more). live asks Google now. Permission: read.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sightkick-so-openapi.json#/components/schemas/get_search_console.query",
  "type": "object",
  "properties": {
    "view": {
      "const": "query"
    },
    "dimensions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "query",
          "page",
          "country",
          "device",
          "date",
          "searchAppearance"
        ]
      },
      "maxItems": 4
    },
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 480
    },
    "startDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "endDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "country": {
      "type": "string"
    },
    "device": {
      "type": "string",
      "enum": [
        "DESKTOP",
        "MOBILE",
        "TABLET"
      ]
    },
    "page": {
      "type": "string",
      "maxLength": 500,
      "description": "A URL, or part of one"
    },
    "query": {
      "type": "string",
      "maxLength": 200,
      "description": "A search, or part of one"
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dimension": {
            "type": "string",
            "enum": [
              "query",
              "page",
              "country",
              "device",
              "date",
              "searchAppearance"
            ]
          },
          "operator": {
            "type": "string",
            "enum": [
              "equals",
              "notEquals",
              "contains",
              "notContains",
              "includingRegex",
              "excludingRegex"
            ]
          },
          "expression": {
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "dimension",
          "operator",
          "expression"
        ],
        "additionalProperties": false
      },
      "maxItems": 10
    },
    "searchType": {
      "type": "string",
      "enum": [
        "web",
        "image",
        "video",
        "news",
        "discover",
        "googleNews"
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "startRow": {
      "type": "integer",
      "minimum": 0
    },
    "live": {
      "type": "boolean"
    }
  },
  "required": [
    "view"
  ],
  "additionalProperties": false,
  "x-permission": "read"
}