/install google-maps-search-api
Google Maps Search Automation Skill
✨ Platform Compatibility
✅ Works Powerfully & Reliably On All Major AI Assistants
| Platform | Status | How to Install |
|---|---|---|
| OpenCode | ✅ Fully Supported | Copy skill folder to ~/.opencode/skills/ |
| Claude Code | ✅ Fully Supported | Native skill support |
| Cursor | ✅ Fully Supported | Copy to ~/.cursor/skills/ |
| OpenClaw | ✅ Fully Supported | Compatible |
Why Choose BrowserAct Skills?
- 🚀 Stable & crash-free execution
- ⚡ Fast response times
- 🔧 No configuration headaches
- 📦 Plug & play installation
- 💬 Professional support
📖 Introduction
This skill provides a one-stop business data collection service through the BrowserAct Google Maps Search API template. Obtain structured business data with just one command.
🔑 API Key Guidance
Before running, check the BROWSERACT_API_KEY environment variable. If it is not set, do not take further action; instead, request and wait for the user to provide it.
The Agent must inform the user:
"Since you haven't configured the BrowserAct API Key, please go to the BrowserAct Console to get your Key and provide it to me in this chat."
🛠️ Input Parameters Details
The Agent should flexibly configure the following parameters when calling the script based on user needs:
-
KeyWords (Search Keywords)
- Type:
string - Description: The keywords the user wants to search for on Google Maps.
- Example:
coffee,bakery,coworking space
- Type:
-
language (UI Language)
- Type:
string - Description: Sets the UI language and the language of the returned text.
- Optional Values:
en,de,fr,it,es,ja,zh-CN,zh-TW - Default:
en
- Type:
-
country (Country/Region Bias)
- Type:
string - Description: Sets the country or region bias for search results.
- Example:
us,gb,ca,au,de,fr,es,it,jp - Default:
us
- Type:
-
max_dates (Maximum extraction limit)
- Type:
number - Description: The maximum number of places to extract from search results.
- Default:
100
- Type:
🚀 Execution Method (Recommended)
The Agent should implement "one command for results" by executing the following independent script:
# Call example
python ./scripts/google_maps_search_api.py "KeyWords" "language" "country" max_dates
📊 Data Output Description
After successful execution, the script will directly parse and print the results from the API response. Results include:
name: Business namefull address: Business addressrating: Average star ratingreview count: Number of reviewsprice range: Price levelcuisine type: Business categoryamenity tags: Features like Wi-Fi, outdoor seatingreview snippet: Highlighted short reviewservice options: Such as "Order online", "Dine-in"
⚠️ Error Handling & Retry
During script execution, if an error occurs (such as network fluctuations or task failure), the Agent should follow this logic:
-
Check output content:
- If the output contains
"Invalid authorization", the API Key is invalid or expired. Do not retry; instead, guide the user to check and provide the correct API Key. - If the output does not contain
"Invalid authorization"but the task execution fails (e.g., output starts withError:or returns an empty result), the Agent should automatically attempt to re-execute the script once.
- If the output contains
-
Retry Limit:
- Automatic retry is limited to once. If the second attempt still fails, stop retrying and report the specific error message to the user.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install google-maps-search-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/google-maps-search-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Google Maps Search Api 是什么?
This skill is designed to help users automatically extract business data from Google Maps search results. When a user asks to "find coffee shops in New York," "search for dental clinics," or "extract business leads from Google Maps," the agent should proactively apply this skill. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2023 次。
如何安装 Google Maps Search Api?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-maps-search-api」即可一键安装,无需额外配置。
Google Maps Search Api 是免费的吗?
是的,Google Maps Search Api 完全免费(开源免费),可自由下载、安装和使用。
Google Maps Search Api 支持哪些平台?
Google Maps Search Api 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Maps Search Api?
由 Henk Nie(@phheng)开发并维护,当前版本 v0.1.0。