闲社服务运行正常AI智能体自动化平台
l

获取本地POI详情

技能标识:local-pois

USE FOR getting local business/POI details. Requires POI IDs obtained from web-search (with result_filter=locations). Returns full business information including ratings, hours, contact info. Max 20 IDs.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

获取本地POI详情

本地兴趣点(搜索API)

通过 x402按次付费(HTTP 402)提供的付费本地兴趣点代理服务。

前置条件:此技能需要x402支付。首次使用前请完成设置步骤。
两步流程:此端点需要从先前的网络搜索中获取兴趣点ID。

  1. 1. 使用 result_filter=locations 调用 web-search,从 locations.results[].id 获取兴趣点ID
  2. 将这些ID传递给此端点以获取完整的商家详情

安全性:仅提供文档说明——不包含可执行代码或凭证。钱包/密钥保留在您的机器上;绝不在此存储。

服务URL

角色域名
API提供商https://www.cpbox.io
协调方
https://www.cppay.finance |

端点(代理接口)

http
GET /api/x402/local-pois

支付流程(x402协议)

  1. 1. 首次请求 -> 返回 402 Payment Required 及需求JSON
  2. 签名并重试 附带 PAYMENT-SIGNATURE -> 返回结果JSON

使用 @springmint/x402-payment 或 x402-sdk-go 时,支付为自动完成。

快速开始(cURL)

获取兴趣点详情

bash curl -s https://www.cpbox.io/api/x402/local-pois \ -H Accept: application/json \ -H Accept-Encoding: gzip \ -G \ --data-urlencode ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA=

多个兴趣点及位置头信息

bash curl -s https://www.cpbox.io/api/x402/local-pois \ -H Accept: application/json \ -H Accept-Encoding: gzip \ -H X-Loc-Lat: 37.7749 \ -H X-Loc-Long: -122.4194 \ -G \ --data-urlencode ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA= \ --data-urlencode ids=loc4HTAVTJKP4RBEBZCEMBI3NG26YD4II4PATIHPDYI= \ --data-urlencode units=imperial

注意:兴趣点ID是网络搜索返回的 locations.results[].id 中的不透明字符串。ID是临时的,约8小时后过期。上述示例ID仅供说明——请通过 web-search 并使用 result_filter=locations 获取最新ID。由于ID可能包含 =,请使用 --data-urlencode。

兴趣点ID缓存与失效

方面策略
TTL兴趣点ID自颁发起约8小时内有效。
失效
ID无法刷新或延长。过期后,使用 web-search 并设置 result_filter=locations 获取新ID。 | | 缓存 | 您可以在本地缓存兴趣点详情(营业时间、评分等)用于展示;但不要将ID缓存超过8小时以用于 local-pois 或 local-descriptions。 | | 过期ID | 使用过期ID的请求将返回空结果或错误结果。请重新运行网络搜索以获取新ID。 |

配合x402-payment使用

bash
npx @springmint/x402-payment \
--url https://www.cpbox.io/api/x402/local-pois?ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA%3D \
--method GET

参数

参数类型必填默认值描述
idsstring[]是—来自网络搜索结果的兴趣点ID(1-20个)
search_lang
string | 否 | en | 语言偏好(2个以上字符的语言代码) | | ui_lang | string | 否 | en-US | 界面语言(区域代码,如en-US) | | units | string | 否 | null | metric(公里)或 imperial(英里) |

位置头信息(可选)

用于计算与用户位置的距离:

头信息类型范围描述
X-Loc-Latfloat-90.0 至 90.0用户纬度
X-Loc-Long
float | -180.0 至 180.0 | 用户经度 |

响应字段

响应包含 type: local_pois 和一个 LocationResult 对象的 results 数组:

字段类型描述
titlestring商家/兴趣点名称
url
string | 该位置的规范URL |
| provider_url | string | 提供商页面URL |
| type | string | 始终为 location_result |
| id | string | 兴趣点标识符(不透明字符串,约8小时有效) |
| description | string? | 简短描述 |
| postal_address.type | string | 始终为 PostalAddress |
| postal_address.displayAddress | string | 格式化显示地址 |
| postal_address.streetAddress | string? | 街道地址 |
| postal_address.addressLocality | string? | 城市 |
| postal_address.addressRegion | string? | 州/地区 |
| postal_address.postalCode | string? | 邮政编码 |
| postal_address.country | string? | 国家代码 |
| contact.telephone | string? | 电话号码 |
| contact.email | string? | 电子邮件地址 |
| rating.ratingValue | float? | 平均评分(≥0) |
| rating.bestRating | float? | 最高可能评分 |
| rating.reviewCount | int? | 评论数量 |
| rating.profile.name | string? | 评分提供商名称 |
| rating.profile.url | string? | 评分提供商URL |
| openinghours.currentday | object[]? | 今日营业时间(abbrname、fullname、opens、closes) |
| opening_hours.days | object[][]? | 一周中每天的营业时间(相同结构) |
| coordinates | [float, float]? | [纬度, 经度] 元组 |
| distance.value | float? | 与用户位置的距离 |
| distance.units | string? | 距离单位(km 或 miles) |
| categories | string[] | 商家类别(默认 []) |
| price_range | string? | 价格指示($、$$、$$$、$$$$) |
| serves_cuisine | string[]? | 菜系类型(餐厅) |
| thumbnail.src | string? | 缩略图URL |
| thumbnail.original | string? | 原始图片URL |
| profiles | object[]? | 外部资料(name、url、long_name、img) |
| reviews.reviewsinforeign_language | bool | 是否有外语评论可用 |
| pictures.results | object[]? | 照片缩略图 |
| action | object? | 要执行的操作——包含 type(string)和 url(string) |
| results | object[]? | 相关网络结果(包含 meta_url 的 LocationWebResult) |
| timezone | string? | IANA时区(如 America/Los_Angeles) |
| timezone_offset | int? | UTC时区偏移量 |

示例响应

json
{
type: local_pois,
results: [
{
type: location_result,
title: 公园地中海烧烤,
url: https://yelp.com/biz/park-mediterranean-grill-sf,
provider_url: https://yelp.com/biz/park-mediterranean-grill-sf,
id:

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cpbox-local-pois-1776124179 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cpbox-local-pois-1776124179 技能

通过命令行安装

skillhub install cpbox-local-pois-1776124179

下载

⬇ 下载 local-pois v1.0.0(免费)

文件大小: 3.94 KB | 发布时间: 2026-4-14 12:06

v1.0.0 最新 2026-4-14 12:06
Initial
publish
返回顶部