{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prismcrawl-com/json-schema/prismcrawl-com-google-maps-search-request-schema.json",
  "title": "GoogleMapsSearchRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prismcrawl-com-openapi.json#/components/schemas/GoogleMapsSearchRequest",
  "type": "object",
  "anyOf": [
    {
      "required": [
        "type",
        "data"
      ]
    },
    {
      "required": [
        "place_id"
      ]
    },
    {
      "required": [
        "data_cid"
      ]
    },
    {
      "required": [
        "query"
      ]
    }
  ],
  "properties": {
    "webhook_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Required with Prefer: respond-async. Public HTTPS callback URL on port 443, without credentials or a fragment. Receives the completed response by POST; redirects are not followed. Rejected on synchronous requests."
    },
    "webhook_secret": {
      "type": "string",
      "minLength": 32,
      "maxLength": 256,
      "writeOnly": true,
      "description": "Required with Prefer: respond-async. A shared signing secret of 32–256 printable ASCII characters. Never returned in responses or request history."
    },
    "output": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "json",
        "md",
        null
      ],
      "default": "json",
      "description": "Response content format. md returns Markdown in data.content with data.format=md; the JSON success/request envelope remains. Accept: text/markdown also selects Markdown unless output or html=true is explicit. html is an alias for html=true and retains the existing Brotli/Base64 source format."
    },
    "json_restrictor": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 4096,
      "description": "Select fields within data.content for JSON or Markdown. Supports comma-separated paths, non-negative array indices, half-open slices [0:3] (either bound may be omitted), [] and .{nested,subqueries}. Up to128 selections and16 levels. Missing fields are omitted; selected declared fields retain their zero defaults. The request envelope and credit headers remain. Include next_page_token when pagination is needed. Incompatible with HTML output. This changes response presentation only; tracing-enabled history retains the complete JSON result."
    },
    "no_cache": {
      "type": [
        "boolean",
        "null"
      ],
      "default": false,
      "description": "Accepted for compatibility. Searches are always fetched without a result cache for either value; normal successful-request billing applies."
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "search",
        "place",
        null
      ],
      "description": "Search by query/viewport, or look up a place by ID/CID. IDs imply place mode when type is omitted. Place mode does not accept viewport, pagination or search refinements."
    },
    "place_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 20,
      "maxLength": 255,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Native Google Maps place ID. Exclusive with data_cid; query is optional."
    },
    "data_cid": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20,
      "pattern": "^[0-9]+$",
      "description": "Nonzero unsigned64-bit decimal CID, supplied as a string to preserve precision. Exclusive with place_id; query is optional."
    },
    "location": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 512,
      "description": "Named search origin, exclusive with coordinates and ll. One anonymous native Maps lookup resolves the first interpreted place before searching; the two stages share a 16-second budget. A recognized missing location returns 400. With no origin, Google interprets the query geographically."
    },
    "nearby": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Bias native results toward coordinates, ll, or location; useful for near-me queries. Does not guarantee a strict radius."
    },
    "data": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 4096,
      "description": "Deprecated Maps URL data value. Prefer place_id/data_cid for places or named search controls. Cannot be combined with separate refinements. Search data requires an extra native page bootstrap."
    },
    "ll": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 128,
      "description": "Viewport as @latitude,longitude,zoomz or @latitude,longitude,heightm. Exclusive with coordinates, zoom and m; zoom 3–30, height 1–15028132 meters."
    },
    "m": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 1,
      "maximum": 15028132,
      "description": "Map viewport height in meters, with coordinates or location. Exclusive with zoom and ll."
    },
    "google_domain": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "google.com",
        "google.ad",
        "google.ae",
        "google.com.af",
        "google.com.ag",
        "google.al",
        "google.am",
        "google.co.ao",
        "google.com.ar",
        "google.as",
        "google.at",
        "google.com.au",
        "google.az",
        "google.ba",
        "google.com.bd",
        "google.be",
        "google.bf",
        "google.bg",
        "google.com.bh",
        "google.bi",
        "google.bj",
        "google.com.bn",
        "google.com.bo",
        "google.com.br",
        "google.bs",
        "google.bt",
        "google.co.bw",
        "google.by",
        "google.com.bz",
        "google.ca",
        "google.cd",
        "google.cf",
        "google.cg",
        "google.ch",
        "google.ci",
        "google.co.ck",
        "google.cl",
        "google.cm",
        "google.com.co",
        "google.co.cr",
        "google.com.cu",
        "google.cv",
        "google.com.cy",
        "google.cz",
        "google.de",
        "google.dj",
        "google.dk",
        "google.dm",
        "google.com.do",
        "google.dz",
        "google.com.ec",
        "google.ee",
        "google.com.eg",
        "google.es",
        "google.com.et",
        "google.fi",
        "google.com.fj",
        "google.fm",
        "google.fr",
        "google.ga",
        "google.ge",
        "google.gg",
        "google.com.gh",
        "google.com.gi",
        "google.gl",
        "google.gm",
        "google.gr",
        "google.com.gt",
        "google.gy",
        "google.com.hk",
        "google.hn",
        "google.hr",
        "google.ht",
        "google.hu",
        "google.co.id",
        "google.ie",
        "google.co.il",
        "google.im",
        "google.co.in",
        "google.iq",
        "google.is",
        "google.it",
        "google.je",
        "google.com.jm",
        "google.jo",
        "google.co.jp",
        "google.co.ke",
        "google.com.kh",
        "google.ki",
        "google.kg",
        "google.co.kr",
        "google.com.kw",
        "google.kz",
        "google.la",
        "google.com.lb",
        "google.li",
        "google.lk",
        "google.co.ls",
        "google.lt",
        "google.lu",
        "google.lv",
        "google.com.ly",
        "google.co.ma",
        "google.md",
        "google.me",
        "google.mg",
        "google.mk",
        "google.ml",
        "google.com.mm",
        "google.mn",
        "google.com.mt",
        "google.mu",
        "google.mv",
        "google.mw",
        "google.com.mx",
        "google.com.my",
        "google.co.mz",
        "google.com.na",
        "google.com.ng",
        "google.com.ni",
        "google.ne",
        "google.nl",
        "google.no",
        "google.com.np",
        "google.nr",
        "google.nu",
        "google.co.nz",
        "google.com.om",
        "google.com.pa",
        "google.com.pe",
        "google.com.pg",
        "google.com.ph",
        "google.com.pk",
        "google.pl",
        "google.pn",
        "google.com.pr",
        "google.ps",
        "google.pt",
        "google.com.py",
        "google.com.qa",
        "google.ro",
        "google.ru",
        "google.rw",
        "google.com.sa",
        "google.com.sb",
        "google.sc",
        "google.se",
        "google.com.sg",
        "google.sh",
        "google.si",
        "google.sk",
        "google.com.sl",
        "google.sn",
        "google.so",
        "google.sm",
        "google.sr",
        "google.st",
        "google.com.sv",
        "google.td",
        "google.tg",
        "google.co.th",
        "google.com.tj",
        "google.tl",
        "google.tm",
        "google.tn",
        "google.to",
        "google.com.tr",
        "google.tt",
        "google.com.tw",
        "google.co.tz",
        "google.com.ua",
        "google.co.ug",
        "google.co.uk",
        "google.com.uy",
        "google.co.uz",
        "google.com.vc",
        "google.co.ve",
        "google.co.vi",
        "google.com.vn",
        "google.vu",
        "google.ws",
        "google.rs",
        "google.co.za",
        "google.co.zm",
        "google.co.zw",
        "google.cat",
        null
      ],
      "default": "google.com",
      "description": "Google domain used for Maps acquisition."
    },
    "min_price": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 10000000,
      "description": "Lower price bound in the place's local currency. Native price ranges overlapping these bounds may be returned."
    },
    "max_price": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 10000000,
      "description": "Upper price bound; cannot be below min_price."
    },
    "min_rating": {
      "type": [
        "number",
        "null"
      ],
      "enum": [
        2,
        2.5,
        3,
        3.5,
        4,
        4.5,
        null
      ],
      "description": "Preferred minimum rating. Google may still include lower-rated or unrated places."
    },
    "open_state": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "now",
        "24h",
        null
      ],
      "description": "Native opening-hours refinement, exclusive with open_on_day and open_at_hour."
    },
    "open_on_day": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "mon",
        "tue",
        "wed",
        "thu",
        "fri",
        "sat",
        "sun",
        null
      ],
      "description": "Day of the week at the place's local time."
    },
    "open_at_hour": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 23,
      "description": "Hour at the place's local time; requires open_on_day. Zero means midnight."
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8192,
      "x-max-utf8-bytes": 8192,
      "description": "A place, business, product, or category query to search on Google Maps."
    },
    "zero_trace": {
      "type": [
        "boolean",
        "null"
      ],
      "default": false,
      "description": "When true, PrismCrawl does not store the normalized JSON response. Audit and billing metadata is retained, but all other data is permanently discarded. Individual history lookup exposes only type `ZERO_TRACE`, HTTP status code, and credit charge state. History listing also includes request ID, completion time, duration and success."
    },
    "coordinates": {
      "allOf": [
        {
          "$ref": "#/$defs/Coordinates"
        }
      ],
      "description": "Map center, mutually exclusive with ll and location."
    },
    "zoom": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "minimum": 3,
      "maximum": 30,
      "default": 13.1,
      "description": "Google Maps viewport zoom. Lower values cover a wider area; higher values focus more tightly around coordinates."
    },
    "start": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "default": 0,
      "description": "Zero-based Maps result offset. Any non-negative integer is accepted. Pages contain up to 20 places; num does not change this page size. Use 0, 20, 40 and so on. There is no fixed terminal offset: high offsets can return repeated or empty results, so pagination does not guarantee an exhaustive listing."
    },
    "gl": {
      "type": [
        "string",
        "null"
      ],
      "default": "us",
      "enum": [
        "ad",
        "ae",
        "af",
        "ag",
        "ai",
        "al",
        "am",
        "an",
        "ao",
        "aq",
        "ar",
        "as",
        "at",
        "au",
        "aw",
        "ax",
        "az",
        "ba",
        "bb",
        "bd",
        "be",
        "bf",
        "bg",
        "bh",
        "bi",
        "bj",
        "bl",
        "bm",
        "bn",
        "bo",
        "bq",
        "br",
        "bs",
        "bt",
        "bv",
        "bw",
        "by",
        "bz",
        "ca",
        "cc",
        "cd",
        "cf",
        "cg",
        "ch",
        "ci",
        "ck",
        "cl",
        "cm",
        "cn",
        "co",
        "cr",
        "cs",
        "cu",
        "cv",
        "cw",
        "cx",
        "cy",
        "cz",
        "de",
        "dj",
        "dk",
        "dm",
        "do",
        "dz",
        "ec",
        "ee",
        "eg",
        "eh",
        "er",
        "es",
        "et",
        "fi",
        "fj",
        "fk",
        "fm",
        "fo",
        "fr",
        "ga",
        "gb",
        "gd",
        "ge",
        "gf",
        "gg",
        "gh",
        "gi",
        "gl",
        "gm",
        "gn",
        "gp",
        "gq",
        "gr",
        "gs",
        "gt",
        "gu",
        "gw",
        "gy",
        "hk",
        "hm",
        "hn",
        "hr",
        "ht",
        "hu",
        "id",
        "ie",
        "il",
        "im",
        "in",
        "io",
        "iq",
        "ir",
        "is",
        "it",
        "je",
        "jm",
        "jo",
        "jp",
        "ke",
        "kg",
        "kh",
        "ki",
        "km",
        "kn",
        "kp",
        "kr",
        "kw",
        "ky",
        "kz",
        "la",
        "lb",
        "lc",
        "li",
        "lk",
        "lr",
        "ls",
        "lt",
        "lu",
        "lv",
        "ly",
        "ma",
        "mc",
        "md",
        "me",
        "mf",
        "mg",
        "mh",
        "mk",
        "ml",
        "mm",
        "mn",
        "mo",
        "mp",
        "mq",
        "mr",
        "ms",
        "mt",
        "mu",
        "mv",
        "mw",
        "mx",
        "my",
        "mz",
        "na",
        "nc",
        "ne",
        "nf",
        "ng",
        "ni",
        "nl",
        "no",
        "np",
        "nr",
        "nu",
        "nz",
        "om",
        "pa",
        "pe",
        "pf",
        "pg",
        "ph",
        "pk",
        "pl",
        "pm",
        "pn",
        "pr",
        "ps",
        "pt",
        "pw",
        "py",
        "qa",
        "re",
        "ro",
        "rs",
        "ru",
        "rw",
        "sa",
        "sb",
        "sc",
        "sd",
        "se",
        "sg",
        "sh",
        "si",
        "sj",
        "sk",
        "sl",
        "sm",
        "sn",
        "so",
        "sr",
        "ss",
        "st",
        "sv",
        "sx",
        "sy",
        "sz",
        "tc",
        "td",
        "tf",
        "tg",
        "th",
        "tj",
        "tk",
        "tl",
        "tm",
        "tn",
        "to",
        "tr",
        "tt",
        "tv",
        "tw",
        "tz",
        "ua",
        "ug",
        "uk",
        "um",
        "us",
        "uy",
        "uz",
        "va",
        "vc",
        "ve",
        "vg",
        "vi",
        "vn",
        "vu",
        "wf",
        "ws",
        "ye",
        "yt",
        "za",
        "zm",
        "zw",
        null
      ],
      "description": "Two-letter Google country hint. Case-insensitive."
    },
    "hl": {
      "type": [
        "string",
        "null"
      ],
      "default": "en-US",
      "enum": [
        "af",
        "sq",
        "am",
        "ar",
        "hy",
        "az",
        "bn",
        "bg",
        "my",
        "ca",
        "zh-CN",
        "zh-TW",
        "hr",
        "cs",
        "da",
        "nl",
        "en-GB",
        "en",
        "en-US",
        "et",
        "fil",
        "fi",
        "fr-CA",
        "fr",
        "ka",
        "de",
        "el",
        "gu",
        "iw",
        "he",
        "hi",
        "hu",
        "is",
        "id",
        "it",
        "ja",
        "kn",
        "kk",
        "km",
        "ko",
        "ky",
        "lo",
        "lv",
        "lt",
        "mk",
        "ms",
        "ml",
        "mr",
        "mn",
        "ne",
        "no",
        "fa",
        "pl",
        "pt-BR",
        "pt-PT",
        "pa",
        "ro",
        "ru",
        "sr-Latn",
        "sr",
        "si",
        "sk",
        "sl",
        "es-419",
        "es",
        "sw",
        "sv",
        "ta",
        "te",
        "th",
        "tr",
        "uk",
        "ur",
        "uz",
        "vi",
        "cy",
        null
      ],
      "description": "Google Maps interface language. Case-insensitive."
    }
  },
  "$defs": {
    "Coordinates": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "latitude",
        "longitude"
      ],
      "properties": {
        "latitude": {
          "type": "number",
          "format": "double",
          "minimum": -90,
          "maximum": 90
        },
        "longitude": {
          "type": "number",
          "format": "double",
          "minimum": -180,
          "maximum": 180
        }
      }
    }
  }
}