Metadata-Version: 2.5
Name: lfx-acedatacloud-google-search
Version: 0.1.7
Summary: Google Search by Ace Data Cloud: search for Langflow
Project-URL: Homepage, https://platform.acedata.cloud?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen
Project-URL: Documentation, https://github.com/AceDataCloud/LangflowAceDataCloud/blob/main/guides/google-search.md
Project-URL: Repository, https://github.com/AceDataCloud/LangflowAceDataCloud
Author-email: Ace Data Cloud <dev@acedata.cloud>
License-Expression: MIT
License-File: LICENSE
Keywords: acedatacloud,google-search,langflow,lfx
Requires-Python: <3.15,>=3.10
Requires-Dist: httpx<1,>=0.24
Requires-Dist: lfx<2,>=1.12.5
Description-Content-Type: text/markdown

# Google Search by Ace Data Cloud for Langflow

The Google Search bundle adds one node for web, image, news, map, place and video search.

## Install

Build from the [complete source checkout](https://github.com/AceDataCloud/LangflowAceDataCloud/tree/main/packages/google-search) using Langflow's Python environment, then restart Langflow.

```bash
python -m pip install ./packages/google-search
lfx extension list
```

Find **Google Search by Ace Data Cloud** in Components. The wheel includes a credential-free flow at `lfx_acedatacloud_google_search/examples/google_search.json`. The same service is also available in the [aggregate bundle](https://github.com/AceDataCloud/LangflowAceDataCloud). The two bundles have distinct component IDs and can coexist.

## Connect your application API key

If your account has no General application yet, choose **Initialize General Application** in the Applications console first.

1. Copy your key from the [Applications console](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen), or create one under **Manage Keys**. If the key uses **Allowed APIs**, allow `/serp/google`.
2. In Langflow, open **Settings → Global Variables → Add New**. Create a **Credential** named `ACEDATACLOUD_API_KEY` and save the raw token. Bind the node's **Ace Data Cloud API key** to that Credential.

## Run a search

Enter a **Search query** and choose a **Search type**. The example requests three web results on page one. Set **Country** and **Language** to localize results. In **Additional route parameters**, you can add `image_size` for image search or `range` for web and news search.

Each run sends one `POST /serp/google` request and returns results synchronously as Langflow Data. Web results are under `result.organic`. The response fields for other search types vary by type. Check [current pricing](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) before running and refer to [Usage History](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) for usage.

[简体中文](https://github.com/AceDataCloud/LangflowAceDataCloud/blob/main/guides/google-search_zh_CN.md)
