{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-custom-search/json-schema/google-custom-search-search-schema.json",
  "title": "Search",
  "description": "Response to a custom search request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-custom-search-cse-api-openapi.yml#/components/schemas/Search",
  "properties": {
    "items": {
      "description": "The current set of custom search results.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Result"
      }
    },
    "spelling": {
      "type": "object",
      "properties": {
        "correctedQuery": {
          "type": "string",
          "description": "The corrected query."
        },
        "htmlCorrectedQuery": {
          "description": "The corrected query, formatted in HTML.",
          "type": "string"
        }
      },
      "description": "Spell correction information for a query."
    },
    "kind": {
      "description": "Unique identifier for the type of current object. For this API, it is customsearch#search.",
      "type": "string"
    },
    "queries": {
      "type": "object",
      "description": "Query metadata for the previous, current, and next pages of results.",
      "properties": {
        "request": {
          "type": "array",
          "items": {
            "properties": {
              "orTerms": {
                "description": "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms. You can also use the [Boolean OR](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) query term for this type of query.",
                "type": "string"
              },
              "disableCnTwTranslation": {
                "description": "Enables or disables the [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch) feature. Supported values are: * `0`: enabled (default) * `1`: disabled",
                "type": "string"
              },
              "startIndex": {
                "description": "The index of the current set of search results into the total set of results, where the index of the first result is 1.",
                "type": "integer",
                "format": "int32"
              },
              "lowRange": {
                "description": "Specifies the starting value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
                "type": "string"
              },
              "siteSearch": {
                "type": "string",
                "description": "Restricts results to URLs from a specified site."
              },
              "outputEncoding": {
                "type": "string",
                "description": "The character encoding supported for search results."
              },
              "dateRestrict": {
                "type": "string",
                "description": "Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years."
              },
              "language": {
                "description": "The language of the search results.",
                "type": "string"
              },
              "imgSize": {
                "type": "string",
                "description": "Restricts results to images of a specified size. Supported values are: * `icon` (small) * `small | medium | large | xlarge` (medium) * `xxlarge` (large) * `huge` (extra-large)"
              },
              "inputEncoding": {
                "description": "The character encoding supported for search requests.",
                "type": "string"
              },
              "linkSite": {
                "description": "Specifies that all results should contain a link to a specific URL.",
                "type": "string"
              },
              "exactTerms": {
                "description": "Identifies a phrase that all documents in the search results must contain.",
                "type": "string"
              },
              "title": {
                "description": "A description of the query.",
                "type": "string"
              },
              "gl": {
                "type": "string",
                "description": "Boosts search results whose country of origin matches the parameter value. See [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) for a list of valid values. Specifying a `gl` parameter value in WebSearch requests should improve the relevance of results. This is particularly true for international customers and, even more specifically, for customers in English-speaking countries other than the United States."
              },
              "rights": {
                "type": "string",
                "description": "Filters based on licensing. Supported values include: * `cc_publicdomain` * `cc_attribute` * `cc_sharealike` * `cc_noncommercial` * `cc_nonderived`"
              },
              "safe": {
                "type": "string",
                "description": "Specifies the [SafeSearch level](https://developers.google.com/custom-search/docs/json_api_reference#safeSearchLevels) used for filtering out adult results. This is a custom property not defined in the OpenSearch spec. Valid parameter values are: * `\"off\"`: Disable SafeSearch * `\"active\"`: Enable SafeSearch"
              },
              "cr": {
                "description": "Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) in the `cr` parameter's value. Google WebSearch determines the country of a document by analyzing the following: * The top-level domain (TLD) of the document's URL. * The geographic location of the web server's IP address. See [Country (cr) Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) for a list of valid values for this parameter.",
                "type": "string"
              },
              "searchTerms": {
                "description": "The search terms entered by the user.",
                "type": "string"
              },
              "relatedSite": {
                "description": "Specifies that all search results should be pages that are related to the specified URL. The parameter value should be a URL.",
                "type": "string"
              },
              "sort": {
                "type": "string",
                "description": "Specifies that results should be sorted according to the specified expression. For example, sort by date."
              },
              "imgDominantColor": {
                "description": "Restricts results to images with a specific dominant color. Supported values are: * `red` * `orange` * `yellow` * `green` * `teal` * `blue` * `purple` * `pink` * `white` * `gray` * `black` * `brown`",
                "type": "string"
              },
              "fileType": {
                "description": "Restricts results to files of a specified extension. Filetypes supported by Google include: * Adobe Portable Document Format (`pdf`) * Adobe PostScript (`ps`) * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`) * Lotus WordPro (`lwp`) * Macwrite (`mw`) * Microsoft Excel (`xls`) * Microsoft PowerPoint (`ppt`) * Microsoft Word (`doc`) * Microsoft Works (`wks`, `wps`, `wdb`) * Microsoft Write (`wri`) * Rich Text Format (`rtf`) * Shockwave Flash (`swf`) * Text (`ans`, `txt`). Additional filetypes may be added in the future. An up-to-date list can always be found in Google's [file type FAQ](https://support.google.com/webmasters/answer/35287).",
                "type": "string"
              },
              "siteSearchFilter": {
                "description": "Specifies whether to include or exclude results from the site named in the `sitesearch` parameter. Supported values are: * `i`: include content from site * `e`: exclude content from site",
                "type": "string"
              },
              "imgColorType": {
                "description": "Restricts results to images of a specified color type. Supported values are: * `mono` (black and white) * `gray` (grayscale) * `color` (color)",
                "type": "string"
              },
              "cx": {
                "description": "The identifier of an engine created using the Programmable Search Engine [Control Panel](https://programmablesearchengine.google.com/). This is a custom property not defined in the OpenSearch spec. This parameter is **required**.",
                "type": "string"
              },
              "filter": {
                "description": "Activates or deactivates the automatic filtering of Google search results. See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Valid values for this parameter are: * `0`: Disabled * `1`: Enabled (default) **Note**: By default, Google applies filtering to all search results to improve the quality of those results.",
                "type": "string"
              },
              "highRange": {
                "description": "Specifies the ending value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
                "type": "string"
              },
              "excludeTerms": {
                "description": "Identifies a word or phrase that should not appear in any documents in the search results.",
                "type": "string"
              },
              "googleHost": {
                "type": "string",
                "description": "Specifies the Google domain (for example, google.com, google.de, or google.fr) to which the search should be limited."
              },
              "count": {
                "format": "int32",
                "type": "integer",
                "description": "Number of search results returned in this set."
              },
              "startPage": {
                "format": "int32",
                "description": "The page number of this set of results, where the page length is set by the `count` property.",
                "type": "integer"
              },
              "hl": {
                "description": "Specifies the interface language (host language) of your user interface. Explicitly setting this parameter improves the performance and the quality of your search results. See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages.",
                "type": "string"
              },
              "totalResults": {
                "description": "Estimated number of total search results. May not be accurate.",
                "type": "string",
                "format": "int64"
              },
              "imgType": {
                "type": "string",
                "description": "Restricts results to images of a specified type. Supported values are: * `clipart` (Clip art) * `face` (Face) * `lineart` (Line drawing) * `photo` (Photo) * `animated` (Animated) * `stock` (Stock)"
              },
              "hq": {
                "description": "Appends the specified query terms to the query, as if they were combined with a logical `AND` operator.",
                "type": "string"
              },
              "searchType": {
                "description": "Allowed values are `web` or `image`. If unspecified, results are limited to webpages.",
                "type": "string"
              }
            },
            "description": "Custom search request metadata.",
            "type": "object"
          },
          "description": "Metadata representing the current request."
        },
        "nextPage": {
          "type": "array",
          "description": "Metadata representing the next page of results, if applicable.",
          "items": {
            "type": "object",
            "properties": {
              "imgColorType": {
                "type": "string",
                "description": "Restricts results to images of a specified color type. Supported values are: * `mono` (black and white) * `gray` (grayscale) * `color` (color)"
              },
              "disableCnTwTranslation": {
                "description": "Enables or disables the [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch) feature. Supported values are: * `0`: enabled (default) * `1`: disabled",
                "type": "string"
              },
              "title": {
                "type": "string",
                "description": "A description of the query."
              },
              "imgType": {
                "type": "string",
                "description": "Restricts results to images of a specified type. Supported values are: * `clipart` (Clip art) * `face` (Face) * `lineart` (Line drawing) * `photo` (Photo) * `animated` (Animated) * `stock` (Stock)"
              },
              "searchType": {
                "description": "Allowed values are `web` or `image`. If unspecified, results are limited to webpages.",
                "type": "string"
              },
              "inputEncoding": {
                "description": "The character encoding supported for search requests.",
                "type": "string"
              },
              "sort": {
                "description": "Specifies that results should be sorted according to the specified expression. For example, sort by date.",
                "type": "string"
              },
              "hq": {
                "description": "Appends the specified query terms to the query, as if they were combined with a logical `AND` operator.",
                "type": "string"
              },
              "hl": {
                "type": "string",
                "description": "Specifies the interface language (host language) of your user interface. Explicitly setting this parameter improves the performance and the quality of your search results. See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages."
              },
              "siteSearchFilter": {
                "type": "string",
                "description": "Specifies whether to include or exclude results from the site named in the `sitesearch` parameter. Supported values are: * `i`: include content from site * `e`: exclude content from site"
              },
              "imgDominantColor": {
                "description": "Restricts results to images with a specific dominant color. Supported values are: * `red` * `orange` * `yellow` * `green` * `teal` * `blue` * `purple` * `pink` * `white` * `gray` * `black` * `brown`",
                "type": "string"
              },
              "dateRestrict": {
                "type": "string",
                "description": "Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years."
              },
              "googleHost": {
                "description": "Specifies the Google domain (for example, google.com, google.de, or google.fr) to which the search should be limited.",
                "type": "string"
              },
              "safe": {
                "description": "Specifies the [SafeSearch level](https://developers.google.com/custom-search/docs/json_api_reference#safeSearchLevels) used for filtering out adult results. This is a custom property not defined in the OpenSearch spec. Valid parameter values are: * `\"off\"`: Disable SafeSearch * `\"active\"`: Enable SafeSearch",
                "type": "string"
              },
              "rights": {
                "description": "Filters based on licensing. Supported values include: * `cc_publicdomain` * `cc_attribute` * `cc_sharealike` * `cc_noncommercial` * `cc_nonderived`",
                "type": "string"
              },
              "searchTerms": {
                "description": "The search terms entered by the user.",
                "type": "string"
              },
              "relatedSite": {
                "description": "Specifies that all search results should be pages that are related to the specified URL. The parameter value should be a URL.",
                "type": "string"
              },
              "highRange": {
                "type": "string",
                "description": "Specifies the ending value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query."
              },
              "linkSite": {
                "type": "string",
                "description": "Specifies that all results should contain a link to a specific URL."
              },
              "language": {
                "description": "The language of the search results.",
                "type": "string"
              },
              "totalResults": {
                "type": "string",
                "format": "int64",
                "description": "Estimated number of total search results. May not be accurate."
              },
              "filter": {
                "description": "Activates or deactivates the automatic filtering of Google search results. See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Valid values for this parameter are: * `0`: Disabled * `1`: Enabled (default) **Note**: By default, Google applies filtering to all search results to improve the quality of those results.",
                "type": "string"
              },
              "lowRange": {
                "description": "Specifies the starting value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
                "type": "string"
              },
              "gl": {
                "description": "Boosts search results whose country of origin matches the parameter value. See [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) for a list of valid values. Specifying a `gl` parameter value in WebSearch requests should improve the relevance of results. This is particularly true for international customers and, even more specifically, for customers in English-speaking countries other than the United States.",
                "type": "string"
              },
              "orTerms": {
                "description": "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms. You can also use the [Boolean OR](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) query term for this type of query.",
                "type": "string"
              },
              "cr": {
                "description": "Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) in the `cr` parameter's value. Google WebSearch determines the country of a document by analyzing the following: * The top-level domain (TLD) of the document's URL. * The geographic location of the web server's IP address. See [Country (cr) Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) for a list of valid values for this parameter.",
                "type": "string"
              },
              "outputEncoding": {
                "description": "The character encoding supported for search results.",
                "type": "string"
              },
              "startPage": {
                "format": "int32",
                "type": "integer",
                "description": "The page number of this set of results, where the page length is set by the `count` property."
              },
              "exactTerms": {
                "description": "Identifies a phrase that all documents in the search results must contain.",
                "type": "string"
              },
              "fileType": {
                "description": "Restricts results to files of a specified extension. Filetypes supported by Google include: * Adobe Portable Document Format (`pdf`) * Adobe PostScript (`ps`) * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`) * Lotus WordPro (`lwp`) * Macwrite (`mw`) * Microsoft Excel (`xls`) * Microsoft PowerPoint (`ppt`) * Microsoft Word (`doc`) * Microsoft Works (`wks`, `wps`, `wdb`) * Microsoft Write (`wri`) * Rich Text Format (`rtf`) * Shockwave Flash (`swf`) * Text (`ans`, `txt`). Additional filetypes may be added in the future. An up-to-date list can always be found in Google's [file type FAQ](https://support.google.com/webmasters/answer/35287).",
                "type": "string"
              },
              "count": {
                "type": "integer",
                "description": "Number of search results returned in this set.",
                "format": "int32"
              },
              "imgSize": {
                "description": "Restricts results to images of a specified size. Supported values are: * `icon` (small) * `small | medium | large | xlarge` (medium) * `xxlarge` (large) * `huge` (extra-large)",
                "type": "string"
              },
              "excludeTerms": {
                "description": "Identifies a word or phrase that should not appear in any documents in the search results.",
                "type": "string"
              },
              "cx": {
                "description": "The identifier of an engine created using the Programmable Search Engine [Control Panel](https://programmablesearchengine.google.com/). This is a custom property not defined in the OpenSearch spec. This parameter is **required**.",
                "type": "string"
              },
              "startIndex": {
                "format": "int32",
                "description": "The index of the current set of search results into the total set of results, where the index of the first result is 1.",
                "type": "integer"
              },
              "siteSearch": {
                "type": "string",
                "description": "Restricts results to URLs from a specified site."
              }
            },
            "description": "Custom search request metadata."
          }
        },
        "previousPage": {
          "items": {
            "description": "Custom search request metadata.",
            "properties": {
              "searchTerms": {
                "type": "string",
                "description": "The search terms entered by the user."
              },
              "relatedSite": {
                "description": "Specifies that all search results should be pages that are related to the specified URL. The parameter value should be a URL.",
                "type": "string"
              },
              "title": {
                "description": "A description of the query.",
                "type": "string"
              },
              "highRange": {
                "description": "Specifies the ending value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
                "type": "string"
              },
              "imgType": {
                "description": "Restricts results to images of a specified type. Supported values are: * `clipart` (Clip art) * `face` (Face) * `lineart` (Line drawing) * `photo` (Photo) * `animated` (Animated) * `stock` (Stock)",
                "type": "string"
              },
              "dateRestrict": {
                "description": "Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years.",
                "type": "string"
              },
              "outputEncoding": {
                "description": "The character encoding supported for search results.",
                "type": "string"
              },
              "hl": {
                "type": "string",
                "description": "Specifies the interface language (host language) of your user interface. Explicitly setting this parameter improves the performance and the quality of your search results. See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages."
              },
              "siteSearch": {
                "description": "Restricts results to URLs from a specified site.",
                "type": "string"
              },
              "hq": {
                "type": "string",
                "description": "Appends the specified query terms to the query, as if they were combined with a logical `AND` operator."
              },
              "imgColorType": {
                "description": "Restricts results to images of a specified color type. Supported values are: * `mono` (black and white) * `gray` (grayscale) * `color` (color)",
                "type": "string"
              },
              "startIndex": {
                "description": "The index of the current set of search results into the total set of results, where the index of the first result is 1.",
                "type": "integer",
                "format": "int32"
              },
              "rights": {
                "type": "string",
                "description": "Filters based on licensing. Supported values include: * `cc_publicdomain` * `cc_attribute` * `cc_sharealike` * `cc_noncommercial` * `cc_nonderived`"
              },
              "exactTerms": {
                "description": "Identifies a phrase that all documents in the search results must contain.",
                "type": "string"
              },
              "startPage": {
                "format": "int32",
                "type": "integer",
                "description": "The page number of this set of results, where the page length is set by the `count` property."
              },
              "safe": {
                "description": "Specifies the [SafeSearch level](https://developers.google.com/custom-search/docs/json_api_reference#safeSearchLevels) used for filtering out adult results. This is a custom property not defined in the OpenSearch spec. Valid parameter values are: * `\"off\"`: Disable SafeSearch * `\"active\"`: Enable SafeSearch",
                "type": "string"
              },
              "language": {
                "description": "The language of the search results.",
                "type": "string"
              },
              "filter": {
                "description": "Activates or deactivates the automatic filtering of Google search results. See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Valid values for this parameter are: * `0`: Disabled * `1`: Enabled (default) **Note**: By default, Google applies filtering to all search results to improve the quality of those results.",
                "type": "string"
              },
              "inputEncoding": {
                "type": "string",
                "description": "The character encoding supported for search requests."
              },
              "disableCnTwTranslation": {
                "type": "string",
                "description": "Enables or disables the [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch) feature. Supported values are: * `0`: enabled (default) * `1`: disabled"
              },
              "lowRange": {
                "type": "string",
                "description": "Specifies the starting value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query."
              },
              "searchType": {
                "type": "string",
                "description": "Allowed values are `web` or `image`. If unspecified, results are limited to webpages."
              },
              "excludeTerms": {
                "type": "string",
                "description": "Identifies a word or phrase that should not appear in any documents in the search results."
              },
              "sort": {
                "type": "string",
                "description": "Specifies that results should be sorted according to the specified expression. For example, sort by date."
              },
              "linkSite": {
                "description": "Specifies that all results should contain a link to a specific URL.",
                "type": "string"
              },
              "googleHost": {
                "type": "string",
                "description": "Specifies the Google domain (for example, google.com, google.de, or google.fr) to which the search should be limited."
              },
              "imgSize": {
                "description": "Restricts results to images of a specified size. Supported values are: * `icon` (small) * `small | medium | large | xlarge` (medium) * `xxlarge` (large) * `huge` (extra-large)",
                "type": "string"
              },
              "count": {
                "format": "int32",
                "description": "Number of search results returned in this set.",
                "type": "integer"
              },
              "cr": {
                "description": "Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) in the `cr` parameter's value. Google WebSearch determines the country of a document by analyzing the following: * The top-level domain (TLD) of the document's URL. * The geographic location of the web server's IP address. See [Country (cr) Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) for a list of valid values for this parameter.",
                "type": "string"
              },
              "imgDominantColor": {
                "description": "Restricts results to images with a specific dominant color. Supported values are: * `red` * `orange` * `yellow` * `green` * `teal` * `blue` * `purple` * `pink` * `white` * `gray` * `black` * `brown`",
                "type": "string"
              },
              "gl": {
                "type": "string",
                "description": "Boosts search results whose country of origin matches the parameter value. See [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) for a list of valid values. Specifying a `gl` parameter value in WebSearch requests should improve the relevance of results. This is particularly true for international customers and, even more specifically, for customers in English-speaking countries other than the United States."
              },
              "siteSearchFilter": {
                "description": "Specifies whether to include or exclude results from the site named in the `sitesearch` parameter. Supported values are: * `i`: include content from site * `e`: exclude content from site",
                "type": "string"
              },
              "orTerms": {
                "type": "string",
                "description": "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms. You can also use the [Boolean OR](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) query term for this type of query."
              },
              "totalResults": {
                "type": "string",
                "description": "Estimated number of total search results. May not be accurate.",
                "format": "int64"
              },
              "cx": {
                "description": "The identifier of an engine created using the Programmable Search Engine [Control Panel](https://programmablesearchengine.google.com/). This is a custom property not defined in the OpenSearch spec. This parameter is **required**.",
                "type": "string"
              },
              "fileType": {
                "description": "Restricts results to files of a specified extension. Filetypes supported by Google include: * Adobe Portable Document Format (`pdf`) * Adobe PostScript (`ps`) * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`) * Lotus WordPro (`lwp`) * Macwrite (`mw`) * Microsoft Excel (`xls`) * Microsoft PowerPoint (`ppt`) * Microsoft Word (`doc`) * Microsoft Works (`wks`, `wps`, `wdb`) * Microsoft Write (`wri`) * Rich Text Format (`rtf`) * Shockwave Flash (`swf`) * Text (`ans`, `txt`). Additional filetypes may be added in the future. An up-to-date list can always be found in Google's [file type FAQ](https://support.google.com/webmasters/answer/35287).",
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array",
          "description": "Metadata representing the previous page of results, if applicable."
        }
      }
    },
    "url": {
      "properties": {
        "template": {
          "type": "string",
          "description": "The actual [OpenSearch template](http://www.opensearch.org/specifications/opensearch/1.1#opensearch_url_template_syntax) for this API."
        },
        "type": {
          "description": "The MIME type of the OpenSearch URL template for the Custom Search JSON API.",
          "type": "string"
        }
      },
      "description": "OpenSearch template and URL.",
      "type": "object"
    },
    "searchInformation": {
      "type": "object",
      "properties": {
        "totalResults": {
          "type": "string",
          "description": "The total number of search results returned by the query."
        },
        "formattedTotalResults": {
          "type": "string",
          "description": "The total number of search results, formatted according to locale style."
        },
        "searchTime": {
          "description": "The time taken for the server to return search results.",
          "type": "number",
          "format": "double"
        },
        "formattedSearchTime": {
          "type": "string",
          "description": "The time taken for the server to return search results, formatted according to locale style."
        }
      },
      "description": "Metadata about a search operation."
    },
    "context": {
      "description": "Metadata and refinements associated with the given search engine, including: * The name of the search engine that was used for the query. * A set of [facet objects](https://developers.google.com/custom-search/docs/refinements#create) (refinements) you can use for refining a search.",
      "additionalProperties": {
        "description": "Properties of the object."
      },
      "type": "object"
    },
    "promotions": {
      "description": "The set of [promotions](https://developers.google.com/custom-search/docs/promotions). Present only if the custom search engine's configuration files define any promotions for the given query.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Promotion"
      }
    }
  },
  "type": "object",
  "$defs": {
    "Promotion": {
      "properties": {
        "link": {
          "type": "string",
          "description": "The URL of the promotion."
        },
        "htmlTitle": {
          "type": "string",
          "description": "The title of the promotion, in HTML."
        },
        "image": {
          "description": "Image belonging to a promotion.",
          "properties": {
            "source": {
              "type": "string",
              "description": "URL of the image for this promotion link."
            },
            "width": {
              "description": "Image width in pixels.",
              "format": "int32",
              "type": "integer"
            },
            "height": {
              "description": "Image height in pixels.",
              "format": "int32",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "title": {
          "description": "The title of the promotion.",
          "type": "string"
        },
        "displayLink": {
          "type": "string",
          "description": "An abridged version of this search's result URL, e.g. www.example.com."
        },
        "bodyLines": {
          "type": "array",
          "items": {
            "description": "Block object belonging to a promotion.",
            "type": "object",
            "properties": {
              "title": {
                "description": "The block object's text, if it has text.",
                "type": "string"
              },
              "htmlTitle": {
                "type": "string",
                "description": "The block object's text in HTML, if it has text."
              },
              "url": {
                "type": "string",
                "description": "The URL of the block object's link, if it has one."
              },
              "link": {
                "description": "The anchor text of the block object's link, if it has a link.",
                "type": "string"
              }
            }
          },
          "description": "An array of block objects for this promotion."
        }
      },
      "description": "Promotion result.",
      "type": "object"
    },
    "Result": {
      "properties": {
        "kind": {
          "type": "string",
          "description": "A unique identifier for the type of current object. For this API, it is `customsearch#result.`"
        },
        "cacheId": {
          "description": "Indicates the ID of Google's cached version of the search result.",
          "type": "string"
        },
        "htmlFormattedUrl": {
          "description": "The HTML-formatted URL displayed after the snippet for each search result.",
          "type": "string"
        },
        "image": {
          "properties": {
            "height": {
              "description": "The height of the image, in pixels.",
              "format": "int32",
              "type": "integer"
            },
            "thumbnailLink": {
              "description": "A URL to the thumbnail image.",
              "type": "string"
            },
            "thumbnailWidth": {
              "description": "The width of the thumbnail image, in pixels.",
              "format": "int32",
              "type": "integer"
            },
            "width": {
              "type": "integer",
              "description": "The width of the image, in pixels.",
              "format": "int32"
            },
            "contextLink": {
              "type": "string",
              "description": "A URL pointing to the webpage hosting the image."
            },
            "thumbnailHeight": {
              "description": "The height of the thumbnail image, in pixels.",
              "format": "int32",
              "type": "integer"
            },
            "byteSize": {
              "type": "integer",
              "format": "int32",
              "description": "The size of the image, in bytes."
            }
          },
          "description": "Image belonging to a custom search result.",
          "type": "object"
        },
        "fileFormat": {
          "description": "The file format of the search result.",
          "type": "string"
        },
        "mime": {
          "type": "string",
          "description": "The MIME type of the search result."
        },
        "htmlSnippet": {
          "description": "The snippet of the search result, in HTML.",
          "type": "string"
        },
        "snippet": {
          "description": "The snippet of the search result, in plain text.",
          "type": "string"
        },
        "pagemap": {
          "type": "object",
          "description": "Contains [PageMap](https://developers.google.com/custom-search/docs/structured_data#pagemaps) information for this search result.",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        },
        "displayLink": {
          "description": "An abridged version of this search result’s URL, e.g. www.example.com.",
          "type": "string"
        },
        "link": {
          "description": "The full URL to which the search result is pointing, e.g. http://www.example.com/foo/bar.",
          "type": "string"
        },
        "htmlTitle": {
          "type": "string",
          "description": "The title of the search result, in HTML."
        },
        "labels": {
          "description": "Encapsulates all information about refinement labels.",
          "type": "array",
          "items": {
            "properties": {
              "displayName": {
                "type": "string",
                "description": "The display name of a refinement label. This is the name you should display in your user interface."
              },
              "name": {
                "description": "The name of a refinement label, which you can use to refine searches. Don't display this in your user interface; instead, use displayName.",
                "type": "string"
              },
              "label_with_op": {
                "description": "Refinement label and the associated refinement operation.",
                "type": "string"
              }
            },
            "type": "object",
            "description": "Refinement label associated with a custom search result."
          }
        },
        "formattedUrl": {
          "description": "The URL displayed after the snippet for each search result.",
          "type": "string"
        },
        "title": {
          "description": "The title of the search result, in plain text.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "A custom search result."
    }
  }
}