> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Search Google

- Component: `appmixer.cloro.core.FindGoogleResults`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.cloro 1.0.0](https://connectors.appmixer.com/connector/appmixer.cloro/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.cloro/1.0.0/component/appmixer.cloro.core.FindGoogleResults>

Run a live Google search with cloro and return the organic results of the first results page, at most about 10 results.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Query (`query`) | text | The search query to run on Google. |
| Country (`country`) | text | 2-letter ISO 3166-1 country code for the location of the request, for example `US` or `DE`. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/cloro/core/FindGoogleResults?outPort=out&ignoreAuth=true`.

### Port `notFound`

| Field | Type | Description |
| --- | --- | --- |
| Query (`query`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.cloro.core.FindGoogleResults",
  "label": "Search Google",
  "description": "Run a live Google search with cloro and return the organic results of the first results page, at most about 10 results.",
  "author": "cloro <info@cloro.dev>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:cloro"
  },
  "quota": {
    "manager": "appmixer:cloro",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          }
        },
        "required": [
          "query"
        ]
      },
      "inspector": {
        "inputs": {
          "query": {
            "type": "text",
            "index": 1,
            "label": "Query",
            "tooltip": "The search query to run on Google."
          },
          "country": {
            "type": "text",
            "index": 2,
            "label": "Country",
            "defaultValue": "US",
            "tooltip": "2-letter ISO 3166-1 country code for the location of the request, for example <code>US</code> or <code>DE</code>."
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 3,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file.",
            "options": [
              {
                "label": "First Item Only",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "Store to CSV file",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/cloro/core/FindGoogleResults?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/query": "dummy"
          }
        }
      }
    },
    {
      "name": "notFound",
      "schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "title": "Query",
            "example": "best running shoes"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
