# Google Search

###

To establish a connection to Google Search provide a CustomSearchId and APIKey.

### Creating a Custom Search Engine

To start searching websites through the provider, follow the steps below:

1. Sign into the Google Custom Search Engine site.
2. Click New Search Engine and add a site to focus the search on.
3. Click Edit Seach Engine, select your search engine in the menu, and then click Setup.
4. In the Details section, click Search Engine Id to retrieve the search engine Id used as the CustomSearchId in the connection string.
5. In the Sites to Search section, you can additionally select the Search the Entire Web but Emphasize Included Sites option in the menu.

### Getting the API Key

To authenticate requests to the Custom Search API, follow the steps below:

1. Log into the Google API console and select a project.
2. In the side bar under APIs & Services, click Library and then select the Custom Search API. Click Enable.
3. In the side bar, click APIs & Services -> Credentials.
4. Click Create Credentials -> API Key.
5. Select the API Key to restrict the key to your platform.

You can now search the Web using the Google Custom Search engine.

&#x20;

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/system-settings/data-sources/connection-settings/search/googlesearch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
