blob: 1957eac52ee12d77a865e6ff3c469fa143e5b809 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim65020912020-05-20 12:08:20 -070075<h1><a href="customsearch_v1.html">Custom Search API</a> . <a href="customsearch_v1.cse.html">cse</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="customsearch_v1.cse.siterestrict.html">siterestrict()</a></code>
79</p>
80<p class="firstline">Returns the siterestrict Resource.</p>
81
82<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070083 <code><a href="#list">list(imgDominantColor=None, relatedSite=None, linkSite=None, excludeTerms=None, searchType=None, highRange=None, rights=None, dateRestrict=None, filter=None, hl=None, imgType=None, googlehost=None, siteSearch=None, siteSearchFilter=None, imgSize=None, lowRange=None, exactTerms=None, num=None, sort=None, orTerms=None, gl=None, imgColorType=None, safe=None, cr=None, hq=None, start=None, c2coff=None, lr=None, fileType=None, q=None, cx=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070084<p class="firstline">Returns metadata about the search performed, metadata about the custom</p>
John Asmuth614db982014-04-24 15:46:26 -040085<h3>Method Details</h3>
86<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070087 <code class="details" id="list">list(imgDominantColor=None, relatedSite=None, linkSite=None, excludeTerms=None, searchType=None, highRange=None, rights=None, dateRestrict=None, filter=None, hl=None, imgType=None, googlehost=None, siteSearch=None, siteSearchFilter=None, imgSize=None, lowRange=None, exactTerms=None, num=None, sort=None, orTerms=None, gl=None, imgColorType=None, safe=None, cr=None, hq=None, start=None, c2coff=None, lr=None, fileType=None, q=None, cx=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -070088 <pre>Returns metadata about the search performed, metadata about the custom
89search engine used for the search, and the search results.
John Asmuth614db982014-04-24 15:46:26 -040090
91Args:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070092 imgDominantColor: string, Returns images of a specific dominant color. Acceptable values are:
93
94* `&quot;black&quot;`
95
96* `&quot;blue&quot;`
97
98* `&quot;brown&quot;`
99
100* `&quot;gray&quot;`
101
102* `&quot;green&quot;`
103
104* `&quot;orange&quot;`
105
106* `&quot;pink&quot;`
107
108* `&quot;purple&quot;`
109
110* `&quot;red&quot;`
111
112* `&quot;teal&quot;`
113
114* `&quot;white&quot;`
115
116* `&quot;yellow&quot;`
117 relatedSite: string, Specifies that all search results should be pages that are related to the
118specified URL.
119 linkSite: string, Specifies that all search results should contain a link to a particular
120URL.
121 excludeTerms: string, Identifies a word or phrase that should not appear in any documents in the
122search results.
123 searchType: string, Specifies the search type: `image`. If unspecified, results are limited to
124webpages.
125
126Acceptable values are:
127
128* `&quot;image&quot;`: custom image search.
129 highRange: string, Specifies the ending value for a search range.
130
131* Use `lowRange` and `highRange` to append an inclusive search range of
132`lowRange...highRange` to the query.
133 rights: string, Filters based on licensing. Supported values include: `cc_publicdomain`,
134`cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
135combinations of these. See [typical
136combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).
137 dateRestrict: string, Restricts results to URLs based on date. Supported values include:
138
139* `d[number]`: requests results from the specified number of past days.
140
141* `w[number]`: requests results from the specified number of past weeks.
142
143* `m[number]`: requests results from the specified number of past months.
144
145* `y[number]`: requests results from the specified number of past years.
146 filter: string, Controls turning on or off the duplicate content filter.
147
148* See [Automatic
149Filtering](https://developers.google.com/custom-search/docs/xml_results#automaticFiltering)
150for more information about Google&#x27;s search results filters. Note that host
151crowding filtering applies only to multi-site searches.
152
153* By default, Google applies filtering to all search results to improve the
154quality of those results.
155
156Acceptable values are:
157
158* `0`: Turns off duplicate content filter.
159
160* `1`: Turns on duplicate content filter.
161 hl: string, Sets the user interface language.
162
163* Explicitly setting this parameter improves the performance and the
164quality of your search results.
165
166* See the [Interface
167Languages](https://developers.google.com/custom-search/docs/xml_results#wsInterfaceLanguages)
168section of [Internationalizing Queries and Results
169Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
170for more information, and (Supported Interface
171Languages)[https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages]
172for a list of supported languages.
173 imgType: string, Returns images of a type. Acceptable values are:
174
175* `&quot;clipart&quot;`
176
177* `&quot;face&quot;`
178
179* `&quot;lineart&quot;`
180
181* `&quot;stock&quot;`
182
183* `&quot;photo&quot;`
184
185* `&quot;animated&quot;`
186 googlehost: string, **Deprecated**. Use the `gl` parameter for a similar effect.
187
188The local Google domain (for example, google.com, google.de, or
189google.fr) to use to perform the search.
190 siteSearch: string, Specifies a given site which should always be included or excluded from
191results (see `siteSearchFilter` parameter, below).
192 siteSearchFilter: string, Controls whether to include or exclude results from the site named in the
193`siteSearch` parameter.
194
195Acceptable values are:
196
197* `&quot;e&quot;`: exclude
198
199* `&quot;i&quot;`: include
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 imgSize: string, Returns images of a specified size. Acceptable values are:
201
202* `&quot;huge&quot;`
203
204* `&quot;icon&quot;`
205
206* `&quot;large&quot;`
207
208* `&quot;medium&quot;`
209
210* `&quot;small&quot;`
211
212* `&quot;xlarge&quot;`
213
214* `&quot;xxlarge&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 lowRange: string, Specifies the starting value for a search range. Use `lowRange` and
216`highRange` to append an inclusive search range of `lowRange...highRange`
217to the query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218 exactTerms: string, Identifies a phrase that all documents in the search results must contain.
219 num: integer, Number of search results to return.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700221* Valid values are integers between 1 and 10, inclusive.
222 sort: string, The sort expression to apply to the results.
223 orTerms: string, Provides additional search terms to check for in a document, where each
224document in the search results must contain at least one of the additional
225search terms.
226 gl: string, Geolocation of end user.
227
228* The `gl` parameter value is a two-letter country code. The `gl` parameter
229boosts search results whose country of origin matches the parameter value.
230See the [Country
231Codes](https://developers.google.com/custom-search/docs/xml_results_appendices#countryCodes)
232page for a list of valid values.
233
234* Specifying a `gl` parameter value should lead to more relevant results.
235This is particularly true for international customers and, even more
236specifically, for customers in English- speaking countries other than the
237United States.
238 imgColorType: string, Returns black and white, grayscale, transparent, or color images.
239Acceptable values are:
240
241* `&quot;color&quot;`
242
243* `&quot;gray&quot;`
244
245* `&quot;mono&quot;`: black and white
246
247* `&quot;trans&quot;`: transparent background
248 safe: string, Search safety level. Acceptable values are:
249
250* `&quot;active&quot;`: Enables SafeSearch filtering.
251
252* `&quot;off&quot;`: Disables SafeSearch filtering. (default)
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 cr: string, Restricts search results to documents originating in a particular country.
254You may use [Boolean
255operators](https://developers.google.com/custom-search/docs/xml_results_appendices#booleanOperators)
256in the cr parameter&#x27;s value.
257
258Google Search determines the country of a document by analyzing:
259
260* the top-level domain (TLD) of the document&#x27;s URL
261
262* the geographic location of the Web server&#x27;s IP address
263
264See the [Country Parameter
265Values](https://developers.google.com/custom-search/docs/xml_results_appendices#countryCollections)
266page for a list of valid values for this parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700267 hq: string, Appends the specified query terms to the query, as if they were combined
268with a logical AND operator.
269 start: integer, The index of the first result to return. The default number of results per
270page is 10, so `&amp;start=11` would start at the top of the second page of
271results. **Note**: The JSON API will never return more than 100 results,
272even if more than 100 documents match the query, so setting the sum of
273`start + num` to a number greater than 100 will produce an error. Also note
274that the maximum value for `num` is 10.
275 c2coff: string, Enables or disables [Simplified and Traditional Chinese
276Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch).
277
278The default value for this parameter is 0 (zero), meaning that the feature
279is enabled. Supported values are:
280
281* `1`: Disabled
282
283* `0`: Enabled (default)
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 lr: string, Restricts the search to documents written in a particular language (e.g.,
285`lr=lang_ja`).
286
287Acceptable values are:
288
289* `&quot;lang_ar&quot;`: Arabic
290
291* `&quot;lang_bg&quot;`: Bulgarian
292
293* `&quot;lang_ca&quot;`: Catalan
294
295* `&quot;lang_cs&quot;`: Czech
296
297* `&quot;lang_da&quot;`: Danish
298
299* `&quot;lang_de&quot;`: German
300
301* `&quot;lang_el&quot;`: Greek
302
303* `&quot;lang_en&quot;`: English
304
305* `&quot;lang_es&quot;`: Spanish
306
307* `&quot;lang_et&quot;`: Estonian
308
309* `&quot;lang_fi&quot;`: Finnish
310
311* `&quot;lang_fr&quot;`: French
312
313* `&quot;lang_hr&quot;`: Croatian
314
315* `&quot;lang_hu&quot;`: Hungarian
316
317* `&quot;lang_id&quot;`: Indonesian
318
319* `&quot;lang_is&quot;`: Icelandic
320
321* `&quot;lang_it&quot;`: Italian
322
323* `&quot;lang_iw&quot;`: Hebrew
324
325* `&quot;lang_ja&quot;`: Japanese
326
327* `&quot;lang_ko&quot;`: Korean
328
329* `&quot;lang_lt&quot;`: Lithuanian
330
331* `&quot;lang_lv&quot;`: Latvian
332
333* `&quot;lang_nl&quot;`: Dutch
334
335* `&quot;lang_no&quot;`: Norwegian
336
337* `&quot;lang_pl&quot;`: Polish
338
339* `&quot;lang_pt&quot;`: Portuguese
340
341* `&quot;lang_ro&quot;`: Romanian
342
343* `&quot;lang_ru&quot;`: Russian
344
345* `&quot;lang_sk&quot;`: Slovak
346
347* `&quot;lang_sl&quot;`: Slovenian
348
349* `&quot;lang_sr&quot;`: Serbian
350
351* `&quot;lang_sv&quot;`: Swedish
352
353* `&quot;lang_tr&quot;`: Turkish
354
355* `&quot;lang_zh-CN&quot;`: Chinese (Simplified)
356
357* `&quot;lang_zh-TW&quot;`: Chinese (Traditional)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700358 fileType: string, Restricts results to files of a specified extension. A list of file types
359indexable by Google can be found in Search Console [Help
360Center](https://support.google.com/webmasters/answer/35287).
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 q: string, Query
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700362 cx: string, The custom search engine ID to use for this request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 x__xgafv: string, V1 error format.
John Asmuth614db982014-04-24 15:46:26 -0400364 Allowed values
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 1 - v1 error format
366 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400367
368Returns:
369 An object of the form:
370
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 { # Response to a custom search request.
372 &quot;queries&quot;: { # Query metadata for the previous, current, and next pages of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;request&quot;: [ # Metadata representing the current request.
374 { # Custom search request metadata.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700375 &quot;language&quot;: &quot;A String&quot;, # The language of the search results.
376 &quot;googleHost&quot;: &quot;A String&quot;, # Specifies the Google domain (for example, google.com, google.de, or
377 # google.fr) to which the search should be limited.
378 &quot;imgSize&quot;: &quot;A String&quot;, # Restricts results to images of a specified size. Supported values are:
379 #
380 # * `icon` (small)
381 #
382 # * `small | medium | large | xlarge` (medium)
383 #
384 # * `xxlarge` (large)
385 #
386 # * `huge` (extra-large)
387 &quot;filter&quot;: &quot;A String&quot;, # Activates or deactivates the automatic filtering of Google search
388 # results. See [Automatic
389 # Filtering](https://developers.google.com/custom-search/docs/xml_results#automaticFiltering)
390 # for more information about Google&#x27;s search results filters. Valid values
391 # for this parameter are:
392 #
393 # * `0`: Disabled
394 #
395 # * `1`: Enabled (default)
396 #
397 # **Note**: By default, Google applies filtering to all search results to
398 # improve the quality of those results.
399 &quot;imgDominantColor&quot;: &quot;A String&quot;, # Restricts results to images with a specific dominant color. Supported
400 # values are:
401 #
402 # * `red`
403 #
404 # * `orange`
405 #
406 # * `yellow`
407 #
408 # * `green`
409 #
410 # * `teal`
411 #
412 # * `blue`
413 #
414 # * `purple`
415 #
416 # * `pink`
417 #
418 # * `white`
419 #
420 # * `gray`
421 #
422 # * `black`
423 #
424 # * `brown`
425 &quot;title&quot;: &quot;A String&quot;, # A description of the query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700426 &quot;disableCnTwTranslation&quot;: &quot;A String&quot;, # Enables or disables the [Simplified and Traditional Chinese
427 # Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch)
428 # feature.
429 #
430 # Supported values are:
431 #
432 # * `0`: enabled (default)
433 #
434 # * `1`: disabled
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700435 &quot;sort&quot;: &quot;A String&quot;, # Specifies that results should be sorted according to the specified
436 # expression. For example, sort by date.
437 &quot;startPage&quot;: 42, # The page number of this set of results, where the page length is set by
438 # the `count` property.
439 &quot;inputEncoding&quot;: &quot;A String&quot;, # The character encoding supported for search requests.
440 &quot;cx&quot;: &quot;A String&quot;, # The identifier of a custom search engine created using the Custom Search
441 # [Control Panel](https://cse.google.com/). This is a custom property not
442 # defined in the OpenSearch spec. This parameter is **required**.
443 &quot;gl&quot;: &quot;A String&quot;, # Boosts search results whose country of origin matches the parameter
444 # value. See [Country
445 # Codes](https://developers.google.com/custom-search/docs/xml_results#countryCodes)
446 # for a list of valid values.
447 #
448 # Specifying a `gl` parameter value in WebSearch requests should improve
449 # the relevance of results. This is particularly true for international
450 # customers and, even more specifically, for customers in English-speaking
451 # countries other than the United States.
452 &quot;excludeTerms&quot;: &quot;A String&quot;, # Identifies a word or phrase that should not appear in any documents in
453 # the search results.
454 &quot;outputEncoding&quot;: &quot;A String&quot;, # The character encoding supported for search results.
455 &quot;searchTerms&quot;: &quot;A String&quot;, # The search terms entered by the user.
456 &quot;highRange&quot;: &quot;A String&quot;, # Specifies the ending value for a search range. Use `cse:lowRange` and
457 # `cse:highrange` to append an inclusive search range of
458 # `lowRange...highRange` to the query.
459 &quot;siteSearch&quot;: &quot;A String&quot;, # Restricts results to URLs from a specified site.
460 &quot;hq&quot;: &quot;A String&quot;, # Appends the specified query terms to the query, as if they were combined
461 # with a logical `AND` operator.
462 &quot;count&quot;: 42, # Number of search results returned in this set.
463 &quot;relatedSite&quot;: &quot;A String&quot;, # Specifies that all search results should be pages that are related to the
464 # specified URL. The parameter value should be a URL.
465 &quot;hl&quot;: &quot;A String&quot;, # Specifies the interface language (host language) of your user interface.
466 # Explicitly setting this parameter improves the performance and the
467 # quality of your search results.
468 #
469 # See the [Interface
470 # Languages](https://developers.google.com/custom-search/docs/xml_results#wsInterfaceLanguages)
471 # section of [Internationalizing Queries and Results
472 # Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
473 # for more information, and [Supported Interface
474 # Languages](https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
475 # for a list of supported languages.
476 &quot;totalResults&quot;: &quot;A String&quot;, # Estimated number of total search results. May not be accurate.
477 &quot;rights&quot;: &quot;A String&quot;, # Filters based on licensing. Supported values include:
478 #
479 # * `cc_publicdomain`
480 #
481 # * `cc_attribute`
482 #
483 # * `cc_sharealike`
484 #
485 # * `cc_noncommercial`
486 #
487 # * `cc_nonderived`
488 &quot;cr&quot;: &quot;A String&quot;, # Restricts search results to documents originating in a particular
489 # country. You may use [Boolean
490 # operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators)
491 # in the `cr` parameter&#x27;s value.
492 #
493 # Google WebSearch determines the country of a document by analyzing the
494 # following:
495 #
496 # * The top-level domain (TLD) of the document&#x27;s URL.
497 #
498 # * The geographic location of the web server&#x27;s IP address.
499 #
500 # See [Country (cr) Parameter
501 # Values](https://developers.google.com/custom-search/docs/xml_results#countryCollections)
502 # for a list of valid values for this parameter.
503 &quot;imgColorType&quot;: &quot;A String&quot;, # Restricts results to images of a specified color type. Supported values
504 # are:
505 #
506 # * `mono` (black and white)
507 #
508 # * `gray` (grayscale)
509 #
510 # * `color` (color)
511 &quot;safe&quot;: &quot;A String&quot;, # Specifies the [SafeSearch
512 # level](https://developers.google.com/custom-search/docs/xml_results#safeSearchLevels)
513 # used for filtering out adult results. This is a custom property not
514 # defined in the OpenSearch spec. Valid parameter values are:
515 #
516 # * `&quot;off&quot;`: Disable SafeSearch
517 #
518 # * `&quot;active&quot;`: Enable SafeSearch
519 &quot;dateRestrict&quot;: &quot;A String&quot;, # Restricts results to URLs based on date. Supported values include:
520 #
521 # * `d[number]`: requests results from the specified number of past days.
522 #
523 # * `w[number]`: requests results from the specified number of past weeks.
524 #
525 # * `m[number]`: requests results from the specified number of past months.
526 #
527 # * `y[number]`: requests results from the specified number of past years.
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;fileType&quot;: &quot;A String&quot;, # Restricts results to files of a specified extension. Filetypes supported
529 # by Google include:
530 #
531 # * Adobe Portable Document Format (`pdf`)
532 #
533 # * Adobe PostScript (`ps`)
534 #
535 # * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`)
536 #
537 # * Lotus WordPro (`lwp`)
538 #
539 # * Macwrite (`mw`)
540 #
541 # * Microsoft Excel (`xls`)
542 #
543 # * Microsoft PowerPoint (`ppt`)
544 #
545 # * Microsoft Word (`doc`)
546 #
547 # * Microsoft Works (`wks`, `wps`, `wdb`)
548 #
549 # * Microsoft Write (`wri`)
550 #
551 # * Rich Text Format (`rtf`)
552 #
553 # * Shockwave Flash (`swf`)
554 #
555 # * Text (`ans`, `txt`).
556 #
557 # Additional filetypes may be added in the future. An up-to-date list can
558 # always be found in Google&#x27;s [file type
559 # FAQ](https://support.google.com/webmasters/answer/35287).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700560 &quot;searchType&quot;: &quot;A String&quot;, # Allowed values are `web` or `image`. If unspecified, results are limited
561 # to webpages.
562 &quot;imgType&quot;: &quot;A String&quot;, # Restricts results to images of a specified type. Supported values are:
563 #
564 # * `clipart` (Clip art)
565 #
566 # * `face` (Face)
567 #
568 # * `lineart` (Line drawing)
569 #
570 # * `photo` (Photo)
571 #
572 # * `animated` (Animated)
573 #
574 # * `stock` (Stock)
575 &quot;linkSite&quot;: &quot;A String&quot;, # Specifies that all results should contain a link to a specific URL.
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 &quot;siteSearchFilter&quot;: &quot;A String&quot;, # Specifies whether to include or exclude results from the site named in
577 # the `sitesearch` parameter. Supported values are:
578 #
579 # * `i`: include content from site
580 #
581 # * `e`: exclude content from site
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700582 &quot;startIndex&quot;: 42, # The index of the current set of search results into the total set of
583 # results, where the index of the first result is 1.
584 &quot;lowRange&quot;: &quot;A String&quot;, # Specifies the starting value for a search range. Use `cse:lowRange` and
585 # `cse:highrange` to append an inclusive search range of
586 # `lowRange...highRange` to the query.
587 &quot;exactTerms&quot;: &quot;A String&quot;, # Identifies a phrase that all documents in the search results must
588 # contain.
589 &quot;orTerms&quot;: &quot;A String&quot;, # Provides additional search terms to check for in a document, where each
590 # document in the search results must contain at least one of the
591 # additional search terms. You can also use the [Boolean
592 # OR](https://developers.google.com/custom-search/docs/xml_results#BooleanOrqt)
593 # query term for this type of query.
594 },
595 ],
596 &quot;nextPage&quot;: [ # Metadata representing the next page of results, if applicable.
597 { # Custom search request metadata.
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;gl&quot;: &quot;A String&quot;, # Boosts search results whose country of origin matches the parameter
599 # value. See [Country
600 # Codes](https://developers.google.com/custom-search/docs/xml_results#countryCodes)
601 # for a list of valid values.
602 #
603 # Specifying a `gl` parameter value in WebSearch requests should improve
604 # the relevance of results. This is particularly true for international
605 # customers and, even more specifically, for customers in English-speaking
606 # countries other than the United States.
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;safe&quot;: &quot;A String&quot;, # Specifies the [SafeSearch
608 # level](https://developers.google.com/custom-search/docs/xml_results#safeSearchLevels)
609 # used for filtering out adult results. This is a custom property not
610 # defined in the OpenSearch spec. Valid parameter values are:
611 #
612 # * `&quot;off&quot;`: Disable SafeSearch
613 #
614 # * `&quot;active&quot;`: Enable SafeSearch
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700615 &quot;language&quot;: &quot;A String&quot;, # The language of the search results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;hl&quot;: &quot;A String&quot;, # Specifies the interface language (host language) of your user interface.
617 # Explicitly setting this parameter improves the performance and the
618 # quality of your search results.
619 #
620 # See the [Interface
621 # Languages](https://developers.google.com/custom-search/docs/xml_results#wsInterfaceLanguages)
622 # section of [Internationalizing Queries and Results
623 # Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
624 # for more information, and [Supported Interface
625 # Languages](https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
626 # for a list of supported languages.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700627 &quot;excludeTerms&quot;: &quot;A String&quot;, # Identifies a word or phrase that should not appear in any documents in
628 # the search results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;filter&quot;: &quot;A String&quot;, # Activates or deactivates the automatic filtering of Google search
630 # results. See [Automatic
631 # Filtering](https://developers.google.com/custom-search/docs/xml_results#automaticFiltering)
632 # for more information about Google&#x27;s search results filters. Valid values
633 # for this parameter are:
634 #
635 # * `0`: Disabled
636 #
637 # * `1`: Enabled (default)
638 #
639 # **Note**: By default, Google applies filtering to all search results to
640 # improve the quality of those results.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700641 &quot;title&quot;: &quot;A String&quot;, # A description of the query.
642 &quot;dateRestrict&quot;: &quot;A String&quot;, # Restricts results to URLs based on date. Supported values include:
643 #
644 # * `d[number]`: requests results from the specified number of past days.
645 #
646 # * `w[number]`: requests results from the specified number of past weeks.
647 #
648 # * `m[number]`: requests results from the specified number of past months.
649 #
650 # * `y[number]`: requests results from the specified number of past years.
651 &quot;highRange&quot;: &quot;A String&quot;, # Specifies the ending value for a search range. Use `cse:lowRange` and
652 # `cse:highrange` to append an inclusive search range of
653 # `lowRange...highRange` to the query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700654 &quot;sort&quot;: &quot;A String&quot;, # Specifies that results should be sorted according to the specified
655 # expression. For example, sort by date.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700656 &quot;relatedSite&quot;: &quot;A String&quot;, # Specifies that all search results should be pages that are related to the
657 # specified URL. The parameter value should be a URL.
658 &quot;orTerms&quot;: &quot;A String&quot;, # Provides additional search terms to check for in a document, where each
659 # document in the search results must contain at least one of the
660 # additional search terms. You can also use the [Boolean
661 # OR](https://developers.google.com/custom-search/docs/xml_results#BooleanOrqt)
662 # query term for this type of query.
663 &quot;searchTerms&quot;: &quot;A String&quot;, # The search terms entered by the user.
664 &quot;outputEncoding&quot;: &quot;A String&quot;, # The character encoding supported for search results.
665 &quot;imgType&quot;: &quot;A String&quot;, # Restricts results to images of a specified type. Supported values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700667 # * `clipart` (Clip art)
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700669 # * `face` (Face)
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700671 # * `lineart` (Line drawing)
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700673 # * `photo` (Photo)
674 #
675 # * `animated` (Animated)
676 #
677 # * `stock` (Stock)
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;imgDominantColor&quot;: &quot;A String&quot;, # Restricts results to images with a specific dominant color. Supported
679 # values are:
680 #
681 # * `red`
682 #
683 # * `orange`
684 #
685 # * `yellow`
686 #
687 # * `green`
688 #
689 # * `teal`
690 #
691 # * `blue`
692 #
693 # * `purple`
694 #
695 # * `pink`
696 #
697 # * `white`
698 #
699 # * `gray`
700 #
701 # * `black`
702 #
703 # * `brown`
Bu Sun Kim65020912020-05-20 12:08:20 -0700704 &quot;hq&quot;: &quot;A String&quot;, # Appends the specified query terms to the query, as if they were combined
705 # with a logical `AND` operator.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700706 &quot;count&quot;: 42, # Number of search results returned in this set.
707 &quot;startPage&quot;: 42, # The page number of this set of results, where the page length is set by
708 # the `count` property.
709 &quot;startIndex&quot;: 42, # The index of the current set of search results into the total set of
710 # results, where the index of the first result is 1.
711 &quot;cx&quot;: &quot;A String&quot;, # The identifier of a custom search engine created using the Custom Search
712 # [Control Panel](https://cse.google.com/). This is a custom property not
713 # defined in the OpenSearch spec. This parameter is **required**.
714 &quot;exactTerms&quot;: &quot;A String&quot;, # Identifies a phrase that all documents in the search results must
715 # contain.
716 &quot;linkSite&quot;: &quot;A String&quot;, # Specifies that all results should contain a link to a specific URL.
717 &quot;imgColorType&quot;: &quot;A String&quot;, # Restricts results to images of a specified color type. Supported values
718 # are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700720 # * `mono` (black and white)
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700722 # * `gray` (grayscale)
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700724 # * `color` (color)
725 &quot;siteSearchFilter&quot;: &quot;A String&quot;, # Specifies whether to include or exclude results from the site named in
726 # the `sitesearch` parameter. Supported values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700728 # * `i`: include content from site
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700730 # * `e`: exclude content from site
731 &quot;inputEncoding&quot;: &quot;A String&quot;, # The character encoding supported for search requests.
732 &quot;cr&quot;: &quot;A String&quot;, # Restricts search results to documents originating in a particular
733 # country. You may use [Boolean
734 # operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators)
735 # in the `cr` parameter&#x27;s value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700737 # Google WebSearch determines the country of a document by analyzing the
738 # following:
739 #
740 # * The top-level domain (TLD) of the document&#x27;s URL.
741 #
742 # * The geographic location of the web server&#x27;s IP address.
743 #
744 # See [Country (cr) Parameter
745 # Values](https://developers.google.com/custom-search/docs/xml_results#countryCollections)
746 # for a list of valid values for this parameter.
747 &quot;rights&quot;: &quot;A String&quot;, # Filters based on licensing. Supported values include:
748 #
749 # * `cc_publicdomain`
750 #
751 # * `cc_attribute`
752 #
753 # * `cc_sharealike`
754 #
755 # * `cc_noncommercial`
756 #
757 # * `cc_nonderived`
758 &quot;imgSize&quot;: &quot;A String&quot;, # Restricts results to images of a specified size. Supported values are:
759 #
760 # * `icon` (small)
761 #
762 # * `small | medium | large | xlarge` (medium)
763 #
764 # * `xxlarge` (large)
765 #
766 # * `huge` (extra-large)
767 &quot;siteSearch&quot;: &quot;A String&quot;, # Restricts results to URLs from a specified site.
768 &quot;disableCnTwTranslation&quot;: &quot;A String&quot;, # Enables or disables the [Simplified and Traditional Chinese
769 # Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch)
770 # feature.
771 #
772 # Supported values are:
773 #
774 # * `0`: enabled (default)
775 #
776 # * `1`: disabled
777 &quot;searchType&quot;: &quot;A String&quot;, # Allowed values are `web` or `image`. If unspecified, results are limited
778 # to webpages.
779 &quot;lowRange&quot;: &quot;A String&quot;, # Specifies the starting value for a search range. Use `cse:lowRange` and
780 # `cse:highrange` to append an inclusive search range of
781 # `lowRange...highRange` to the query.
782 &quot;googleHost&quot;: &quot;A String&quot;, # Specifies the Google domain (for example, google.com, google.de, or
783 # google.fr) to which the search should be limited.
784 &quot;fileType&quot;: &quot;A String&quot;, # Restricts results to files of a specified extension. Filetypes supported
785 # by Google include:
786 #
787 # * Adobe Portable Document Format (`pdf`)
788 #
789 # * Adobe PostScript (`ps`)
790 #
791 # * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`)
792 #
793 # * Lotus WordPro (`lwp`)
794 #
795 # * Macwrite (`mw`)
796 #
797 # * Microsoft Excel (`xls`)
798 #
799 # * Microsoft PowerPoint (`ppt`)
800 #
801 # * Microsoft Word (`doc`)
802 #
803 # * Microsoft Works (`wks`, `wps`, `wdb`)
804 #
805 # * Microsoft Write (`wri`)
806 #
807 # * Rich Text Format (`rtf`)
808 #
809 # * Shockwave Flash (`swf`)
810 #
811 # * Text (`ans`, `txt`).
812 #
813 # Additional filetypes may be added in the future. An up-to-date list can
814 # always be found in Google&#x27;s [file type
815 # FAQ](https://support.google.com/webmasters/answer/35287).
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;totalResults&quot;: &quot;A String&quot;, # Estimated number of total search results. May not be accurate.
817 },
818 ],
819 &quot;previousPage&quot;: [ # Metadata representing the previous page of results, if applicable.
820 { # Custom search request metadata.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700821 &quot;safe&quot;: &quot;A String&quot;, # Specifies the [SafeSearch
822 # level](https://developers.google.com/custom-search/docs/xml_results#safeSearchLevels)
823 # used for filtering out adult results. This is a custom property not
824 # defined in the OpenSearch spec. Valid parameter values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700826 # * `&quot;off&quot;`: Disable SafeSearch
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700828 # * `&quot;active&quot;`: Enable SafeSearch
829 &quot;rights&quot;: &quot;A String&quot;, # Filters based on licensing. Supported values include:
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700831 # * `cc_publicdomain`
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700833 # * `cc_attribute`
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700835 # * `cc_sharealike`
Bu Sun Kim65020912020-05-20 12:08:20 -0700836 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700837 # * `cc_noncommercial`
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700839 # * `cc_nonderived`
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 &quot;googleHost&quot;: &quot;A String&quot;, # Specifies the Google domain (for example, google.com, google.de, or
841 # google.fr) to which the search should be limited.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700842 &quot;sort&quot;: &quot;A String&quot;, # Specifies that results should be sorted according to the specified
843 # expression. For example, sort by date.
844 &quot;orTerms&quot;: &quot;A String&quot;, # Provides additional search terms to check for in a document, where each
845 # document in the search results must contain at least one of the
846 # additional search terms. You can also use the [Boolean
847 # OR](https://developers.google.com/custom-search/docs/xml_results#BooleanOrqt)
848 # query term for this type of query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700849 &quot;startIndex&quot;: 42, # The index of the current set of search results into the total set of
850 # results, where the index of the first result is 1.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700851 &quot;startPage&quot;: 42, # The page number of this set of results, where the page length is set by
852 # the `count` property.
853 &quot;searchType&quot;: &quot;A String&quot;, # Allowed values are `web` or `image`. If unspecified, results are limited
854 # to webpages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700855 &quot;fileType&quot;: &quot;A String&quot;, # Restricts results to files of a specified extension. Filetypes supported
856 # by Google include:
857 #
858 # * Adobe Portable Document Format (`pdf`)
859 #
860 # * Adobe PostScript (`ps`)
861 #
862 # * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`)
863 #
864 # * Lotus WordPro (`lwp`)
865 #
866 # * Macwrite (`mw`)
867 #
868 # * Microsoft Excel (`xls`)
869 #
870 # * Microsoft PowerPoint (`ppt`)
871 #
872 # * Microsoft Word (`doc`)
873 #
874 # * Microsoft Works (`wks`, `wps`, `wdb`)
875 #
876 # * Microsoft Write (`wri`)
877 #
878 # * Rich Text Format (`rtf`)
879 #
880 # * Shockwave Flash (`swf`)
881 #
882 # * Text (`ans`, `txt`).
883 #
884 # Additional filetypes may be added in the future. An up-to-date list can
885 # always be found in Google&#x27;s [file type
886 # FAQ](https://support.google.com/webmasters/answer/35287).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700887 &quot;imgSize&quot;: &quot;A String&quot;, # Restricts results to images of a specified size. Supported values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700888 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700889 # * `icon` (small)
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700891 # * `small | medium | large | xlarge` (medium)
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700893 # * `xxlarge` (large)
Bu Sun Kim65020912020-05-20 12:08:20 -0700894 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700895 # * `huge` (extra-large)
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 &quot;cr&quot;: &quot;A String&quot;, # Restricts search results to documents originating in a particular
897 # country. You may use [Boolean
898 # operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators)
899 # in the `cr` parameter&#x27;s value.
900 #
901 # Google WebSearch determines the country of a document by analyzing the
902 # following:
903 #
904 # * The top-level domain (TLD) of the document&#x27;s URL.
905 #
906 # * The geographic location of the web server&#x27;s IP address.
907 #
908 # See [Country (cr) Parameter
909 # Values](https://developers.google.com/custom-search/docs/xml_results#countryCollections)
910 # for a list of valid values for this parameter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700911 &quot;disableCnTwTranslation&quot;: &quot;A String&quot;, # Enables or disables the [Simplified and Traditional Chinese
912 # Search](https://developers.google.com/custom-search/docs/xml_results#chineseSearch)
913 # feature.
914 #
915 # Supported values are:
916 #
917 # * `0`: enabled (default)
918 #
919 # * `1`: disabled
920 &quot;imgColorType&quot;: &quot;A String&quot;, # Restricts results to images of a specified color type. Supported values
921 # are:
922 #
923 # * `mono` (black and white)
924 #
925 # * `gray` (grayscale)
926 #
927 # * `color` (color)
928 &quot;highRange&quot;: &quot;A String&quot;, # Specifies the ending value for a search range. Use `cse:lowRange` and
929 # `cse:highrange` to append an inclusive search range of
930 # `lowRange...highRange` to the query.
931 &quot;excludeTerms&quot;: &quot;A String&quot;, # Identifies a word or phrase that should not appear in any documents in
932 # the search results.
933 &quot;count&quot;: 42, # Number of search results returned in this set.
934 &quot;title&quot;: &quot;A String&quot;, # A description of the query.
935 &quot;searchTerms&quot;: &quot;A String&quot;, # The search terms entered by the user.
936 &quot;filter&quot;: &quot;A String&quot;, # Activates or deactivates the automatic filtering of Google search
937 # results. See [Automatic
938 # Filtering](https://developers.google.com/custom-search/docs/xml_results#automaticFiltering)
939 # for more information about Google&#x27;s search results filters. Valid values
940 # for this parameter are:
941 #
942 # * `0`: Disabled
943 #
944 # * `1`: Enabled (default)
945 #
946 # **Note**: By default, Google applies filtering to all search results to
947 # improve the quality of those results.
948 &quot;language&quot;: &quot;A String&quot;, # The language of the search results.
949 &quot;lowRange&quot;: &quot;A String&quot;, # Specifies the starting value for a search range. Use `cse:lowRange` and
950 # `cse:highrange` to append an inclusive search range of
951 # `lowRange...highRange` to the query.
952 &quot;imgType&quot;: &quot;A String&quot;, # Restricts results to images of a specified type. Supported values are:
953 #
954 # * `clipart` (Clip art)
955 #
956 # * `face` (Face)
957 #
958 # * `lineart` (Line drawing)
959 #
960 # * `photo` (Photo)
961 #
962 # * `animated` (Animated)
963 #
964 # * `stock` (Stock)
965 &quot;hl&quot;: &quot;A String&quot;, # Specifies the interface language (host language) of your user interface.
966 # Explicitly setting this parameter improves the performance and the
967 # quality of your search results.
968 #
969 # See the [Interface
970 # Languages](https://developers.google.com/custom-search/docs/xml_results#wsInterfaceLanguages)
971 # section of [Internationalizing Queries and Results
972 # Presentation](https://developers.google.com/custom-search/docs/xml_results#wsInternationalizing)
973 # for more information, and [Supported Interface
974 # Languages](https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
975 # for a list of supported languages.
976 &quot;outputEncoding&quot;: &quot;A String&quot;, # The character encoding supported for search results.
977 &quot;gl&quot;: &quot;A String&quot;, # Boosts search results whose country of origin matches the parameter
978 # value. See [Country
979 # Codes](https://developers.google.com/custom-search/docs/xml_results#countryCodes)
980 # for a list of valid values.
981 #
982 # Specifying a `gl` parameter value in WebSearch requests should improve
983 # the relevance of results. This is particularly true for international
984 # customers and, even more specifically, for customers in English-speaking
985 # countries other than the United States.
986 &quot;siteSearch&quot;: &quot;A String&quot;, # Restricts results to URLs from a specified site.
987 &quot;hq&quot;: &quot;A String&quot;, # Appends the specified query terms to the query, as if they were combined
988 # with a logical `AND` operator.
989 &quot;siteSearchFilter&quot;: &quot;A String&quot;, # Specifies whether to include or exclude results from the site named in
990 # the `sitesearch` parameter. Supported values are:
991 #
992 # * `i`: include content from site
993 #
994 # * `e`: exclude content from site
995 &quot;relatedSite&quot;: &quot;A String&quot;, # Specifies that all search results should be pages that are related to the
996 # specified URL. The parameter value should be a URL.
997 &quot;linkSite&quot;: &quot;A String&quot;, # Specifies that all results should contain a link to a specific URL.
998 &quot;totalResults&quot;: &quot;A String&quot;, # Estimated number of total search results. May not be accurate.
999 &quot;dateRestrict&quot;: &quot;A String&quot;, # Restricts results to URLs based on date. Supported values include:
1000 #
1001 # * `d[number]`: requests results from the specified number of past days.
1002 #
1003 # * `w[number]`: requests results from the specified number of past weeks.
1004 #
1005 # * `m[number]`: requests results from the specified number of past months.
1006 #
1007 # * `y[number]`: requests results from the specified number of past years.
1008 &quot;imgDominantColor&quot;: &quot;A String&quot;, # Restricts results to images with a specific dominant color. Supported
1009 # values are:
1010 #
1011 # * `red`
1012 #
1013 # * `orange`
1014 #
1015 # * `yellow`
1016 #
1017 # * `green`
1018 #
1019 # * `teal`
1020 #
1021 # * `blue`
1022 #
1023 # * `purple`
1024 #
1025 # * `pink`
1026 #
1027 # * `white`
1028 #
1029 # * `gray`
1030 #
1031 # * `black`
1032 #
1033 # * `brown`
1034 &quot;exactTerms&quot;: &quot;A String&quot;, # Identifies a phrase that all documents in the search results must
1035 # contain.
1036 &quot;inputEncoding&quot;: &quot;A String&quot;, # The character encoding supported for search requests.
1037 &quot;cx&quot;: &quot;A String&quot;, # The identifier of a custom search engine created using the Custom Search
1038 # [Control Panel](https://cse.google.com/). This is a custom property not
1039 # defined in the OpenSearch spec. This parameter is **required**.
John Asmuth614db982014-04-24 15:46:26 -04001040 },
1041 ],
1042 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001043 &quot;url&quot;: { # OpenSearch template and URL.
1044 &quot;type&quot;: &quot;A String&quot;, # The MIME type of the OpenSearch URL template for the Custom Search API.
1045 &quot;template&quot;: &quot;A String&quot;, # The actual [OpenSearch
1046 # template](http://www.opensearch.org/specifications/opensearch/1.1#opensearch_url_template_syntax)
1047 # for this API.
John Asmuth614db982014-04-24 15:46:26 -04001048 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;context&quot;: { # Metadata and refinements associated with the given search engine,
1050 # including:
1051 #
1052 # * The name of the search engine that was used for the query.
1053 #
1054 # * A set of [facet
1055 # objects](https://developers.google.com/custom-search/docs/refinements#create)
1056 # (refinements) you can use for refining a search.
1057 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1058 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 &quot;kind&quot;: &quot;A String&quot;, # Unique identifier for the type of current object. For this API, it is
1060 # customsearch#search.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001061 &quot;promotions&quot;: [ # The set of
1062 # [promotions](https://developers.google.com/custom-search/docs/promotions).
1063 # Present only if the custom search engine&#x27;s configuration files define any
1064 # promotions for the given query.
1065 { # Promotion result.
1066 &quot;title&quot;: &quot;A String&quot;, # The title of the promotion.
1067 &quot;htmlTitle&quot;: &quot;A String&quot;, # The title of the promotion, in HTML.
1068 &quot;link&quot;: &quot;A String&quot;, # The URL of the promotion.
1069 &quot;displayLink&quot;: &quot;A String&quot;, # An abridged version of this search&#x27;s result URL, e.g. www.example.com.
1070 &quot;bodyLines&quot;: [ # An array of block objects for this promotion. See [Google WebSearch
1071 # Protocol
1072 # reference](https://developers.google.com/custom-search/docs/xml_results)
1073 # for more information.
1074 { # Block object belonging to a promotion.
1075 &quot;title&quot;: &quot;A String&quot;, # The block object&#x27;s text, if it has text.
1076 &quot;htmlTitle&quot;: &quot;A String&quot;, # The block object&#x27;s text in HTML, if it has text.
1077 &quot;url&quot;: &quot;A String&quot;, # The URL of the block object&#x27;s link, if it has one.
1078 &quot;link&quot;: &quot;A String&quot;, # The anchor text of the block object&#x27;s link, if it has a link.
1079 },
1080 ],
1081 &quot;image&quot;: { # Image belonging to a promotion.
1082 &quot;source&quot;: &quot;A String&quot;, # URL of the image for this promotion link.
1083 &quot;height&quot;: 42, # Image height in pixels.
1084 &quot;width&quot;: 42, # Image width in pixels.
1085 },
1086 },
1087 ],
1088 &quot;searchInformation&quot;: { # Metadata about a search operation.
1089 &quot;totalResults&quot;: &quot;A String&quot;, # The total number of search results returned by the query.
1090 &quot;formattedTotalResults&quot;: &quot;A String&quot;, # The total number of search results, formatted according to locale style.
1091 &quot;formattedSearchTime&quot;: &quot;A String&quot;, # The time taken for the server to return search results, formatted
1092 # according to locale style.
1093 &quot;searchTime&quot;: 3.14, # The time taken for the server to return search results.
1094 },
1095 &quot;items&quot;: [ # The current set of custom search results.
1096 { # A custom search result.
1097 &quot;fileFormat&quot;: &quot;A String&quot;, # The file format of the search result.
1098 &quot;image&quot;: { # Image belonging to a custom search result.
1099 &quot;thumbnailWidth&quot;: 42, # The width of the thumbnail image, in pixels.
1100 &quot;width&quot;: 42, # The width of the image, in pixels.
1101 &quot;contextLink&quot;: &quot;A String&quot;, # A URL pointing to the webpage hosting the image.
1102 &quot;byteSize&quot;: 42, # The size of the image, in pixels.
1103 &quot;thumbnailHeight&quot;: 42, # The height of the thumbnail image, in pixels.
1104 &quot;height&quot;: 42, # The height of the image, in pixels.
1105 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A URL to the thumbnail image.
1106 },
1107 &quot;formattedUrl&quot;: &quot;A String&quot;, # The URL displayed after the snippet for each search result.
1108 &quot;mime&quot;: &quot;A String&quot;, # The MIME type of the search result.
1109 &quot;displayLink&quot;: &quot;A String&quot;, # An abridged version of this search result’s URL, e.g. www.example.com.
1110 &quot;cacheId&quot;: &quot;A String&quot;, # Indicates the ID of Google&#x27;s cached version of the search result.
1111 &quot;htmlTitle&quot;: &quot;A String&quot;, # The title of the search result, in HTML.
1112 &quot;snippet&quot;: &quot;A String&quot;, # The snippet of the search result, in plain text.
1113 &quot;labels&quot;: [ # Encapsulates all information about [refinement
1114 # labels](https://developers.google.com/custom-search/docs/xml_results).
1115 { # Refinement label associated with a custom search result.
1116 &quot;displayName&quot;: &quot;A String&quot;, # The display name of a refinement label. This is the name you should
1117 # display in your user interface.
1118 &quot;name&quot;: &quot;A String&quot;, # The name of a refinement label, which you can use to refine searches.
1119 # Don&#x27;t display this in your user interface; instead, use displayName.
1120 &quot;label_with_op&quot;: &quot;A String&quot;, # Refinement label and the associated refinement operation.
1121 },
1122 ],
1123 &quot;title&quot;: &quot;A String&quot;, # The title of the search result, in plain text.
1124 &quot;link&quot;: &quot;A String&quot;, # The full URL to which the search result is pointing, e.g.
1125 # http://www.example.com/foo/bar.
1126 &quot;htmlSnippet&quot;: &quot;A String&quot;, # The snippet of the search result, in HTML.
1127 &quot;htmlFormattedUrl&quot;: &quot;A String&quot;, # The HTML-formatted URL displayed after the snippet for each search result.
1128 &quot;kind&quot;: &quot;A String&quot;, # A unique identifier for the type of current object. For this API, it is
1129 # `customsearch#result.`
1130 &quot;pagemap&quot;: { # Contains
1131 # [PageMap](https://developers.google.com/custom-search/docs/structured_data#pagemaps)
1132 # information for this search result.
1133 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1134 },
1135 },
1136 ],
1137 &quot;spelling&quot;: { # Spell correction information for a query.
1138 &quot;correctedQuery&quot;: &quot;A String&quot;, # The corrected query.
1139 &quot;htmlCorrectedQuery&quot;: &quot;A String&quot;, # The corrected query, formatted in HTML.
1140 },
John Asmuth614db982014-04-24 15:46:26 -04001141 }</pre>
1142</div>
1143
1144</body></html>