NanoGPT Web Search

👤 twolf01 📦 v1.2.3 ⭐ 4.3 ⬇️ 1.2K 下載
📚 知識管理 免費 🔑 需 API Key

📖 技能介紹


name: nano-web-search description: AI-powered web search via NanoGPT API with multiple providers (linkup, tavily, exa, kagi, perplexity, valyu, brave). Supports searchResults, sourcedAnswer, and structured output formats. homepage: https://nano-gpt.com metadata: {"clawdbot":{"requires":{"bins":["python3","curl"],"packages":["requests"],"env":["NANOGPT_API_KEY"]},"primaryEnv":"NANOGPT_API_KEY"}}


NanoGPT Web Search

AI-powered web search via NanoGPT API with multiple providers.

Requirements

  • python3 - For payload building and output formatting
  • curl - For HTTP requests
  • requests Python package - For Python API usage

Setup

Install the requests package:

pip install requests

Set your NanoGPT API key as an environment variable:

export NANOGPT_API_KEY="sk-nano-your-key-here"

Get your API key from nano-gpt.com.

Usage

# Basic search
./search.sh "your query"

# With specific provider
./search.sh "AI trends 2025" --provider tavily

# Deep search
./search.sh "quantum computing" --depth deep

# Search with date filter
./search.sh "climate news" --from-date 2025-01-01 --to-date 2025-02-18

# Sourced answer (synthesized response with citations)
./search.sh "what is RAG" --output-type sourcedAnswer

# JSON output (for scripting)
./search.sh "python tutorials" --json

Providers

  • linkup (default) - $0.006 standard, $0.06 deep
  • tavily - $0.008 standard, $0.016 deep
  • exa - $0.005 base + per-page
  • kagi - $0.002 web/news, $0.025 search
  • perplexity - $0.005 flat
  • valyu - ~$0.0015/result

    小蔥技能站7w4.net每天更新,海量AI技能等你發現。

  • brave - $0.005 flat

Options

  • --provider - Search provider (default: linkup)
  • --depth - Search depth: standard or deep
  • --output-type - Output format: searchResults, sourcedAnswer, structured
  • --from-date - Start date filter (YYYY-MM-DD)
  • --to-date - End date filter (YYYY-MM-DD)
  • --include-domains - Comma-separated domains to include
  • --exclude-domains - Comma-separated domains to exclude
  • --max-results - Max results (provider-specific)
  • --json - Output raw JSON

Python API

from search import NanoWebSearch

# Pass API key explicitly (recommended)
search = NanoWebSearch(api_key="sk-nano-your-key")

# Or use NANOGPT_API_KEY environment variable
search = NanoWebSearch()

results = search.search("AI trends", provider="tavily", depth="deep")
for r in results['data']:
    print(f"{r['title']}: {r['url']}")

🤖 AI 評測

這是一個質量較高的搜尋類 Skill。文件寫得很詳細,功能也很實用,支援多種搜尋提供商和輸出格式。它提供了命令列和 Python 兩種使用方式,程式碼結構清晰易維護。不過它依賴外部付費 API 服務,缺少本地快取和錯誤重試機制,在網路不穩定時可能影響使用體驗。如果需要一個開箱即用的網路搜尋工具,這是一個不錯的選擇。

📊 多維度評分

適應性4.4
規範性4
有效性4.6
可靠性4.3
可信度4.3

📁 包含檔案 (6 個)

📄 SKILL.md 2.4 KB
📄 _meta.json 134 B
📄 build_payload.py 1.5 KB
📄 format_output.py 1.8 KB
📄 search.py 5.3 KB
📄 search.sh 3.1 KB