search by browserbase/skills
npx skills add https://github.com/browserbase/skills --skill search搜索网络并返回结构化结果 —— 无需浏览器会话。
从以下地址获取您的 API 密钥:https://browserbase.com/settings
export BROWSERBASE_API_KEY="your_api_key"
| 使用场景 | Search API | Browser Skill |
|---|---|---|
| 查找某个主题的 URL | 是 | 杀鸡用牛刀 |
| 获取页面标题和元数据 | 是 | 杀鸡用牛刀 |
| 读取完整页面内容 | 否 | 是 |
| JavaScript 渲染的页面 | 否 | 是 |
| 表单交互 | 否 | 是 |
| 速度 | 快 | 较慢 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
经验法则:使用搜索来查找相关的 URL 和元数据。当您需要访问页面并与之交互时,使用浏览器技能。使用 Fetch 来获取无需 JavaScript 渲染的页面内容。
curl -X POST "https://api.browserbase.com/v1/search" \
-H "Content-Type: application/json" \
-H "X-BB-API-Key: $BROWSERBASE_API_KEY" \
-d '{"query": "browserbase web automation"}'
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
query | string | 必填 | 搜索查询 |
numResults | integer (1-25) | 10 | 要返回的结果数量 |
返回包含以下内容的 JSON:
| 字段 | 类型 | 描述 |
|---|---|---|
requestId | string | 搜索请求的唯一标识符 |
query | string | 已执行的搜索查询 |
results | array | 搜索结果对象列表 |
每个结果对象包含:
| 字段 | 类型 | 描述 |
|---|---|---|
id | string | 结果的唯一标识符 |
url | string | 结果的 URL |
title | string | 结果的标题 |
author | string? | 内容作者(如果可用) |
publishedDate | string? | 发布日期(如果可用) |
image | string? | 图片 URL(如果可用) |
favicon | string? | 网站图标 URL(如果可用) |
注意:
@browserbasehq/sdk目前还没有搜索方法。请使用 cURL 或直接进行 HTTP 调用。
curl -X POST "https://api.browserbase.com/v1/search" \
-H "Content-Type: application/json" \
-H "X-BB-API-Key: $BROWSERBASE_API_KEY" \
-d '{"query": "web scraping best practices", "numResults": 5}'
| 状态码 | 含义 |
|---|---|
| 400 | 请求正文无效(检查查询和参数) |
| 403 | API 密钥无效或缺失 |
| 429 | 超出速率限制(稍后重试) |
| 500 | 内部服务器错误(稍后重试) |
numResults有关详细示例,请参阅 EXAMPLES.md。有关 API 参考,请参阅 REFERENCE.md。
每周安装量
101
代码仓库
GitHub 星标数
460
首次出现
7 天前
安全审计
安装于
amp99
gemini-cli99
codex99
kimi-cli99
cursor99
opencode99
Search the web and return structured results — no browser session required.
Get your API key from: https://browserbase.com/settings
export BROWSERBASE_API_KEY="your_api_key"
| Use Case | Search API | Browser Skill |
|---|---|---|
| Find URLs for a topic | Yes | Overkill |
| Get page titles and metadata | Yes | Overkill |
| Read full page content | No | Yes |
| JavaScript-rendered pages | No | Yes |
| Form interactions | No | Yes |
| Speed | Fast | Slower |
Rule of thumb : Use Search to find relevant URLs and metadata. Use the Browser skill when you need to visit and interact with the pages. Use Fetch to retrieve page content without JavaScript rendering.
curl -X POST "https://api.browserbase.com/v1/search" \
-H "Content-Type: application/json" \
-H "X-BB-API-Key: $BROWSERBASE_API_KEY" \
-d '{"query": "browserbase web automation"}'
| Field | Type | Default | Description |
|---|---|---|---|
query | string | required | The search query |
numResults | integer (1-25) | 10 | Number of results to return |
Returns JSON with:
| Field | Type | Description |
|---|---|---|
requestId | string | Unique identifier for the search request |
query | string | The search query that was executed |
results | array | List of search result objects |
Each result object contains:
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the result |
url | string | URL of the result |
title | string | Title of the result |
author | string? | Author of the content (if available) |
publishedDate | string? | Publication date (if available) |
Note: The
@browserbasehq/sdkdoes not have a search method yet. Use cURL or direct HTTP calls.
curl -X POST "https://api.browserbase.com/v1/search" \
-H "Content-Type: application/json" \
-H "X-BB-API-Key: $BROWSERBASE_API_KEY" \
-d '{"query": "web scraping best practices", "numResults": 5}'
| Status | Meaning |
|---|---|
| 400 | Invalid request body (check query and parameters) |
| 403 | Invalid or missing API key |
| 429 | Rate limit exceeded (retry later) |
| 500 | Internal server error (retry later) |
numResults when you only need a few top resultsFor detailed examples, see EXAMPLES.md. For API reference, see REFERENCE.md.
Weekly Installs
101
Repository
GitHub Stars
460
First Seen
7 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
amp99
gemini-cli99
codex99
kimi-cli99
cursor99
opencode99
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
44,900 周安装
阿里云通义翻译AnyTrans API管理技能 - 快速调用SDK与OpenAPI Explorer指南
289 周安装
UI/UX原型提示词生成器 - 为AI和开发者创建结构化设计规范
294 周安装
抖音视频自动发布工具 - 基于Playwright的自动化脚本,支持定时发布
300 周安装
e2e-tests-studio:基于Playwright的端到端行为测试框架,专注验证产品功能而非UI状态
314 周安装
Claude Code技能更新器 - 管理、更新和发现AI助手技能的工具
298 周安装
Svelte Runes 指南:Svelte 5 响应式符文详解与迁移教程
299 周安装
image | string? | Image URL (if available) |
favicon | string? | Favicon URL (if available) |