{"skill":{"slug":"find-news","displayName":"查找资料","summary":"多引擎搜索 API 工具，支持通用网页搜索和新闻搜索。 使用场景： - 用户要求搜索网页、新闻、社交媒体内容 - 需要从 Google/Baidu/Bing/Yahoo/DuckDuckGo 搜索 - 需要搜索微信公众号、YouTube、GitHub、Reddit、Bilibili - 需要获取搜索结果的完整内容...","description":"---\nname: find-news\ndescription: |\n  多引擎搜索 API 工具，支持通用网页搜索和新闻搜索。\n  使用场景：\n  - 用户要求搜索网页、新闻、社交媒体内容\n  - 需要从 Google/Baidu/Bing/Yahoo/DuckDuckGo 搜索\n  - 需要搜索微信公众号、YouTube、GitHub、Reddit、Bilibili\n  - 需要获取搜索结果的完整内容（crawl_results > 0）\n  - 需要最新新闻和热点追踪\n---\n\n# Find News 技能\n\n## 概述\n\n这个技能提供多引擎搜索能力，通过调用官方 API 实现快速搜索。**开箱即用，跨平台支持（Windows/Mac/Linux）**。\n\n## API 接口\n\n### 搜索接口\n\n**端点**: `POST http://36.151.144.35:3001/api/v1/search`\n\n**认证**: `Bearer sk_test_a6f84bf78896f10b2d28aebd7857744c`\n\n**请求参数**:\n\n- `query` (string, 必需): 搜索关键词\n- `search_service` (string, 必需): 搜索服务名称\n  - `baidu`: 百度搜索\n  - `google`: Google 搜索\n  - `bing`: Bing 搜索\n  - `duckduckgo`: DuckDuckGo\n  - `yahoo`: Yahoo 搜索\n  - `wechat`: 微信公众号\n  - `youtube`: YouTube\n  - `github`: GitHub\n  - `reddit`: Reddit\n  - `bilibili`: 哔哩哔哩\n- `max_results` (number, 可选): 返回结果数量 (1-20, 默认 3)\n- `crawl_results` (number, 可选): 爬取完整内容的结果数 (0-10, 默认 0)\n  - `0`: 只返回搜索摘要（快速）\n  - `1-10`: 爬取完整页面内容（慢，成本高）\n\n**请求示例**:\n\n```json\n{\n  \"query\": \"人工智能\",\n  \"search_service\": \"baidu\",\n  \"max_results\": 5,\n  \"crawl_results\": 0\n}\n```\n\n**响应示例**:\n\n```json\n{\n  \"results\": [\n    {\n      \"title\": \"搜索结果标题\",\n      \"url\": \"https://example.com\",\n      \"snippet\": \"搜索结果摘要...\",\n      \"content\": \"完整内容（仅当 crawl_results > 0 时）\"\n    }\n  ],\n  \"total\": 5,\n  \"cached\": false\n}\n```\n\n### 新闻接口\n\n**端点**: `POST http://36.151.144.35:3001/api/v1/news`\n\n**认证**: `Bearer sk_test_a6f84bf78896f10b2d28aebd7857744c`\n\n**请求参数**:\n\n- `query` (string, 必需): 搜索关键词\n- `search_service` (string, 可选): 新闻服务名称\n  - `google` (默认): Google News\n  - `bing`: Bing News\n  - `duckduckgo`: DuckDuckGo News\n  - `yahoo`: Yahoo News\n- `max_results` (number, 可选): 返回结果数量 (1-20, 默认 3)\n- `crawl_results` (number, 可选): 爬取完整内容的结果数 (0-10, 默认 0)\n\n**请求示例**:\n\n```json\n{\n  \"query\": \"科技新闻\",\n  \"search_service\": \"google\",\n  \"max_results\": 10,\n  \"crawl_results\": 0\n}\n```\n\n## 使用场景\n\n### 场景 1: 快速获取搜索摘要（默认，推荐）\n\n**用户**: \"帮我搜索一下最新的 AI 新闻\"\n\n**Agent 操作**: 发送 POST 请求到新闻接口\n\n```json\n{\n  \"query\": \"AI\",\n  \"search_service\": \"google\",\n  \"max_results\": 5,\n  \"crawl_results\": 0\n}\n```\n\n→ 返回 5 条新闻标题和摘要（**快速，0.5秒，每条 10 积分**）\n\n### 场景 2: 深度内容抓取（仅在必要时使用）\n\n**用户**: \"我需要这篇文章的完整内容\"\n\n**Agent 操作**: 发送 POST 请求到搜索接口\n\n```json\n{\n  \"query\": \"文章标题\",\n  \"search_service\": \"baidu\",\n  \"max_results\": 1,\n  \"crawl_results\": 1\n}\n```\n\n→ 返回完整页面内容（**慢，10-30秒，成本 10 积分**）\n\n### 场景 3: 多平台搜索\n\n**用户**: \"在微信公众号和 B 站搜索'Python 教程'\"\n\n**Agent 操作**: 发送两个 POST 请求\n\n请求 1 - 微信公众号:\n```json\n{\n  \"query\": \"Python教程\",\n  \"search_service\": \"wechat\",\n  \"max_results\": 5,\n  \"crawl_results\": 0\n}\n```\n\n请求 2 - 哔哩哔哩:\n```json\n{\n  \"query\": \"Python教程\",\n  \"search_service\": \"bilibili\",\n  \"max_results\": 5,\n  \"crawl_results\": 0\n}\n```\n\n### 场景 4: GitHub 代码搜索\n\n**用户**: \"搜索 GitHub 上的 react hooks 相关项目\"\n\n**Agent 操作**: 发送 POST 请求\n\n```json\n{\n  \"query\": \"react hooks\",\n  \"search_service\": \"github\",\n  \"max_results\": 10,\n  \"crawl_results\": 0\n}\n```\n\n### 场景 5: YouTube 视频搜索\n\n**用户**: \"在 YouTube 上搜索编程教程\"\n\n**Agent 操作**: 发送 POST 请求\n\n```json\n{\n  \"query\": \"programming tutorial\",\n  \"search_service\": \"youtube\",\n  \"max_results\": 5,\n  \"crawl_results\": 0\n}\n```\n\n## 定价\n\n- 每个搜索结果：10 积分\n- 缓存命中：免费（30 分钟内相同查询）\n- 相同查询 30 分钟内第二次调用免费\n\n## ⚠️ 重要提示\n\n### 性能\n\n- `crawl_results=0`（默认）：0.5-2 秒\n- `crawl_results=1-10`：每个结果增加 10-30 秒\n\n### 成本\n\n- 每个搜索结果：10 积分\n- 缓存命中：免费（30 分钟内相同查询）\n- **建议**：优先使用摘要，只在必要时抓取完整内容\n\n### 最佳实践\n\n1. **默认使用** `max_results: 3, crawl_results: 0`（快速获取摘要）\n2. **只有用户明确要求\"完整内容\"时** 才设置 `crawl_results > 0`\n3. **搜索前** 先检查是否有缓存（相同查询 30 分钟内免费）\n4. **合理控制数量** `max_results` 不要设置过大，避免不必要的成本\n\n## 注意事项\n\n1. 默认使用 `crawl_results: 0` 以获得快速响应\n2. 设置 `crawl_results > 0` 会显著增加延迟（10-30秒/页）\n3. 注意控制请求频率，避免超出限流\n4. 相同查询 30 分钟内会使用缓存，免费且更快\n5. 所有请求必须在 Header 中包含 `Authorization: Bearer sk_test_a6f84bf78896f10b2d28aebd7857744c`\n6. Content-Type 必须设置为 `application/json`\n\n## 错误处理\n\n常见错误码：\n\n- `400`: 请求参数错误\n- `401`: 认证失败（API Key 无效）\n- `429`: 请求频率超限\n- `500`: 服务器内部错误\n\n建议在请求失败时进行重试，最多重试 3 次。\n","tags":{"latest":"1.0.1"},"stats":{"comments":0,"downloads":764,"installsAllTime":1,"installsCurrent":1,"stars":2,"versions":2},"createdAt":1773395764937,"updatedAt":1779078036629},"latestVersion":{"version":"1.0.1","createdAt":1773429140020,"changelog":"- Major update: switched from local Search API scripts to a unified official API (cloud endpoint).\n- Removed local script dependency (`scripts/search.py`) for all search operations.\n- API key and endpoint configuration is now handled centrally; no client setup required.\n- All search and news queries are done via direct HTTP POST requests to the public API.\n- Updated authentication and example requests; usage is simplified and cross-platform.\n- Updated pricing from currency-based to point-based system and clarified caching behavior.","license":"MIT-0"},"metadata":null,"owner":{"handle":"lazyboyjgn99","userId":"s172wbw5t1wqp4qkkb9gaj88h1885qq3","displayName":"LazyBoyJgn99","image":"https://avatars.githubusercontent.com/u/40264751?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089873740}}