---
description: >-
  Google Search. Given a search query, return the searched results including
  title, link, and content of each item.
---

# Google Search

## Try it in the Widget Center

Click this [url](https://app.myshell.ai/robot-workshop/widget/1781993973191249920) to try this widget and copy the Pro Config template.

## Usage

By default, this widget will use a crawler to get the content inside each searched link. However, if the `follow_links` is unset, it will return the links of the searched items only.

**Input Parameters**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>query</td><td><code>string</code></td><td>The search query string that specifies what the search should be about.</td><td></td><td>true</td></tr><tr><td>num_results</td><td><code>integer</code></td><td>The number of search results to return.</td><td>10</td><td>false</td></tr><tr><td>length_per_result</td><td><code>integer</code></td><td>the maximum token of each search result text.</td><td>300</td><td>false</td></tr><tr><td>follow_links</td><td><code>boolean</code></td><td>A flag indicating whether to follow links within the search results for more detailed information.</td><td>True</td><td>false</td></tr></tbody></table>

**Output Parameters**

| Name            | Type    | Description                                                                             | File Type |
| --------------- | ------- | --------------------------------------------------------------------------------------- | --------- |
| search\_results | `array` | The result of google search, containing the links, titles, and other useful information |           |

**Output Example**

{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
  "search_results": [
    {
      "content": "# Genshin Impact – Step Into a Vast Magical World of Adventure\n## Link\nhttps://genshin.hoyoverse.com/\n## Content\nGenshin Impact – Step Into a Vast Magical World of Adventure...",
      "link": "https://genshin.hoyoverse.com/",
      "title": "Genshin Impact – Step Into a Vast Magical World of Adventure"
    },
    {
      "content": "# Genshin Impact\n## Link\nhttps://www.youtube.com/c/GenshinImpact\n## Content\nAboutPressCopyrightContact usCreatorsAdvertiseDevelopersTermsPrivacyPolicy \u0026 SafetyHow YouTube worksTest new featuresNFL Sunday Ticket© 2024 Google LLCGenshin Impact - YouTube...",
      "link": "https://www.youtube.com/c/GenshinImpact",
      "title": "Genshin Impact"
    },
    {
      "content": "# Genshin Impact\n## Link\nhttps://en.wikipedia.org/wiki/Genshin_Impact\n## Content\nGenshin Impact - Wikipedia Jump to content From Wikipedia, the free encyclopedia 2020 action role-playing game 2020 video gameGenshin ImpactDeveloper(s)miHoYoPublisher(s)WW: HoYoverseCHN: miHoYoProducer(s)Cai Haoyu[1]Composer(s)Yu-Peng ChenDimeng YuanQian DingYijun JiangXin ZhaoArcangelo ChenPeijia YouEngineUnityPlatform(s)AndroidiOSPlayStation 4WindowsPlayStation 5ReleaseAndroid, iOS, PlayStation 4, WindowsSeptember 28, 2020PlayStation 5April 28, 2021Genre(s)Action role-playingMode(s)Single-player, multiplayer Genshin Impact [a] is an action role-playing game developed by miHoYo, published by miHoYo in mainland China and worldwide by Cognosphere, d/b/a HoYoverse. It was released for Android, iOS, PlayStation 4, and Windows in 2020, and on PlayStation 5 in 2021. The game features an anime-style open-world environment and an action-based battle system using elemental magic and character-switching. A free-to-play game monetized through gacha game mechanics, Genshin Impact is expanded regularly through patches using the games as a service model. Genshin Impact takes place in the fantasy world of Teyvat, home to seven nations, each of which is tied to a different element...",
      "link": "https://en.wikipedia.org/wiki/Genshin_Impact",
      "title": "Genshin Impact"
    },
    {
      "content": "# Genshin Impact Wiki | Fandom\n## Link\nhttps://genshin-impact.fandom.com/wiki/Genshin_Impact\n## Content\nGenshin Impact | Genshin Impact Wiki | Fandom Genshin Impact Wiki Don't have an account? Register Sign In Advertisement Sign In Register in: Terminology, HoYoverse, Genshin Impact English Deutsch Español Français Bahasa Indonesia Italiano 日本語 한국어 Polski Português do Brasil Русский ไทย Türkçe Українська Tiếng Việt 中文 Genshin Impact View source View history Talk (0) OverviewBackground Further information: Genshin Impact on Wikipedia Genshin Impact (Chinese: 原神 Yuánshén) is a free-to-play action role-playing game developed and published by miHoYo Co., Ltd. Outside of China, the publisher is miHoYo's subsidiary Cognosphere Pte., Ltd. d/b/a HoYoverse. The game features a fantasy open-world environment and action based combat system using elemental magic, character switching, and a gacha monetization system for players to obtain new characters, weapons, and other resources. The game can only be played with an internet connection and features a limited multiplayer mode allowing up to four players in a world. Contents 1 Gameplay 2 Story 2.1 Setting 2.2 Plot 2.3 Characters 3 Development and Release 4 System Requirements 5 Videos 5.1 Trailers 5.2 Promotional ...",
      "link": "https://genshin-impact.fandom.com/wiki/Genshin_Impact",
      "title": "Genshin Impact Wiki | Fandom"
    },
    {
      "content": null,
      "link": "https://store.epicgames.com/en-US/p/genshin-impact",
      "title": "Genshin Impact | Download and Play for Free"
    },
    {
      "content": "# Genshin Impact - V4.5 on the App Store\n## Link\nhttps://apps.apple.com/us/app/genshin-impact-v4-5/id1517783697\n## Content\nâGenshin Impact - V4.5 on the AppÂ Store Screenshots Description Step into Teyvat, a vast world teeming with life and flowing with elemental energy.You and your sibling arrived here from another world. Separated by an unknown god, stripped of your powers, and cast into a deep slumber, you now awake to a world very different from when you first arrived.Thus begins your journey across Teyvat to seek answers from The Seven â the gods of each element. Along the way, prepare to explore every inch of this wondrous world, join forces with a diverse range of characters, and unravel the countless mysteries that Teyvat holds...MASSIVE OPEN WORLDClimb any mountain, swim across any river, and glide over the world below, taking in the jaw-dropping scenery each step of the way. And if you stop to investigate a wandering Seelie or strange mechanism, who knows what you might discover?ELEMENTAL COMBAT SYSTEMHarness the seven elements to unleash elemental reactions. Anemo, Electro, Hydro, Pyro, Cryo, Dendro, and Geo interact in all sorts of ways, and Vision wielders have the power to turn this to their advantage.Will you vaporize Hydro with Pyro, electro-charge it with Electro, or freeze it with Cryo? Your mastery of the elements will give you the upper hand in battle and exploration.BEAUTIFUL VISUALS...",
      "link": "https://apps.apple.com/us/app/genshin-impact-v4-5/id1517783697",
      "title": "Genshin Impact - V4.5 on the App Store"
    }
  ]
}
```
{% endcode %}
{% endtab %}
{% endtabs %}

