docs: docs update (#911)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-api-python-client/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
Fixes #<issue_number_goes_here> 🦕
diff --git a/docs/dyn/customsearch_v1.cse.siterestrict.html b/docs/dyn/customsearch_v1.cse.siterestrict.html
index 84b08e6..87bd3fa 100644
--- a/docs/dyn/customsearch_v1.cse.siterestrict.html
+++ b/docs/dyn/customsearch_v1.cse.siterestrict.html
@@ -72,261 +72,1068 @@
</style>
-<h1><a href="customsearch_v1.html">CustomSearch API</a> . <a href="customsearch_v1.cse.html">cse</a> . <a href="customsearch_v1.cse.siterestrict.html">siterestrict</a></h1>
+<h1><a href="customsearch_v1.html">Custom Search API</a> . <a href="customsearch_v1.cse.html">cse</a> . <a href="customsearch_v1.cse.siterestrict.html">siterestrict</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
- <code><a href="#list">list(q, dateRestrict=None, hl=None, orTerms=None, highRange=None, num=None, cr=None, imgType=None, relatedSite=None, filter=None, gl=None, searchType=None, fileType=None, start=None, imgDominantColor=None, lr=None, siteSearch=None, sort=None, hq=None, c2coff=None, googlehost=None, safe=None, exactTerms=None, lowRange=None, imgSize=None, imgColorType=None, rights=None, excludeTerms=None, linkSite=None, cx=None, siteSearchFilter=None)</a></code></p>
-<p class="firstline">Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. Uses a small set of url patterns.</p>
+ <code><a href="#list">list(siteSearch=None, lr=None, gl=None, rights=None, imgDominantColor=None, lowRange=None, searchType=None, imgType=None, c2coff=None, excludeTerms=None, cx=None, siteSearchFilter=None, imgColorType=None, highRange=None, linkSite=None, fileType=None, hq=None, orTerms=None, relatedSite=None, hl=None, num=None, dateRestrict=None, safe=None, imgSize=None, exactTerms=None, cr=None, filter=None, sort=None, q=None, start=None, googlehost=None, x__xgafv=None)</a></code></p>
+<p class="firstline">Returns metadata about the search performed, metadata about the custom</p>
<h3>Method Details</h3>
<div class="method">
- <code class="details" id="list">list(q, dateRestrict=None, hl=None, orTerms=None, highRange=None, num=None, cr=None, imgType=None, relatedSite=None, filter=None, gl=None, searchType=None, fileType=None, start=None, imgDominantColor=None, lr=None, siteSearch=None, sort=None, hq=None, c2coff=None, googlehost=None, safe=None, exactTerms=None, lowRange=None, imgSize=None, imgColorType=None, rights=None, excludeTerms=None, linkSite=None, cx=None, siteSearchFilter=None)</code>
- <pre>Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. Uses a small set of url patterns.
+ <code class="details" id="list">list(siteSearch=None, lr=None, gl=None, rights=None, imgDominantColor=None, lowRange=None, searchType=None, imgType=None, c2coff=None, excludeTerms=None, cx=None, siteSearchFilter=None, imgColorType=None, highRange=None, linkSite=None, fileType=None, hq=None, orTerms=None, relatedSite=None, hl=None, num=None, dateRestrict=None, safe=None, imgSize=None, exactTerms=None, cr=None, filter=None, sort=None, q=None, start=None, googlehost=None, x__xgafv=None)</code>
+ <pre>Returns metadata about the search performed, metadata about the custom
+search engine used for the search, and the search results. Uses a small set
+of url patterns.
Args:
- q: string, Query (required)
- dateRestrict: string, Specifies all search results are from a time period
- hl: string, Sets the user interface language.
- orTerms: string, 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
- highRange: string, Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
- num: integer, Number of search results to return
- cr: string, Country restrict(s).
- imgType: string, Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
- Allowed values
- clipart - clipart
- face - face
- lineart - lineart
- news - news
- photo - photo
- relatedSite: string, Specifies that all search results should be pages that are related to the specified URL
- filter: string, Controls turning on or off the duplicate content filter.
- Allowed values
- 0 - Turns off duplicate content filter.
- 1 - Turns on duplicate content filter.
+ siteSearch: string, Specifies a given site which should always be included or excluded from
+results (see `siteSearchFilter` parameter, below).
+ lr: string, Restricts the search to documents written in a particular language (e.g.,
+`lr=lang_ja`).
+
+Acceptable values are:
+
+* `"lang_ar"`: Arabic
+
+* `"lang_bg"`: Bulgarian
+
+* `"lang_ca"`: Catalan
+
+* `"lang_cs"`: Czech
+
+* `"lang_da"`: Danish
+
+* `"lang_de"`: German
+
+* `"lang_el"`: Greek
+
+* `"lang_en"`: English
+
+* `"lang_es"`: Spanish
+
+* `"lang_et"`: Estonian
+
+* `"lang_fi"`: Finnish
+
+* `"lang_fr"`: French
+
+* `"lang_hr"`: Croatian
+
+* `"lang_hu"`: Hungarian
+
+* `"lang_id"`: Indonesian
+
+* `"lang_is"`: Icelandic
+
+* `"lang_it"`: Italian
+
+* `"lang_iw"`: Hebrew
+
+* `"lang_ja"`: Japanese
+
+* `"lang_ko"`: Korean
+
+* `"lang_lt"`: Lithuanian
+
+* `"lang_lv"`: Latvian
+
+* `"lang_nl"`: Dutch
+
+* `"lang_no"`: Norwegian
+
+* `"lang_pl"`: Polish
+
+* `"lang_pt"`: Portuguese
+
+* `"lang_ro"`: Romanian
+
+* `"lang_ru"`: Russian
+
+* `"lang_sk"`: Slovak
+
+* `"lang_sl"`: Slovenian
+
+* `"lang_sr"`: Serbian
+
+* `"lang_sv"`: Swedish
+
+* `"lang_tr"`: Turkish
+
+* `"lang_zh-CN"`: Chinese (Simplified)
+
+* `"lang_zh-TW"`: Chinese (Traditional)
gl: string, Geolocation of end user.
- searchType: string, Specifies the search type: image.
+
+* The `gl` parameter value is a two-letter country code. The `gl` parameter
+boosts search results whose country of origin matches the parameter value.
+See the [Country
+Codes](https://developers.google.com/custom-search/docs/xml_results_appendices#countryCodes)
+page for a list of valid values.
+
+* Specifying a `gl` parameter value should lead to more relevant results.
+This is particularly true for international customers and, even more
+specifically, for customers in English- speaking countries other than the
+United States.
+ rights: string, Filters based on licensing. Supported values include: `cc_publicdomain`,
+`cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
+combinations of these. See [typical
+combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).
+ imgDominantColor: string, Returns images of a specific dominant color. Acceptable values are:
+
+* `"black"`
+
+* `"blue"`
+
+* `"brown"`
+
+* `"gray"`
+
+* `"green"`
+
+* `"orange"`
+
+* `"pink"`
+
+* `"purple"`
+
+* `"red"`
+
+* `"teal"`
+
+* `"white"`
+
+* `"yellow"`
+ lowRange: string, Specifies the starting value for a search range. Use `lowRange` and
+`highRange` to append an inclusive search range of `lowRange...highRange`
+to the query.
+ searchType: string, Specifies the search type: `image`. If unspecified, results are limited to
+webpages.
+
+Acceptable values are:
+
+* `"image"`: custom image search.
+ imgType: string, Returns images of a type. Acceptable values are:
+
+* `"clipart"`
+
+* `"face"`
+
+* `"lineart"`
+
+* `"stock"`
+
+* `"photo"`
+
+* `"animated"`
+ c2coff: string, Enables or disables [Simplified and Traditional Chinese
+Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch).
+
+The default value for this parameter is 0 (zero), meaning that the feature
+is enabled. Supported values are:
+
+* `1`: Disabled
+
+* `0`: Enabled (default)
+ excludeTerms: string, Identifies a word or phrase that should not appear in any documents in the
+search results.
+ cx: string, The custom search engine ID to use for this request.
+ siteSearchFilter: string, Controls whether to include or exclude results from the site named in the
+`siteSearch` parameter.
+
+Acceptable values are:
+
+* `"e"`: exclude
+
+* `"i"`: include
+ imgColorType: string, Returns black and white, grayscale, transparent, or color images.
+Acceptable values are:
+
+* `"color"`
+
+* `"gray"`
+
+* `"mono"`: black and white
+
+* `"trans"`: transparent background
+ highRange: string, Specifies the ending value for a search range.
+
+* Use `lowRange` and `highRange` to append an inclusive search range of
+`lowRange...highRange` to the query.
+ linkSite: string, Specifies that all search results should contain a link to a particular
+URL.
+ fileType: string, Restricts results to files of a specified extension. A list of file types
+indexable by Google can be found in Search Console [Help
+Center](https://support.google.com/webmasters/answer/35287).
+ hq: string, Appends the specified query terms to the query, as if they were combined
+with a logical AND operator.
+ orTerms: string, 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.
+ relatedSite: string, Specifies that all search results should be pages that are related to the
+specified URL.
+ hl: string, Sets the user interface language.
+
+* 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/xml_results#wsInterfaceLanguages)
+section of [Internationalizing Queries and Results
+Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
+for more information, and (Supported Interface
+Languages)[https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages]
+for a list of supported languages.
+ num: integer, Number of search results to return.
+
+* Valid values are integers between 1 and 10, inclusive.
+ dateRestrict: string, 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.
+ safe: string, Search safety level. Acceptable values are:
+
+* `"active"`: Enables SafeSearch filtering.
+
+* `"off"`: Disables SafeSearch filtering. (default)
+ imgSize: string, Returns images of a specified size. Acceptable values are:
+
+* `"huge"`
+
+* `"icon"`
+
+* `"large"`
+
+* `"medium"`
+
+* `"small"`
+
+* `"xlarge"`
+
+* `"xxlarge"`
+ exactTerms: string, Identifies a phrase that all documents in the search results must contain.
+ cr: string, Restricts search results to documents originating in a particular country.
+You may use [Boolean
+operators](https://developers.google.com/custom-search/docs/xml_results_appendices#booleanOperators)
+in the cr parameter's value.
+
+Google Search determines the country of a document by analyzing:
+
+* the top-level domain (TLD) of the document's URL
+
+* the geographic location of the Web server's IP address
+
+See the [Country Parameter
+Values](https://developers.google.com/custom-search/docs/xml_results_appendices#countryCollections)
+page for a list of valid values for this parameter.
+ filter: string, Controls turning on or off the duplicate content filter.
+
+* See [Automatic
+Filtering](https://developers.google.com/custom-search/docs/xml_results#automaticFiltering)
+for more information about Google's search results filters. Note that host
+crowding filtering applies only to multi-site searches.
+
+* By default, Google applies filtering to all search results to improve the
+quality of those results.
+
+Acceptable values are:
+
+* `0`: Turns off duplicate content filter.
+
+* `1`: Turns on duplicate content filter.
+ sort: string, The sort expression to apply to the results.
+ q: string, Query
+ start: integer, The index of the first result to return. The default number of results per
+page is 10, so `&start=11` would start at the top of the second page of
+results. **Note**: The JSON API will never return more than 100 results,
+even if more than 100 documents match the query, so setting the sum of
+`start + num` to a number greater than 100 will produce an error. Also note
+that the maximum value for `num` is 10.
+ googlehost: string, **Deprecated**. Use the `gl` parameter for a similar effect.
+
+The local Google domain (for example, google.com, google.de, or
+google.fr) to use to perform the search.
+ x__xgafv: string, V1 error format.
Allowed values
- image - custom image search
- fileType: string, Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
- start: integer, The index of the first result to return
- imgDominantColor: string, Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.
- Allowed values
- black - black
- blue - blue
- brown - brown
- gray - gray
- green - green
- orange - orange
- pink - pink
- purple - purple
- red - red
- teal - teal
- white - white
- yellow - yellow
- lr: string, The language restriction for the search results
- Allowed values
- lang_ar - Arabic
- lang_bg - Bulgarian
- lang_ca - Catalan
- lang_cs - Czech
- lang_da - Danish
- lang_de - German
- lang_el - Greek
- lang_en - English
- lang_es - Spanish
- lang_et - Estonian
- lang_fi - Finnish
- lang_fr - French
- lang_hr - Croatian
- lang_hu - Hungarian
- lang_id - Indonesian
- lang_is - Icelandic
- lang_it - Italian
- lang_iw - Hebrew
- lang_ja - Japanese
- lang_ko - Korean
- lang_lt - Lithuanian
- lang_lv - Latvian
- lang_nl - Dutch
- lang_no - Norwegian
- lang_pl - Polish
- lang_pt - Portuguese
- lang_ro - Romanian
- lang_ru - Russian
- lang_sk - Slovak
- lang_sl - Slovenian
- lang_sr - Serbian
- lang_sv - Swedish
- lang_tr - Turkish
- lang_zh-CN - Chinese (Simplified)
- lang_zh-TW - Chinese (Traditional)
- siteSearch: string, Specifies all search results should be pages from a given site
- sort: string, The sort expression to apply to the results
- hq: string, Appends the extra query terms to the query.
- c2coff: string, Turns off the translation between zh-CN and zh-TW.
- googlehost: string, The local Google domain to use to perform the search.
- safe: string, Search safety level
- Allowed values
- high - Enables highest level of safe search filtering.
- medium - Enables moderate safe search filtering.
- off - Disables safe search filtering.
- exactTerms: string, Identifies a phrase that all documents in the search results must contain
- lowRange: string, Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
- imgSize: string, Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
- Allowed values
- huge - huge
- icon - icon
- large - large
- medium - medium
- small - small
- xlarge - xlarge
- xxlarge - xxlarge
- imgColorType: string, Returns black and white, grayscale, or color images: mono, gray, and color.
- Allowed values
- color - color
- gray - gray
- mono - mono
- rights: string, Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
- excludeTerms: string, Identifies a word or phrase that should not appear in any documents in the search results
- linkSite: string, Specifies that all search results should contain a link to a particular URL
- cx: string, The custom search engine ID to scope this search query
- siteSearchFilter: string, Controls whether to include or exclude results from the site named in the as_sitesearch parameter
- Allowed values
- e - exclude
- i - include
+ 1 - v1 error format
+ 2 - v2 error format
Returns:
An object of the form:
- {
- "promotions": [
- {
- "title": "A String",
- "displayLink": "A String",
- "htmlTitle": "A String",
- "link": "A String",
- "bodyLines": [
- {
- "url": "A String",
- "htmlTitle": "A String",
- "link": "A String",
- "title": "A String",
- },
- ],
- "image": {
- "source": "A String",
- "width": 42,
- "height": 42,
+ { # Response to a custom search request.
+ "queries": { # Query metadata for the previous, current, and next pages of results.
+ "nextPage": [ # Metadata representing the next page of results, if applicable.
+ { # Custom search request metadata.
+ "searchType": "A String", # Allowed values are `web` or `image`. If unspecified, results are limited
+ # to webpages.
+ "gl": "A String", # Boosts search results whose country of origin matches the parameter
+ # value. See [Country
+ # Codes](https://developers.google.com/custom-search/docs/xml_results#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.
+ "startIndex": 42, # The index of the current set of search results into the total set of
+ # results, where the index of the first result is 1.
+ "startPage": 42, # The page number of this set of results, where the page length is set by
+ # the `count` property.
+ "googleHost": "A String", # Specifies the Google domain (for example, google.com, google.de, or
+ # google.fr) to which the search should be limited.
+ "title": "A String", # A description of the query.
+ "count": 42, # Number of search results returned in this set.
+ "highRange": "A String", # 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.
+ "siteSearchFilter": "A String", # 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
+ "linkSite": "A String", # Specifies that all results should contain a link to a specific URL.
+ "imgSize": "A String", # Restricts results to images of a specified size. Supported values are:
+ #
+ # * `icon` (small)
+ #
+ # * `small | medium | large | xlarge` (medium)
+ #
+ # * `xxlarge` (large)
+ #
+ # * `huge` (extra-large)
+ "orTerms": "A String", # 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/xml_results#BooleanOrqt)
+ # query term for this type of query.
+ "totalResults": "A String", # Estimated number of total search results. May not be accurate.
+ "hq": "A String", # Appends the specified query terms to the query, as if they were combined
+ # with a logical `AND` operator.
+ "outputEncoding": "A String", # The character encoding supported for search results.
+ "imgType": "A String", # 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)
+ "relatedSite": "A String", # Specifies that all search results should be pages that are related to the
+ # specified URL. The parameter value should be a URL.
+ "imgDominantColor": "A String", # Restricts results to images with a specific dominant color. Supported
+ # values are:
+ #
+ # * `red`
+ #
+ # * `orange`
+ #
+ # * `yellow`
+ #
+ # * `green`
+ #
+ # * `teal`
+ #
+ # * `blue`
+ #
+ # * `purple`
+ #
+ # * `pink`
+ #
+ # * `white`
+ #
+ # * `gray`
+ #
+ # * `black`
+ #
+ # * `brown`
+ "excludeTerms": "A String", # Identifies a word or phrase that should not appear in any documents in
+ # the search results.
+ "filter": "A String", # Activates or deactivates the automatic filtering of Google search
+ # results. See [Automatic
+ # Filtering](https://developers.google.com/custom-search/docs/xml_results#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.
+ "searchTerms": "A String", # The search terms entered by the user.
+ "imgColorType": "A String", # Restricts results to images of a specified color type. Supported values
+ # are:
+ #
+ # * `mono` (black and white)
+ #
+ # * `gray` (grayscale)
+ #
+ # * `color` (color)
+ "exactTerms": "A String", # Identifies a phrase that all documents in the search results must
+ # contain.
+ "fileType": "A String", # 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).
+ "disableCnTwTranslation": "A String", # Enables or disables the [Simplified and Traditional Chinese
+ # Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch)
+ # feature.
+ #
+ # Supported values are:
+ #
+ # * `0`: enabled (default)
+ #
+ # * `1`: disabled
+ "rights": "A String", # Filters based on licensing. Supported values include:
+ #
+ # * `cc_publicdomain`
+ #
+ # * `cc_attribute`
+ #
+ # * `cc_sharealike`
+ #
+ # * `cc_noncommercial`
+ #
+ # * `cc_nonderived`
+ "siteSearch": "A String", # Restricts results to URLs from a specified site.
+ "cr": "A String", # Restricts search results to documents originating in a particular
+ # country. You may use [Boolean
+ # operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators)
+ # 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/xml_results#countryCollections)
+ # for a list of valid values for this parameter.
+ "safe": "A String", # Specifies the [SafeSearch
+ # level](https://developers.google.com/custom-search/docs/xml_results#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
+ "lowRange": "A String", # 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.
+ "cx": "A String", # The identifier of a custom search engine created using the Custom Search
+ # [Control Panel](https://cse.google.com/). This is a custom property not
+ # defined in the OpenSearch spec. This parameter is **required**.
+ "sort": "A String", # Specifies that results should be sorted according to the specified
+ # expression. For example, sort by date.
+ "dateRestrict": "A String", # 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.
+ "inputEncoding": "A String", # The character encoding supported for search requests.
+ "language": "A String", # The language of the search results.
+ "hl": "A String", # 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/xml_results#wsInterfaceLanguages)
+ # section of [Internationalizing Queries and Results
+ # Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
+ # for more information, and [Supported Interface
+ # Languages](https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
+ # for a list of supported languages.
},
- },
- ],
- "kind": "customsearch#search",
- "url": {
- "type": "application/json",
- "template": "https://www.googleapis.com/customsearch/v1?q={searchTerms}&num={count?}&start={startIndex?}&lr={language?}&safe={safe?}&cx={cx?}&sort={sort?}&filter={filter?}&gl={gl?}&cr={cr?}&googlehost={googleHost?}&c2coff={disableCnTwTranslation?}&hq={hq?}&hl={hl?}&siteSearch={siteSearch?}&siteSearchFilter={siteSearchFilter?}&exactTerms={exactTerms?}&excludeTerms={excludeTerms?}&linkSite={linkSite?}&orTerms={orTerms?}&relatedSite={relatedSite?}&dateRestrict={dateRestrict?}&lowRange={lowRange?}&highRange={highRange?}&searchType={searchType}&fileType={fileType?}&rights={rights?}&imgSize={imgSize?}&imgType={imgType?}&imgColorType={imgColorType?}&imgDominantColor={imgDominantColor?}&alt=json",
- },
- "items": [
- {
- "snippet": "A String",
- "kind": "customsearch#result",
- "labels": [
- {
- "label_with_op": "A String",
- "displayName": "A String",
- "name": "A String",
- },
- ],
- "title": "A String",
- "displayLink": "A String",
- "cacheId": "A String",
- "formattedUrl": "A String",
- "htmlFormattedUrl": "A String",
- "pagemap": {
- "a_key": [
- {
- "a_key": "",
- },
- ],
- },
- "htmlTitle": "A String",
- "htmlSnippet": "A String",
- "link": "A String",
- "image": {
- "thumbnailWidth": 42,
- "byteSize": 42,
- "height": 42,
- "width": 42,
- "contextLink": "A String",
- "thumbnailLink": "A String",
- "thumbnailHeight": 42,
- },
- "mime": "A String",
- "fileFormat": "A String",
- },
- ],
- "context": {
- "facets": [
- [
- {
- "label_with_op": "A String",
- "anchor": "A String",
- "label": "A String",
- },
- ],
],
- "title": "A String",
- },
- "queries": {
- "a_key": [
- {
- "sort": "A String",
- "hl": "A String",
- "orTerms": "A String",
- "highRange": "A String",
- "cx": "A String",
- "startPage": 42,
- "disableCnTwTranslation": "A String",
- "cr": "A String",
- "imgType": "A String",
- "gl": "A String",
- "relatedSite": "A String",
- "searchType": "A String",
- "title": "A String",
- "googleHost": "A String",
- "fileType": "A String",
- "imgDominantColor": "A String",
- "siteSearch": "A String",
- "dateRestrict": "A String",
- "safe": "A String",
- "outputEncoding": "A String",
- "hq": "A String",
- "searchTerms": "A String",
- "exactTerms": "A String",
- "language": "A String",
- "inputEncoding": "A String",
- "totalResults": "A String",
- "lowRange": "A String",
- "count": 42,
- "imgSize": "A String",
- "imgColorType": "A String",
- "rights": "A String",
- "startIndex": 42,
- "excludeTerms": "A String",
- "filter": "A String",
- "linkSite": "A String",
- "siteSearchFilter": "A String",
+ "request": [ # Metadata representing the current request.
+ { # Custom search request metadata.
+ "searchTerms": "A String", # The search terms entered by the user.
+ "disableCnTwTranslation": "A String", # Enables or disables the [Simplified and Traditional Chinese
+ # Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch)
+ # feature.
+ #
+ # Supported values are:
+ #
+ # * `0`: enabled (default)
+ #
+ # * `1`: disabled
+ "fileType": "A String", # 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).
+ "highRange": "A String", # 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.
+ "siteSearchFilter": "A String", # 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
+ "imgSize": "A String", # Restricts results to images of a specified size. Supported values are:
+ #
+ # * `icon` (small)
+ #
+ # * `small | medium | large | xlarge` (medium)
+ #
+ # * `xxlarge` (large)
+ #
+ # * `huge` (extra-large)
+ "gl": "A String", # Boosts search results whose country of origin matches the parameter
+ # value. See [Country
+ # Codes](https://developers.google.com/custom-search/docs/xml_results#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.
+ "exactTerms": "A String", # Identifies a phrase that all documents in the search results must
+ # contain.
+ "startPage": 42, # The page number of this set of results, where the page length is set by
+ # the `count` property.
+ "safe": "A String", # Specifies the [SafeSearch
+ # level](https://developers.google.com/custom-search/docs/xml_results#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
+ "siteSearch": "A String", # Restricts results to URLs from a specified site.
+ "searchType": "A String", # Allowed values are `web` or `image`. If unspecified, results are limited
+ # to webpages.
+ "cx": "A String", # The identifier of a custom search engine created using the Custom Search
+ # [Control Panel](https://cse.google.com/). This is a custom property not
+ # defined in the OpenSearch spec. This parameter is **required**.
+ "rights": "A String", # Filters based on licensing. Supported values include:
+ #
+ # * `cc_publicdomain`
+ #
+ # * `cc_attribute`
+ #
+ # * `cc_sharealike`
+ #
+ # * `cc_noncommercial`
+ #
+ # * `cc_nonderived`
+ "dateRestrict": "A String", # 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.
+ "inputEncoding": "A String", # The character encoding supported for search requests.
+ "excludeTerms": "A String", # Identifies a word or phrase that should not appear in any documents in
+ # the search results.
+ "hl": "A String", # 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/xml_results#wsInterfaceLanguages)
+ # section of [Internationalizing Queries and Results
+ # Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
+ # for more information, and [Supported Interface
+ # Languages](https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
+ # for a list of supported languages.
+ "title": "A String", # A description of the query.
+ "orTerms": "A String", # 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/xml_results#BooleanOrqt)
+ # query term for this type of query.
+ "lowRange": "A String", # 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.
+ "googleHost": "A String", # Specifies the Google domain (for example, google.com, google.de, or
+ # google.fr) to which the search should be limited.
+ "imgColorType": "A String", # Restricts results to images of a specified color type. Supported values
+ # are:
+ #
+ # * `mono` (black and white)
+ #
+ # * `gray` (grayscale)
+ #
+ # * `color` (color)
+ "filter": "A String", # Activates or deactivates the automatic filtering of Google search
+ # results. See [Automatic
+ # Filtering](https://developers.google.com/custom-search/docs/xml_results#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.
+ "startIndex": 42, # The index of the current set of search results into the total set of
+ # results, where the index of the first result is 1.
+ "sort": "A String", # Specifies that results should be sorted according to the specified
+ # expression. For example, sort by date.
+ "linkSite": "A String", # Specifies that all results should contain a link to a specific URL.
+ "cr": "A String", # Restricts search results to documents originating in a particular
+ # country. You may use [Boolean
+ # operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators)
+ # 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/xml_results#countryCollections)
+ # for a list of valid values for this parameter.
+ "imgDominantColor": "A String", # Restricts results to images with a specific dominant color. Supported
+ # values are:
+ #
+ # * `red`
+ #
+ # * `orange`
+ #
+ # * `yellow`
+ #
+ # * `green`
+ #
+ # * `teal`
+ #
+ # * `blue`
+ #
+ # * `purple`
+ #
+ # * `pink`
+ #
+ # * `white`
+ #
+ # * `gray`
+ #
+ # * `black`
+ #
+ # * `brown`
+ "count": 42, # Number of search results returned in this set.
+ "relatedSite": "A String", # Specifies that all search results should be pages that are related to the
+ # specified URL. The parameter value should be a URL.
+ "hq": "A String", # Appends the specified query terms to the query, as if they were combined
+ # with a logical `AND` operator.
+ "imgType": "A String", # 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)
+ "outputEncoding": "A String", # The character encoding supported for search results.
+ "language": "A String", # The language of the search results.
+ "totalResults": "A String", # Estimated number of total search results. May not be accurate.
+ },
+ ],
+ "previousPage": [ # Metadata representing the previous page of results, if applicable.
+ { # Custom search request metadata.
+ "hl": "A String", # 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/xml_results#wsInterfaceLanguages)
+ # section of [Internationalizing Queries and Results
+ # Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
+ # for more information, and [Supported Interface
+ # Languages](https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
+ # for a list of supported languages.
+ "inputEncoding": "A String", # The character encoding supported for search requests.
+ "disableCnTwTranslation": "A String", # Enables or disables the [Simplified and Traditional Chinese
+ # Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch)
+ # feature.
+ #
+ # Supported values are:
+ #
+ # * `0`: enabled (default)
+ #
+ # * `1`: disabled
+ "imgDominantColor": "A String", # Restricts results to images with a specific dominant color. Supported
+ # values are:
+ #
+ # * `red`
+ #
+ # * `orange`
+ #
+ # * `yellow`
+ #
+ # * `green`
+ #
+ # * `teal`
+ #
+ # * `blue`
+ #
+ # * `purple`
+ #
+ # * `pink`
+ #
+ # * `white`
+ #
+ # * `gray`
+ #
+ # * `black`
+ #
+ # * `brown`
+ "imgSize": "A String", # Restricts results to images of a specified size. Supported values are:
+ #
+ # * `icon` (small)
+ #
+ # * `small | medium | large | xlarge` (medium)
+ #
+ # * `xxlarge` (large)
+ #
+ # * `huge` (extra-large)
+ "googleHost": "A String", # Specifies the Google domain (for example, google.com, google.de, or
+ # google.fr) to which the search should be limited.
+ "searchTerms": "A String", # The search terms entered by the user.
+ "lowRange": "A String", # 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.
+ "linkSite": "A String", # Specifies that all results should contain a link to a specific URL.
+ "startPage": 42, # The page number of this set of results, where the page length is set by
+ # the `count` property.
+ "cx": "A String", # The identifier of a custom search engine created using the Custom Search
+ # [Control Panel](https://cse.google.com/). This is a custom property not
+ # defined in the OpenSearch spec. This parameter is **required**.
+ "startIndex": 42, # The index of the current set of search results into the total set of
+ # results, where the index of the first result is 1.
+ "gl": "A String", # Boosts search results whose country of origin matches the parameter
+ # value. See [Country
+ # Codes](https://developers.google.com/custom-search/docs/xml_results#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.
+ "imgColorType": "A String", # Restricts results to images of a specified color type. Supported values
+ # are:
+ #
+ # * `mono` (black and white)
+ #
+ # * `gray` (grayscale)
+ #
+ # * `color` (color)
+ "relatedSite": "A String", # Specifies that all search results should be pages that are related to the
+ # specified URL. The parameter value should be a URL.
+ "dateRestrict": "A String", # 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": "A String", # The language of the search results.
+ "hq": "A String", # Appends the specified query terms to the query, as if they were combined
+ # with a logical `AND` operator.
+ "title": "A String", # A description of the query.
+ "highRange": "A String", # 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.
+ "fileType": "A String", # 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).
+ "siteSearchFilter": "A String", # 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
+ "rights": "A String", # Filters based on licensing. Supported values include:
+ #
+ # * `cc_publicdomain`
+ #
+ # * `cc_attribute`
+ #
+ # * `cc_sharealike`
+ #
+ # * `cc_noncommercial`
+ #
+ # * `cc_nonderived`
+ "exactTerms": "A String", # Identifies a phrase that all documents in the search results must
+ # contain.
+ "excludeTerms": "A String", # Identifies a word or phrase that should not appear in any documents in
+ # the search results.
+ "safe": "A String", # Specifies the [SafeSearch
+ # level](https://developers.google.com/custom-search/docs/xml_results#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
+ "sort": "A String", # Specifies that results should be sorted according to the specified
+ # expression. For example, sort by date.
+ "searchType": "A String", # Allowed values are `web` or `image`. If unspecified, results are limited
+ # to webpages.
+ "filter": "A String", # Activates or deactivates the automatic filtering of Google search
+ # results. See [Automatic
+ # Filtering](https://developers.google.com/custom-search/docs/xml_results#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.
+ "count": 42, # Number of search results returned in this set.
+ "orTerms": "A String", # 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/xml_results#BooleanOrqt)
+ # query term for this type of query.
+ "imgType": "A String", # 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)
+ "siteSearch": "A String", # Restricts results to URLs from a specified site.
+ "totalResults": "A String", # Estimated number of total search results. May not be accurate.
+ "outputEncoding": "A String", # The character encoding supported for search results.
+ "cr": "A String", # Restricts search results to documents originating in a particular
+ # country. You may use [Boolean
+ # operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators)
+ # 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/xml_results#countryCollections)
+ # for a list of valid values for this parameter.
},
],
},
- "spelling": {
- "correctedQuery": "A String",
- "htmlCorrectedQuery": "A String",
+ "spelling": { # Spell correction information for a query.
+ "htmlCorrectedQuery": "A String", # The corrected query, formatted in HTML.
+ "correctedQuery": "A String", # The corrected query.
},
- "searchInformation": {
- "formattedSearchTime": "A String",
- "formattedTotalResults": "A String",
- "totalResults": "A String",
- "searchTime": 3.14,
+ "promotions": [ # 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.
+ { # Promotion result.
+ "image": { # Image belonging to a promotion.
+ "source": "A String", # URL of the image for this promotion link.
+ "height": 42, # Image height in pixels.
+ "width": 42, # Image width in pixels.
+ },
+ "bodyLines": [ # An array of block objects for this promotion. See [Google WebSearch
+ # Protocol
+ # reference](https://developers.google.com/custom-search/docs/xml_results)
+ # for more information.
+ { # Block object belonging to a promotion.
+ "link": "A String", # The anchor text of the block object's link, if it has a link.
+ "htmlTitle": "A String", # The block object's text in HTML, if it has text.
+ "title": "A String", # The block object's text, if it has text.
+ "url": "A String", # The URL of the block object's link, if it has one.
+ },
+ ],
+ "displayLink": "A String", # An abridged version of this search's result URL, e.g. www.example.com.
+ "title": "A String", # The title of the promotion.
+ "link": "A String", # The URL of the promotion.
+ "htmlTitle": "A String", # The title of the promotion, in HTML.
+ },
+ ],
+ "items": [ # The current set of custom search results.
+ { # A custom search result.
+ "displayLink": "A String", # An abridged version of this search result’s URL, e.g. www.example.com.
+ "kind": "A String", # A unique identifier for the type of current object. For this API, it is
+ # `customsearch#result.`
+ "link": "A String", # The full URL to which the search result is pointing, e.g.
+ # http://www.example.com/foo/bar.
+ "fileFormat": "A String", # The file format of the search result.
+ "htmlFormattedUrl": "A String", # The HTML-formatted URL displayed after the snippet for each search result.
+ "htmlSnippet": "A String", # The snippet of the search result, in HTML.
+ "formattedUrl": "A String", # The URL displayed after the snippet for each search result.
+ "cacheId": "A String", # Indicates the ID of Google's cached version of the search result.
+ "htmlTitle": "A String", # The title of the search result, in HTML.
+ "image": { # Image belonging to a custom search result.
+ "byteSize": 42, # The size of the image, in pixels.
+ "width": 42, # The width of the image, in pixels.
+ "thumbnailWidth": 42, # The width of the thumbnail image, in pixels.
+ "contextLink": "A String", # A URL pointing to the webpage hosting the image.
+ "height": 42, # The height of the image, in pixels.
+ "thumbnailLink": "A String", # A URL to the thumbnail image.
+ "thumbnailHeight": 42, # The height of the thumbnail image, in pixels.
+ },
+ "pagemap": { # Contains
+ # [PageMap](https://developers.google.com/custom-search/docs/structured_data#pagemaps)
+ # information for this search result.
+ "a_key": "", # Properties of the object.
+ },
+ "title": "A String", # The title of the search result, in plain text.
+ "labels": [ # Encapsulates all information about [refinement
+ # labels](https://developers.google.com/custom-search/docs/xml_results).
+ { # Refinement label associated with a custom search result.
+ "name": "A String", # The name of a refinement label, which you can use to refine searches.
+ # Don't display this in your user interface; instead, use displayName.
+ "displayName": "A String", # The display name of a refinement label. This is the name you should
+ # display in your user interface.
+ "label_with_op": "A String", # Refinement label and the associated refinement operation.
+ },
+ ],
+ "snippet": "A String", # The snippet of the search result, in plain text.
+ "mime": "A String", # The MIME type of the search result.
+ },
+ ],
+ "searchInformation": { # Metadata about a search operation.
+ "totalResults": "A String", # The total number of search results returned by the query.
+ "searchTime": 3.14, # The time taken for the server to return search results.
+ "formattedTotalResults": "A String", # The total number of search results, formatted according to locale style.
+ "formattedSearchTime": "A String", # The time taken for the server to return search results, formatted
+ # according to locale style.
},
+ "context": { # 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.
+ "a_key": "", # Properties of the object.
+ },
+ "url": { # OpenSearch template and URL.
+ "type": "A String", # The MIME type of the OpenSearch URL template for the Custom Search API.
+ "template": "A String", # The actual [OpenSearch
+ # template](http://www.opensearch.org/specifications/opensearch/1.1#opensearch_url_template_syntax)
+ # for this API.
+ },
+ "kind": "A String", # Unique identifier for the type of current object. For this API, it is
+ # customsearch#search.
}</pre>
</div>