{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snoopscan-com/json-schema/snoopscan-com-serp-request-schema.json",
  "title": "SerpRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snoopscan-com-serp-api-openapi.yml#/components/schemas/SerpRequest",
  "properties": {
    "keyword": {
      "type": "string",
      "maxLength": 700,
      "minLength": 1,
      "title": "Keyword",
      "description": "The search to look up, as it would be typed into Google."
    },
    "country": {
      "type": "string",
      "maxLength": 2,
      "minLength": 2,
      "title": "Country",
      "description": "Two-letter code of the country whose results you want, e.g. `gb`.",
      "default": "us"
    },
    "locationCode": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Locationcode",
      "description": "Google's own geographic target ID, for somewhere finer than a country. Overrides `country`."
    },
    "language": {
      "type": "string",
      "maxLength": 10,
      "minLength": 2,
      "title": "Language",
      "description": "The language code of the results, e.g. `en`.",
      "default": "en"
    },
    "device": {
      "type": "string",
      "enum": [
        "desktop",
        "mobile"
      ],
      "title": "Device",
      "description": "`desktop` or `mobile`.",
      "default": "desktop"
    },
    "depth": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Depth",
      "description": "How many results to read, 1 to 100.",
      "default": 10
    },
    "aiOverview": {
      "type": "boolean",
      "title": "Aioverview",
      "description": "Include Google's AI Overview and the pages it cites. On by default.",
      "default": true
    },
    "domain": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 253
        },
        {
          "type": "null"
        }
      ],
      "title": "Domain",
      "description": "Your site. When given, the answer says where it ranks and whether the AI Overview cites it."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "keyword"
  ]
}