web-search by brave/brave-search-skills
npx skills add https://github.com/brave/brave-search-skills --skill web-search需要 API 密钥:在 https://api.search.brave.com 获取
套餐:包含在 搜索 套餐中。参见 https://api-dashboard.search.brave.com/app/subscriptions/subscribe
curl -s "https://api.search.brave.com/res/v1/web/search?q=python+web+frameworks" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
curl -s "https://api.search.brave.com/res/v1/web/search" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
-G \
--data-urlencode "q=rust programming tutorials" \
--data-urlencode "country=US" \
--data-urlencode "search_lang=en" \
--data-urlencode "count=10" \
--data-urlencode "safesearch=moderate" \
--data-urlencode "freshness=pm"
GET https://api.search.brave.com/res/v1/web/search
POST https://api.search.brave.com/res/v1/web/search
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
注意:同时支持 GET 和 POST 方法。POST 方法适用于长查询或复杂的 Goggles。
认证:X-Subscription-Token: <API_KEY> 请求头
可选请求头:
Accept-Encoding: gzip — 启用 gzip 压缩| 功能 | 网络搜索(本功能) | LLM 上下文 (llm-context) | 答案 (answers) |
|---|---|---|---|
| 输出 | 结构化结果(链接、摘要、元数据) | 为 LLM 预提取的页面内容 | 带引用的端到端 AI 答案 |
| 结果类型 | 网页、新闻、视频、讨论、FAQ、信息框、地点、富媒体 | 提取的文本块、表格、代码 | 综合答案 + 来源列表 |
| 独特功能 | Goggles、结构化数据 (schemas)、富媒体回调 | 令牌预算控制、阈值模式 | 多轮次搜索、流式传输、兼容 OpenAI SDK |
| 速度 | 快(约 0.5-1 秒) | 快(<1 秒) | 较慢(约 30-180 秒) |
| 最佳适用场景 | 搜索界面、数据提取、自定义排名 | RAG 管道、AI 智能体、事实依据 | 聊天界面、深入研究 |
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
q | string | 是 | - | 搜索查询(1-400 个字符,最多 50 个单词) |
country | string | 否 | US | 搜索国家(2 字母国家代码或 ALL) |
search_lang | string | 否 | en | 语言偏好(2+ 字符语言代码) |
ui_lang | string | 否 | en-US | 界面语言(例如 "en-US") |
count | int | 否 | 20 | 每页最大结果数(1-20) |
offset | int | 否 | 0 | 分页偏移量(0-9) |
safesearch | string | 否 | moderate | 成人内容过滤器(off/moderate/strict) |
freshness | string | 否 | - | 时间过滤器(pd/pw/pm/py 或日期范围) |
text_decorations | bool | 否 | true | 包含高亮标记 |
spellcheck | bool | 否 | true | 自动纠正查询 |
result_filter | string | 否 | - | 过滤结果类型(逗号分隔) |
goggles | string | 否 | - | 自定义排名过滤器(URL 或内联) |
extra_snippets | bool | 否 | - | 每个结果获取最多 5 个额外摘要 |
operators | bool | 否 | true | 应用搜索运算符 |
units | string | 否 | - | 度量单位(metric/imperial) |
enable_rich_callback | bool | 否 | false | 启用富媒体第三方数据回调 |
include_fetch_metadata | bool | 否 | false | 在结果中包含 fetched_content_timestamp |
| 值 | 描述 |
|---|---|
pd | 过去一天(24 小时) |
pw | 过去一周(7 天) |
pm | 过去一个月(31 天) |
py | 过去一年(365 天) |
YYYY-MM-DDtoYYYY-MM-DD | 自定义日期范围 |
过滤器类型:discussions, faq, infobox, news, query, videos, web, locations
# 仅网页和视频结果
curl "...&result_filter=web,videos"
对于基于位置的结果,添加这些请求头。当坐标已知时,经纬度就足够了 — 其他请求头仅在坐标不可用时作为备用。
| 请求头 | 类型 | 描述 |
|---|---|---|
X-Loc-Lat | float | 用户纬度(-90.0 至 90.0) |
X-Loc-Long | float | 用户经度(-180.0 至 180.0) |
X-Loc-Timezone | string | IANA 时区(例如 "America/San_Francisco") |
X-Loc-City | string | 城市名称 |
X-Loc-State | string | 州/地区代码(ISO 3166-2) |
X-Loc-State-Name | string | 州/地区全名(例如 "California") |
X-Loc-Country | string | 2 字母国家代码 |
X-Loc-Postal-Code | string | 邮政编码(例如 "94105") |
优先级:
X-Loc-Lat+X-Loc-Long优先。当提供时,下游服务直接从坐标解析位置,基于文本的请求头(城市、州、国家、邮政编码)不用于位置解析。仅当您没有坐标时才提供基于文本的请求头。同时发送两者不会导致错误 — 只是经纬度优先。
| 字段 | 类型 | 描述 |
|---|---|---|
type | string | 始终为 "search" |
query.original | string | 原始搜索查询 |
query.altered | string? | 拼写检查纠正后的查询(如果更改) |
query.cleaned | string? | 清理/规范化后的查询 |
query.spellcheck_off | bool? | 拼写检查是否被禁用 |
query.more_results_available | bool | 是否存在更多页面 |
query.show_strict_warning | bool? | 如果严格安全搜索屏蔽了成人结果则为 true |
query.search_operators | object? | 应用的搜索运算符(applied, cleaned_query, sites) |
web.type | string | 始终为 "search" |
web.results[].title | string | 页面标题 |
web.results[].url | string | 页面 URL |
web.results[].description | string? | 摘要/描述文本 |
web.results[].age | string? | 人类可读的发布时间(例如 "2 天前") |
web.results[].language | string? | 内容语言代码 |
web.results[].meta_url | object | URL 组件(scheme, netloc, hostname, path) |
web.results[].thumbnail | object? | 缩略图(src, original) |
web.results[].thumbnail.original | string? | 原始全尺寸图片 URL |
web.results[].thumbnail.logo | bool? | 缩略图是否为徽标 |
web.results[].profile | object? | 发布者身份(name, url, long_name, img) |
web.results[].page_age | string? | 发布的 ISO 日期时间(例如 "2025-04-12T14:22:41") |
web.results[].extra_snippets | list[str]? | 最多 5 个额外摘录 |
web.results[].deep_results | object? | 来自页面的额外链接(buttons, links) |
web.results[].schemas | list? | 原始 schema.org 结构化数据 |
web.results[].product | object? | 产品信息和评论 |
web.results[].recipe | object? | 食谱详情(成分、时间、评分) |
web.results[].article | object? | 文章元数据(作者、发布者、日期) |
web.results[].book | object? | 书籍信息(作者、ISBN、评分) |
web.results[].software | object? | 软件产品信息 |
web.results[].rating | object? | 聚合评分 |
web.results[].faq | object? | 在页面上找到的 FAQ |
web.results[].movie | object? | 电影信息(导演、演员、类型) |
web.results[].video | object? | 视频元数据(时长、观看次数、创作者) |
web.results[].location | object? | 地点/餐厅详情 |
web.results[].qa | object? | 问答信息 |
web.results[].creative_work | object? | 创意作品数据 |
web.results[].music_recording | object? | 音乐/歌曲数据 |
web.results[].organization | object? | 组织信息 |
web.results[].review | object? | 评论数据 |
web.results[].content_type | string? | 内容类型分类 |
web.results[].fetched_content_timestamp | int? | 获取时间戳(使用 include_fetch_metadata=true 时) |
web.mutated_by_goggles | bool | 结果是否被 Goggles 重新排名 |
web.family_friendly | bool | 结果是否适合家庭 |
mixed | object? | 首选显示顺序(见下方混合响应) |
discussions.results[] | array? | 论坛讨论集群 |
discussions.results[].data.forum_name | string? | 论坛/社区名称 |
discussions.results[].data.num_answers | int? | 答案/回复数量 |
discussions.results[].data.question | string? | 讨论问题 |
discussions.results[].data.top_comment | string? | 最高票评论摘录 |
faq.results[] | array? | FAQ 条目 |
news.results[] | array? | 新闻文章 |
videos.results[] | array? | 视频结果 |
infobox.results[] | array? | 知识图谱条目 |
locations.results[] | array? | 本地 POI 结果 |
rich.hint.vertical | string? | 富媒体结果类型 |
rich.hint.callback_key | string? | 富媒体数据的回调键 |
{
"type": "search",
"query": {
"original": "python frameworks",
"altered": "python web frameworks",
"spellcheck_off": false,
"more_results_available": true
},
"web": {
"type": "search",
"results": [
{
"title": "Top Python Web Frameworks",
"url": "https://example.com/python-frameworks",
"description": "A comprehensive guide to Python web frameworks...",
"age": "2 days ago",
"language": "en",
"meta_url": {
"scheme": "https",
"netloc": "example.com",
"hostname": "example.com",
"path": "/python-frameworks"
},
"thumbnail": {
"src": "https://...",
"original": "https://original-image-url.com/img.jpg"
},
"extra_snippets": ["Additional excerpt 1...", "Additional excerpt 2..."]
}
],
"family_friendly": true
},
"mixed": {
"type": "mixed",
"main": [
{"type": "web", "index": 0, "all": false},
{"type": "web", "index": 1, "all": false},
{"type": "videos", "all": true}
],
"top": [],
"side": []
},
"videos": { "...": "..." },
"news": { "...": "..." },
"rich": {
"type": "rich",
"hint": {
"vertical": "weather",
"callback_key": "<callback_key_hex>"
}
}
}
mixed 对象定义了跨类型结果的优选显示顺序。它包含三个数组:
| 数组 | 用途 |
|---|---|
main | 主要结果列表(要显示的结果的有序序列) |
top | 显示在主要结果上方的结果 |
side | 显示在主要结果旁边的结果(例如信息框) |
每个条目都是一个 ResultReference,包含 type(例如 "web", "videos")、index(指向相应的结果数组)和 all(true 表示在此位置包含该类型的所有结果)。
| 运算符 | 语法 | 描述 |
|---|---|---|
| 站点 | site:example.com | 将结果限制在特定域名 |
| 文件扩展名 | ext:pdf | 具有特定文件扩展名的结果 |
| 文件类型 | filetype:pdf | 以特定文件类型创建的结果 |
| 标题内 | intitle:python | 标题中包含术语的页面 |
| 正文内 | inbody:tutorial | 正文中包含术语的页面 |
| 页面内 | inpage:guide | 标题或正文中包含术语的页面 |
| 语言 | lang:es | 特定语言的页面(ISO 639-1) |
| 位置 | loc:us | 来自特定国家的页面(ISO 3166-1 alpha-2) |
| 包含 | +term | 强制包含术语 |
| 排除 | -term | 排除包含术语的页面 |
| 精确匹配 | "exact phrase" | 按顺序匹配精确短语 |
| AND | term1 AND term2 | 两个术语都必须出现(大写) |
| OR / NOT | term1 OR term2, NOT term | 逻辑运算符(大写) |
设置 operators=false 以禁用运算符解析。
Goggles 允许您重新排名搜索结果 — 提升可信来源、抑制 SEO 垃圾信息或构建聚焦的搜索范围。
| 方法 | 示例 |
|---|---|
| 托管 | --data-urlencode "goggles=https://raw.githubusercontent.com/brave/goggles-quickstart/main/goggles/rust_programming.goggle" |
| 内联 | --data-urlencode 'goggles=$discard\n$site=example.com' |
托管的 goggles 必须托管在 GitHub/GitLab 上,包含
! name:、! description:、! author:头部,并在 https://search.brave.com/goggles/create 注册。内联规则无需注册。
语法:$boost=N / $downrank=N (1–10)、$discard、$site=example.com。用逗号组合:$site=example.com,boost=3。用 \n (%0A) 分隔规则。
允许列表:$discard\n$site=docs.python.org\n$site=developer.mozilla.org — 阻止列表:$discard,site=pinterest.com\n$discard,site=quora.com
对于天气、股票、体育、货币等查询,使用富媒体回调工作流:
# 1. 启用富媒体回调进行搜索
curl -s "https://api.search.brave.com/res/v1/web/search?q=weather+san+francisco&enable_rich_callback=true" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
# 响应包含:"rich": {"hint": {"callback_key": "abc123...", "vertical": "weather"}}
# 2. 使用回调键获取富媒体数据
curl -s "https://api.search.brave.com/res/v1/web/rich?callback_key=abc123..." \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
支持的富媒体类型:计算器、定义、单位转换、Unix 时间戳、包裹追踪、股票、货币、加密货币、天气、美式橄榄球、棒球、篮球、板球、足球/英式足球、冰球、Web3、翻译器
GET https://api.search.brave.com/res/v1/web/rich
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
callback_key | string | 是 | 来自网络搜索 rich.hint.callback_key 字段的回调键 |
llm-context。schemas 和结果上的类型化字段获取产品、食谱、评分、文章。offset (0-9) 和 count 来翻页查看结果每周安装量
434
代码仓库
GitHub 星标数
71
首次出现
2026年2月13日
安全审计
已安装于
codex425
gemini-cli422
opencode422
github-copilot421
kimi-cli419
amp418
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
curl -s "https://api.search.brave.com/res/v1/web/search?q=python+web+frameworks" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
curl -s "https://api.search.brave.com/res/v1/web/search" \
-H "Accept: application/json" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
-G \
--data-urlencode "q=rust programming tutorials" \
--data-urlencode "country=US" \
--data-urlencode "search_lang=en" \
--data-urlencode "count=10" \
--data-urlencode "safesearch=moderate" \
--data-urlencode "freshness=pm"
GET https://api.search.brave.com/res/v1/web/search
POST https://api.search.brave.com/res/v1/web/search
Note : Both GET and POST methods are supported. POST is useful for long queries or complex Goggles.
Authentication : X-Subscription-Token: <API_KEY> header
Optional Headers :
Accept-Encoding: gzip — Enable gzip compression| Feature | Web Search (this) | LLM Context (llm-context) | Answers (answers) |
|---|---|---|---|
| Output | Structured results (links, snippets, metadata) | Pre-extracted page content for LLMs | End-to-end AI answers with citations |
| Result types | Web, news, videos, discussions, FAQ, infobox, locations, rich | Extracted text chunks, tables, code | Synthesized answer + source list |
| Unique features | Goggles, structured data (schemas), rich callbacks | Token budget control, threshold modes | Multi-iteration search, streaming, OpenAI SDK compatible |
| Speed | Fast (~0.5-1s) | Fast (<1s) | Slower (~30-180s) |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | - | Search query (1-400 chars, max 50 words) |
country | string | No | US | Search country (2-letter country code or ALL) |
search_lang | string | No |
| Value | Description |
|---|---|
pd | Past day (24 hours) |
pw | Past week (7 days) |
pm | Past month (31 days) |
py | Past year (365 days) |
YYYY-MM-DDtoYYYY-MM-DD | Custom date range |
Filter types: discussions, faq, infobox, news, query, videos, web, locations
# Only web and video results
curl "...&result_filter=web,videos"
For location-aware results, add these headers. Lat/Long is sufficient when coordinates are known — the other headers are only needed as a fallback when coordinates are unavailable.
| Header | Type | Description |
|---|---|---|
X-Loc-Lat | float | User latitude (-90.0 to 90.0) |
X-Loc-Long | float | User longitude (-180.0 to 180.0) |
X-Loc-Timezone | string | IANA timezone (e.g., "America/San_Francisco") |
X-Loc-City | string | City name |
X-Loc-State | string | State/region code (ISO 3166-2) |
Priority :
X-Loc-Lat+X-Loc-Longtake precedence. When provided, downstream services resolve the location directly from coordinates and the text-based headers (City, State, Country, Postal-Code) are not used for location resolution. Provide text-based headers only when you don't have coordinates. Sending both won't break anything — lat/long simply wins.
| Field | Type | Description |
|---|---|---|
type | string | Always "search" |
query.original | string | The original search query |
query.altered | string? | Spellcheck-corrected query (if changed) |
query.cleaned | string? | Cleaned/normalized query |
query.spellcheck_off |
{
"type": "search",
"query": {
"original": "python frameworks",
"altered": "python web frameworks",
"spellcheck_off": false,
"more_results_available": true
},
"web": {
"type": "search",
"results": [
{
"title": "Top Python Web Frameworks",
"url": "https://example.com/python-frameworks",
"description": "A comprehensive guide to Python web frameworks...",
"age": "2 days ago",
"language": "en",
"meta_url": {
"scheme": "https",
"netloc": "example.com",
"hostname": "example.com",
"path": "/python-frameworks"
},
"thumbnail": {
"src": "https://...",
"original": "https://original-image-url.com/img.jpg"
},
"extra_snippets": ["Additional excerpt 1...", "Additional excerpt 2..."]
}
],
"family_friendly": true
},
"mixed": {
"type": "mixed",
"main": [
{"type": "web", "index": 0, "all": false},
{"type": "web", "index": 1, "all": false},
{"type": "videos", "all": true}
],
"top": [],
"side": []
},
"videos": { "...": "..." },
"news": { "...": "..." },
"rich": {
"type": "rich",
"hint": {
"vertical": "weather",
"callback_key": "<callback_key_hex>"
}
}
}
The mixed object defines the preferred display order of results across types. It contains three arrays:
| Array | Purpose |
|---|---|
main | Primary result list (ordered sequence of results to display) |
top | Results to display above main results |
side | Results to display alongside main results (e.g., infobox) |
Each entry is a ResultReference with type (e.g., "web", "videos"), index (into the corresponding result array), and all (true to include all results of that type at this position).
| Operator | Syntax | Description |
|---|---|---|
| Site | site:example.com | Limit results to a specific domain |
| File extension | ext:pdf | Results with a specific file extension |
| File type | filetype:pdf | Results created in a specific file type |
| In title | intitle:python | Pages with term in the title |
| In body | inbody:tutorial |
Set operators=false to disable operator parsing.
Goggles let you re-rank search results — boost trusted sources, suppress SEO spam, or build focused search scopes.
| Method | Example |
|---|---|
| Hosted | --data-urlencode "goggles=https://raw.githubusercontent.com/brave/goggles-quickstart/main/goggles/rust_programming.goggle" |
| Inline | --data-urlencode 'goggles=$discard\n$site=example.com' |
Hosted goggles must be on GitHub/GitLab, include
! name:,! description:,! author:headers, and be registered at https://search.brave.com/goggles/create. Inline rules need no registration.
Syntax : $boost=N / $downrank=N (1–10), $discard, $site=example.com. Combine with commas: $site=example.com,boost=3. Separate rules with \n (%0A).
Allow list : $discard\n$site=docs.python.org\n$site=developer.mozilla.org — Block list : $discard,site=pinterest.com\n$discard,site=quora.com
Resources : Discover · Syntax · Quickstart
For queries about weather, stocks, sports, currency, etc., use the rich callback workflow:
# 1. Search with rich callback enabled
curl -s "https://api.search.brave.com/res/v1/web/search?q=weather+san+francisco&enable_rich_callback=true" \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
# Response includes: "rich": {"hint": {"callback_key": "abc123...", "vertical": "weather"}}
# 2. Get rich data with the callback key
curl -s "https://api.search.brave.com/res/v1/web/rich?callback_key=abc123..." \
-H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"
Supported Rich Types : Calculator, Definitions, Unit Conversion, Unix Timestamp, Package Tracker, Stock, Currency, Cryptocurrency, Weather, American Football, Baseball, Basketball, Cricket, Football/Soccer, Ice Hockey, Web3, Translator
GET https://api.search.brave.com/res/v1/web/rich
| Parameter | Type | Required | Description |
|---|---|---|---|
callback_key | string | Yes | Callback key from the web search rich.hint.callback_key field |
llm-context.schemas and typed fields on results.offset (0-9) with count to page through resultsWeekly Installs
434
Repository
GitHub Stars
71
First Seen
Feb 13, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex425
gemini-cli422
opencode422
github-copilot421
kimi-cli419
amp418
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
| Best for | Search UIs, data extraction, custom ranking | RAG pipelines, AI agents, grounding | Chat interfaces, thorough research |
en |
| Language preference (2+ char language code) |
ui_lang | string | No | en-US | UI language (e.g., "en-US") |
count | int | No | 20 | Max results per page (1-20) |
offset | int | No | 0 | Page offset for pagination (0-9) |
safesearch | string | No | moderate | Adult content filter (off/moderate/strict) |
freshness | string | No | - | Time filter (pd/pw/pm/py or date range) |
text_decorations | bool | No | true | Include highlight markers |
spellcheck | bool | No | true | Auto-correct query |
result_filter | string | No | - | Filter result types (comma-separated) |
goggles | string | No | - | Custom ranking filter (URL or inline) |
extra_snippets | bool | No | - | Get up to 5 extra snippets per result |
operators | bool | No | true | Apply search operators |
units | string | No | - | Measurement units (metric/imperial) |
enable_rich_callback | bool | No | false | Enable rich 3rd party data callback |
include_fetch_metadata | bool | No | false | Include fetched_content_timestamp on results |
X-Loc-State-Name | string | State/region full name (e.g., "California") |
X-Loc-Country | string | 2-letter country code |
X-Loc-Postal-Code | string | Postal code (e.g., "94105") |
| bool? |
| Whether spellcheck was disabled |
query.more_results_available | bool | Whether more pages exist |
query.show_strict_warning | bool? | True if strict safesearch blocked adult results |
query.search_operators | object? | Applied search operators (applied, cleaned_query, sites) |
web.type | string | Always "search" |
web.results[].title | string | Page title |
web.results[].url | string | Page URL |
web.results[].description | string? | Snippet/description text |
web.results[].age | string? | Human-readable age (e.g., "2 days ago") |
web.results[].language | string? | Content language code |
web.results[].meta_url | object | URL components (scheme, netloc, hostname, path) |
web.results[].thumbnail | object? | Thumbnail (src, original) |
web.results[].thumbnail.original | string? | Original full-size image URL |
web.results[].thumbnail.logo | bool? | Whether the thumbnail is a logo |
web.results[].profile | object? | Publisher identity (name, url, long_name, img) |
web.results[].page_age | string? | ISO datetime of publication (e.g., "2025-04-12T14:22:41") |
web.results[].extra_snippets | list[str]? | Up to 5 additional excerpts |
web.results[].deep_results | object? | Additional links (buttons, links) from the page |
web.results[].schemas | list? | Raw schema.org structured data |
web.results[].product | object? | Product info and reviews |
web.results[].recipe | object? | Recipe details (ingredients, time, ratings) |
web.results[].article | object? | Article metadata (author, publisher, date) |
web.results[].book | object? | Book info (author, ISBN, rating) |
web.results[].software | object? | Software product info |
web.results[].rating | object? | Aggregate ratings |
web.results[].faq | object? | FAQ found on the page |
web.results[].movie | object? | Movie info (directors, actors, genre) |
web.results[].video | object? | Video metadata (duration, views, creator) |
web.results[].location | object? | Location/restaurant details |
web.results[].qa | object? | Question/answer info |
web.results[].creative_work | object? | Creative work data |
web.results[].music_recording | object? | Music/song data |
web.results[].organization | object? | Organization info |
web.results[].review | object? | Review data |
web.results[].content_type | string? | Content type classification |
web.results[].fetched_content_timestamp | int? | Fetch timestamp (with include_fetch_metadata=true) |
web.mutated_by_goggles | bool | Whether results were re-ranked by Goggles |
web.family_friendly | bool | Whether results are family-friendly |
mixed | object? | Preferred display order (see Mixed Response below) |
discussions.results[] | array? | Forum discussion clusters |
discussions.results[].data.forum_name | string? | Forum/community name |
discussions.results[].data.num_answers | int? | Number of answers/replies |
discussions.results[].data.question | string? | Discussion question |
discussions.results[].data.top_comment | string? | Top-voted comment excerpt |
faq.results[] | array? | FAQ entries |
news.results[] | array? | News articles |
videos.results[] | array? | Video results |
infobox.results[] | array? | Knowledge graph entries |
locations.results[] | array? | Local POI results |
rich.hint.vertical | string? | Rich result type |
rich.hint.callback_key | string? | Callback key for rich data |
| Pages with term in the body |
| In page | inpage:guide | Pages with term in title or body |
| Language | lang:es | Pages in a specific language (ISO 639-1) |
| Location | loc:us | Pages from a specific country (ISO 3166-1 alpha-2) |
| Include | +term | Force inclusion of a term |
| Exclude | -term | Exclude pages containing the term |
| Exact match | "exact phrase" | Match the exact phrase in order |
| AND | term1 AND term2 | Both terms required (uppercase) |
| OR / NOT | term1 OR term2, NOT term | Logical operators (uppercase) |