Install
openclaw skills install @upkuajing/upkuajing-map-merchants-search-zh依托 Google‑Maps 商业数据库挖掘海外本地企业、线下门店和服务商。可按照所在区域、行业分类、商家评分筛选精准目标客户,助力外贸销售团队完成海外市场布局和线下渠道获客。
openclaw skills install @upkuajing/upkuajing-map-merchants-search-zh使用跨境魔方开放平台API查询商户信息。本技能提供基于地图的商户搜索,支持两种搜索模式:区域搜索和附近搜索。
本技能通过以下方式访问跨境魔方的地图商户数据库:
merchants_search.py):按关键词和地理位置搜索商户geography_list.py):获取国家/州省/城市列表用于构建位置参数python --versionpip install -r requirements.txt脚本目录:scripts/*.py
运行示例:python scripts/*.py
重要:始终使用直接脚本调用,如 python scripts/merchants_search.py。不要使用 shell 复合命令如 cd scripts && python merchants_search.py。
merchants_search.py)按关键词和地理区域搜索商户。
参数:见 商户搜索API
两种搜索模式:
geoDistance 按经纬度坐标和半径搜索示例:
# 国家搜索 - 查找巴西的餐厅
python scripts/merchants_search.py \
--params '{"keywords":["restaurant"],"countryCodes":["BR"]}' \
--query_count 100
# 多国家搜索并筛选有电话的 - 查找美国或中国有电话的餐厅
python scripts/merchants_search.py \
--params '{"keywords":["restaurant"],"countryCodes":["US","CN"],"existPhone":true}' \
--query_count 50
# 行业筛选 - 查找泰国的汽车经销商
python scripts/merchants_search.py \
--params '{"keywords":["car dealer"],"countryCodes":["TH"],"industries":["Cars"]}' \
--query_count 100
# 附近搜索 - 查找某点5公里范围内的酒店
python scripts/merchants_search.py \
--params '{"keywords":["hotel"],"geoDistance":{"location":{"lat":31.1104643,"lon":29.7602221},"distance":"5km"}}'
# 省份/城市筛选 - 查找特定省份/城市的餐厅
python scripts/merchants_search.py \
--params '{"keywords":["restaurant"],"provinceIds":["2277"],"cityIds":["19975"]}' \
--query_count 50
# 店铺名称筛选 - 按名称查找店铺
python scripts/merchants_search.py \
--params '{"companyNames":["car care"],"countryCodes":["TH"]}' \
--query_count 100
# 多条件组合搜索 - 组合多个筛选条件
python scripts/merchants_search.py \
--params '{"keywords":["restaurant"],"countryCodes":["US"],"provinceIds":["1447"],"industries":["Cars"],"existPhone":true}' \
--query_count 50
任务恢复:使用 --task_id 恢复中断的大规模查询:
python scripts/merchants_search.py --task_id 'your-task-id-here' --query_count 2000
geography_list.py)获取地理层级数据用于构建搜索参数。
示例:
# 获取国家列表
python scripts/geography_list.py --type country
# 获取某个国家的州省列表
python scripts/geography_list.py --type province --country_id 1
# 获取某个国家的城市列表
python scripts/geography_list.py --type city --country_id 1
~/.upkuajing/.env 文件中,变量名为 UPKUAJING_API_KEY首先检查 ~/.upkuajing/.env 文件中是否有 UPKUAJING_API_KEY;
如果 UPKUAJING_API_KEY 未设置,提示用户选择:
当API返回余额不足时,解释并引导用户充值:
auth.py --new_rec_order)获取UPKUAJING_API_KEY对应账户信息的脚本:auth.py --account_info
商户搜索API调用收费,不同接口计费方式不同。
最新价格:用户可访问 详细价格说明
或者使用:python scripts/auth.py --price_info(返回接口完整定价)
按调用次数计费,每次返回最多100条记录:
ceil(query_count / 100) 次免费使用 — 国家/省/市列表查询不收取任何费用。
任何产生费用的操作必须先告知用户并等待明确确认,不得在通知的同一消息中执行。
| 用户意图 | 使用API |
|---|---|
| "按国家/区域查找商户" | 商户搜索 (countryCodes) |
| "按省份/城市查找商户" | 商户搜索 (provinceIds, cityIds) |
| "在某个位置附近查找商户" | 商户搜索 (geoDistance) |
| "按行业或联系方式筛选" | 商户搜索 (industries, existPhone, existWebsite) |
| "按店铺名称查找" | 商户搜索 (companyNames) |
| "获取国家/州省/城市数据" | 地理列表 |
~/.upkuajing/.env 文件中的 UPKUAJING_API_KEY理解用户意图:
查看API文档:
countryCodes 配合关键词geoDistance 配合位置和距离existPhone=true 或 existWebsite=true 按联系方式可用性筛选industries 按商业类型筛选provinceIds 和 cityIds 按特定省份或城市筛选companyNames 按店铺名称筛选python scripts/auth.py --price_info 获取准确定价信息其他您可能会用到的跨境魔方技能: