sunjingji

博查搜索

Knowledgev1.0.0
By sunjingjiUpdated 2026-05-11bocha-search@clawhub_sunjingji/bocha-search
Information Retrieval

According to AlphaMoat, as of 2026-09, 博查搜索 has 3,543 downloads and 0 stars — ranked #3,099 of 5,078 AI skills overall, and #283 of 442 in Knowledge.

Installs
101
Downloads
3.5K
Stars
-
Overall Rank
#3,099
Top 62% overall · Top 65% in Knowledge
PlatformInstallsDownloadsStarsComments
ClawHub ↗1013.4K--
SkillHub ↗993.5K-—

Platforms count differently and update at different times.

What this skill does

It supports optional summaries and freshness filters and requires a Bocha API key. Search queries are sent to an external service; do not include secrets or internal information that should not be disclosed. Results and availability depend on the API response, account balance, and rate limits, so verify source pages and freshness.

Profile published 2026-10-29

What you can do with it

  • Search the web by query and receive structured results.
  • Optionally request summaries or filter by freshness.
  • Diagnose parameter, API-key, balance, or rate-limit errors from the response.

When to use it

  • When retrieving Bocha web-search results from the command line.
  • When filtering by time range or requesting page summaries.
  • When queries contain sensitive information, an API key is used, or results inform important decisions, when external disclosure and original-source verification need review.

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Describe Bocha Search inputs, filters, and structured output fields.
Design a query workflow that avoids exposing secrets and verifies the sources of search results.

Monthly Trend

Downloads3.5K
1.5K2.6K3.7K2026-03 · Downloads 1.7K2026-05 · Downloads 2.4K2026-06 · Downloads 2.6K2026-07 · Downloads 3.1K2026-08 · Downloads 3.3K2026-09 · Downloads 3.5K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.5K—-
2026-083.3K+8.7%-
2026-073.1K+16.1%-
2026-062.6K+8.5%-
2026-052.4K—-
2026-031.7K—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.0 KB · ClawHub v1.0.0
---
name: bocha-search
description: 博查搜索 API 插件,从全网搜索网页信息,结果准确、摘要完整,适合 AI 使用。
version: 1.0.0
author: Jowin
---

# 博查搜索 (Bocha Search)

基于博查 AI 搜索 API 的网页搜索插件,返回结构化的搜索结果,适合大模型使用。
Show all (140 lines)

## 功能特点

- 🔍 全网搜索,结果准确
- 📝 可选返回网页摘要 (summary)
- ⏰ 支持时间范围过滤
- 🌐 Response 格式兼容 Bing Search API

## 配置

### 方式一:配置文件 (推荐)

编辑 `config.json`:
```json
{
  "apiKey": "sk-your-api-key"
}
```

### 方式二:环境变量

```bash
export BOCHA_API_KEY="sk-your-api-key"
```

> API Key 获取:https://open.bochaai.com → API KEY 管理

## 使用方法

```bash
node scripts/search.js <query> [options]
```

### 参数说明

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `<query>` | string | ✅ | 搜索关键词 |
| `--count <n>` | number | ❌ | 返回结果数量,范围 1-50,默认 10 |
| `--freshness <v>` | string | ❌ | 时间范围过滤,默认 noLimit |
| `--summary` | flag | ❌ | 是否返回网页摘要 |

### freshness 取值说明

| 值 | 说明 |
|------|------|
| `noLimit` | 不限时间 (默认,推荐) |
| `oneDay` | 一天内 |
| `oneWeek` | 一周内 |
| `oneMonth` | 一个月内 |
| `oneYear` | 一年内 |
| `YYYY-MM-DD..YYYY-MM-DD` | 自定义日期范围,如 `2025-01-01..2025-04-06` |
| `YYYY-MM-DD` | 指定日期,如 `2025-04-06` |

> ⚠️ 推荐使用 `noLimit`,搜索算法会自动优化时间范围。指定时间范围可能导致无结果。

## 示例

### 基本搜索
```bash
node scripts/search.js "沪电股份"
```

### 限制数量
```bash
node scripts/search.js "人工智能" --count 5
```

### 带摘要
```bash
node scripts/search.js "DeepSeek" --summary
```

### 限定时间范围
```bash
node scripts/search.js "AI新闻" --freshness oneWeek --count 10
```

### 组合使用
```bash
node scripts/search.js "阿里巴巴ESG报告" --count 5 --freshness oneMonth --summary
```

## 输出格式

### 成功响应
```json
{
  "type": "search",
  "query": "搜索词",
  "totalResults": 12345,
  "resultCount": 10,
  "results": [
    {
      "index": 1,
      "title": "网页标题",
      "url": "https://example.com/page",
      "description": "网页内容的简短描述",
      "summary": "网页内容的详细摘要 (需 --summary)",
      "siteName": "网站名称",
      "publishedDate": "2025-01-01T12:00:00+08:00"
    }
  ]
}
```

### 错误响应
```json
{
  "type": "error",
  "code": "401",
  "message": "Invalid API KEY",
  "log_id": "xxxx"
}
```

### 常见错误码

| 错误码 | 说明 | 处理方式 |
|--------|------|----------|
| 400 | 参数缺失 | 检查 query 参数 |
| 401 | API Key 无效 | 检查 config.json 或环境变量 |
| 403 | 余额不足 | 前往 open.bochaai.com 充值 |
| 429 | 请求频率限制 | 稍后重试 |

## API 文档

- 博查开放平台:https://open.bochaai.com
- API 文档:https://bocha-ai.feishu.cn/wiki/RXEOw02rFiwzGSkd9mUcqoeAnNK

Popular in Knowledge

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.