local-descriptions by brave/brave-search-skills
npx skills add https://github.com/brave/brave-search-skills --skill local-descriptions需要 API 密钥:在 https://api.search.brave.com 获取
套餐:包含在 搜索 套餐中。参见 https://api-dashboard.search.brave.com/app/subscriptions/subscribe
两步流程:此端点需要先前网络搜索获取的 POI ID。
- 调用
web-search并设置result_filter=locations,从locations.results[].id获取 POI ID- 将这些 ID 传递给此端点以获取 AI 生成的描述
curl -s "https://api.search.brave.com/res/v1/local/descriptions?ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA%3D" \
-H "Accept: application/json" \
-H "Accept-Encoding: gzip" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
curl -s "https://api.search.brave.com/res/v1/local/descriptions" \
-H "Accept: application/json" \
-H "Accept-Encoding: gzip" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
-G \
--data-urlencode "ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA=" \
--data-urlencode "ids=loc4HTAVTJKP4RBEBZCEMBI3NG26YD4II4PATIHPDYI="
注意:POI ID 是网络搜索 locations.results[].id 返回的不透明字符串。它们大约有效 8 小时。上面的示例 ID 仅用于说明——请通过 web-search 并设置 result_filter=locations 来获取新的 ID。
GET https://api.search.brave.com/res/v1/local/descriptions
认证:X-Subscription-Token: <API_KEY> 请求头
| 参数 | 类型 | 必需 | 默认值 | 描述 |
|---|---|---|---|---|
ids | string[] | 是 | — | 来自网络搜索 locations.results[].id 的 POI ID(1-20 个,可重复:?ids=a&ids=b) |
| 字段 | 类型 | 描述 |
|---|---|---|
type | string | 始终为 "local_descriptions" |
results | array | 描述对象列表(条目可能为 null) |
results[].type | string | 始终为 "local_description" |
results[].id | string | 与请求匹配的 POI 标识符 |
results[].description | string? | AI 生成的 Markdown 描述,如果不可用则为 null |
{
"type": "local_descriptions",
"results": [
{
"type": "local_description",
"id": "loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA=",
"description": "### 概述\n一家以其**手工咖啡**而闻名的舒适邻里咖啡馆..."
}
]
}
POI ID 来自 Web Search API (web-search),并设置 result_filter=locations:
# 1. 搜索本地商家
curl -s "https://api.search.brave.com/res/v1/web/search?q=restaurants+san+francisco&result_filter=locations" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
# 2. 从 locations.results[].id 提取 POI ID
# 3. 将这些 ID 与 local/pois 和 local/descriptions 一起使用
local-pois 结合使用,获取结构化数据(营业时间、评分)和叙述性描述### 标题、项目符号列表、粗体 /斜体——始终格式化为 Markdowndescription 可能为 null每周安装量
74
代码仓库
GitHub 星标数
81
首次出现
2026年2月14日
安全审计
安装于
codex69
gemini-cli68
github-copilot68
kimi-cli67
cursor67
opencode67
Requires API Key : Get one at https://api.search.brave.com
Plan : Included in the Search plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe
Two-step flow : This endpoint requires POI IDs from a prior web search.
- Call
web-searchwithresult_filter=locationsto get POI IDs fromlocations.results[].id- Pass those IDs to this endpoint to get AI-generated descriptions
curl -s "https://api.search.brave.com/res/v1/local/descriptions?ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA%3D" \
-H "Accept: application/json" \
-H "Accept-Encoding: gzip" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
curl -s "https://api.search.brave.com/res/v1/local/descriptions" \
-H "Accept: application/json" \
-H "Accept-Encoding: gzip" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
-G \
--data-urlencode "ids=loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA=" \
--data-urlencode "ids=loc4HTAVTJKP4RBEBZCEMBI3NG26YD4II4PATIHPDYI="
Note : POI IDs are opaque strings returned in web search locations.results[].id. They are valid for approximately 8 hours. The example IDs above are for illustration — fetch fresh IDs via web-search with result_filter=locations.
GET https://api.search.brave.com/res/v1/local/descriptions
Authentication : X-Subscription-Token: <API_KEY> header
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ids | string[] | Yes | — | POI IDs from web search locations.results[].id (1-20, repeated: ?ids=a&ids=b) |
| Field | Type | Description |
|---|---|---|
type | string | Always "local_descriptions" |
results | array | List of description objects (entries may be null) |
results[].type | string | Always "local_description" |
results[].id |
{
"type": "local_descriptions",
"results": [
{
"type": "local_description",
"id": "loc4CQWMJWLD4VBEBZ62XQLJTGK6YCJEEJDNAAAAAAA=",
"description": "### Overview\nA cozy neighborhood cafe known for its **artisanal coffee**..."
}
]
}
POI IDs come from the Web Search API (web-search) with result_filter=locations:
# 1. Search for local businesses
curl -s "https://api.search.brave.com/res/v1/web/search?q=restaurants+san+francisco&result_filter=locations" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
# 2. Extract POI IDs from locations.results[].id
# 3. Use those IDs with local/pois and local/descriptions
local-pois to get both structured data (hours, ratings) and narrative descriptions### headings, bullet lists, bold /italics — always formatted as markdowndescription may be nullWeekly Installs
74
Repository
GitHub Stars
81
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex69
gemini-cli68
github-copilot68
kimi-cli67
cursor67
opencode67
超能力技能使用指南:AI助手技能调用优先级与工作流程详解
52,100 周安装
| string |
| POI identifier matching the request |
results[].description | string? | AI-generated markdown description, or null if unavailable |