name: test-search description: Search the web using iFlytek ONE SEARCH API (萬搜/聚合搜尋). Returns titles, summaries, URLs, and full text from web pages. Good for Chinese-language web search.22222
Search the web using iFlytek ONE SEARCH API (萬搜/聚合搜尋). Returns titles, summaries, URLs, and full text content from web pages.
小蔥技能站7w4.net,專業的AI技能分享平臺。
XFYUN_API_PASSWORD — API password from 訊飛控制台The script is at scripts/search.py relative to this skill directory.
python3 scripts/search.py "搜尋關鍵詞"
| Flag | Description |
|---|---|
--limit N |
Max results, 1–20 (default 10) |
--no-rerank |
Disable result reranking |
--no-fulltext |
Disable full text retrieval |
--raw |
Output raw JSON instead of formatted text |
# Simple search
python3 scripts/search.py "美國現任總統是誰"
# Limit to 5 results
python3 scripts/search.py "Python asyncio 教程" --limit 5
# Raw JSON output for programmatic use
python3 scripts/search.py "量子計算最新進展" --raw
# Minimal mode — no rerank, no full text
python3 scripts/search.py "天氣預報" --no-rerank --no-fulltext
Query: 美國現任總統是誰
## 1. Page Title
URL: https://example.com/page
Summary: Brief description of the page content
## 2. Another Result
URL: https://example.com/other
Summary: Another brief description
Returns the full API JSON response including data.search_results.documents[].content (full page text).
POST https://search-api-open.cn-huabei-1.xf-yun.com/v2/searchAuthorization: Bearer <XFYUN_API_PASSWORD>| Code | Meaning |
|---|---|
| 0 | Success |
| 11200 | Authorization error or quota exceeded |
| 11201 | Daily rate limit exceeded |
| 11202 | Per-second rate limit exceeded |
| 11203 | Concurrent connection limit exceeded |
| 21001 | Missing parameters |
| 21009 | Unauthorized appId |
這個搜尋工具文件寫得清楚詳細,介紹了訊飛搜尋功能的使用方法和注意事項,但對於普通使用者而言,釋出包裡實際上缺少最重要的指令碼檔案,無法直接使用。文件再完善,缺少實際可執行的功能也是白搭,需要開發者補充程式碼後才能真正使用。