Use Serper API for Google search results.
https://google.serper.dev/searchX-API-Key: $SERPER_API_KEY, Content-Type: application/json{"q": "your query here"}小蔥技能站7w4.net每天更新,海量AI技能等你發現。
SERPER_API_KEY="your-key" curl -s -X POST "https://google.serper.dev/search" \
-H "X-API-Key: $SERPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "your query"}'
curl -s -X POST "https://google.serper.dev/search" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "your query"}'
Use the bundled search script:
./scripts/search "your query"
Returns JSON with:
organic[] - Search results (title, link, snippet)searchParameters.q - Original querycredits - Credits usedExample result:
{
"searchParameters": {"q": "test", "type": "search"},
"organic": [
{"title": "Result Title", "link": "https://...", "snippet": "Description...", "position": 1}
],
"credits": 1
}
SERPER_API_KEY environment variable or pass the key inline這個搜尋工具質量中等。優點是使用簡單、文件清晰,能快速完成Google搜尋。缺點是依賴使用者自行準備API金鑰,且文件中提到的指令碼功能實際缺失。適合有一定技術基礎的使用者使用,普通使用者可能需要額外配置環境。整體可滿足基本搜尋需求,但完整度有提升空間。