google-maps-search-api-skill
它能做什么
该技能从 Google Maps 搜索列表中提取结构化的商家数据。适用于需要本地商家名单用于获取线索、研究或跟踪竞争对手的人员。
适用场景
- ✓当你需要某个城市的咖啡店或诊所名单时。
- ✓当你想跟踪某个区域内竞争对手的位置时。
- ✓当你需要从 Google Maps 列表中收集商业线索时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/lead-generation/google-maps-search-api-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出丹佛市中心附近所有的牙医,包括他们的地址和网站。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能将你的关键词、语言和国家筛选条件发送给 BrowserAct 模板。模板读取 Google Maps 搜索结果,并返回整洁的商家数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Maps Search Automation Skill
📖 Introduction
This skill utilizes the BrowserAct Google Maps Search API template to provide a one-stop business data collection service. It extracts structured business results directly from Google Maps search lists. Simply provide search keywords, language, and country filters to get clean, usable business data.
✨ Features
- No Hallucinations: Pre-set workflows avoid AI generative hallucinations, ensuring stable and precise data extraction.
- No Captcha Issues: No need to handle reCAPTCHA or other verification challenges.
- No IP Restrictions: No need to handle regional IP restrictions or geofencing.
- Faster Execution: Tasks execute faster compared to pure AI-driven browser automation solutions.
- Cost-Effective: Significantly lowers data acquisition costs compared to high-token-consuming AI solutions.
🔑 API Key Setup
Before running, check the BROWSERACT_API_KEY environment variable. If not set, do not take other measures; ask and wait for the user to provide it.
Agent must inform the user:
"Since you haven't configured the BrowserAct API Key, please visit the BrowserAct Console to get your Key."
🛠️ Input Parameters
When calling the script, the Agent should flexibly configure the following parameters based on user needs:
KeyWords
- Type:
string - Description: The content you want to search on Google Maps. Can be business names, categories, or specific keywords.
- Example:
coffee shop,dental clinic,coworking space
- Type:
language
- Type:
string - Description: Sets the UI language and the language of returned text fields.
- Common Values:
en,de,fr,it,es,ja,zh-CN,zh-TW - Default:
en
- Type:
country
- Type:
string - Description: Sets the country or region bias for search results.
- Example:
us,gb,ca,au,de,fr,jp - Default:
us
- Type:
max_dates
- Type:
number - Description: The maximum number of places to extract from the search results list.
- Default:
100
- Type:
🚀 Usage
The Agent should execute the following independent script to achieve "one-line command result":
# Example call
python -u ./scripts/google_maps_search_api.py "search keywords" "language" "country" count
⏳ Execution Monitoring
Since this task involves automated browser operations, it may take some time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running).
Agent Instructions:
- While waiting for the script result, keep monitoring the terminal output.
- As long as the terminal is outputting new status logs, the task is running normally; do not mistake it for a deadlock or unresponsiveness.
- Only if the status remains unchanged for a long time or the script stops outputting without returning a result should you consider triggering the retry mechanism.
📊 Data Output
After successful execution, the script parses and prints results directly from the API response. Fields include:
name: Business namefull address: Full addressrating: Star ratingreview count: Number of reviewsprice range: Price levelcuisine type: Business categoryamenity tags: Features like Wi-Fireview snippet: Short review textservice options: Service indicators (e.g., "Order online")
⚠️ Error Handling & Retry
If an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:
Check Output Content:
- If the output contains
"Invalid authorization", it means the API Key is invalid or expired. Do not retry; guide the user to re-check and provide the correct API Key. - If the output does not contain
"Invalid authorization"but the task failed (e.g., output starts withError:or returns empty results), the Agent should automatically try to re-execute the script once.
- If the output contains
Retry Limit:
- Automatic retry is limited to one time. If the second attempt fails, stop retrying and report the specific error information to the user.
🌟 Typical Use Cases
- Local Business Discovery: Find all "Italian restaurants" in Manhattan.
- Sales Lead Generation: Extract a list of "real estate agencies" in London for prospecting.
- Competitor Mapping
常见问题
我可以使用哪些筛选条件?
你可以设置搜索关键词、语言和国家。
我需要特殊密钥吗?
需要。你需要在 BROWSERACT_API_KEY 设置中配置 BrowserAct API 密钥。
这和 Google Maps 联系方式技能一样吗?
这个技能侧重于搜索结果列表,而联系方式技能还会访问每家商家的网站以获取电子邮件。
详情
作者的原始描述
This skill is designed to help users automatically extract business data from Google Maps search results. The Agent should proactively apply this skill when the user makes the following requests searching for coffee shops in a specific city, finding dentists or medical clinics nearby, tracking competitors' locations in a certain area, extracting business leads from Google Maps lists, gathering restaurant data for market research, finding hotels or accommodation options in a region, locating specific services like coworking spaces or gyms, monitoring new business openings in a neighborhood, col
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14287
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。