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