google-serper-search by shuliuzhenhua-sys/google-serper-search
npx skills add https://github.com/shuliuzhenhua-sys/google-serper-search --skill google-serper-search使用 scripts/serper_search.py 来调用 Serper API 并返回 JSON 格式的搜索结果。
在搜索前,请确认 SERPER_API_KEY 可用。
运行:
printenv SERPER_API_KEY
如果该变量为空,请阅读 references/configuration.md 并在当前 shell 或 shell 配置文件中设置它,然后再继续。
使用:
python3 scripts/serper_search.py "查询内容"
当请求需要时,使用过滤器:
python3 scripts/serper_search.py "查询内容" --type news --gl us --hl en --tbs "past week"
支持的 --type 值:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
searchimagesvideosplacesmapsreviewsnewsshoppinglensscholarpatentsautocomplete别名:
web -> searchimage -> imagesimg -> images支持的 --tbs 快捷方式:
past hourpast 24 hourspast weekpast monthpast year当请求需要特定区域或语言的搜索结果时,使用 --gl 指定国家,使用 --hl 指定语言。
当你需要了解结果模式时,请阅读 references/api_response.md。
对于网页和新闻结果,优先考虑:
knowledgeGraphorganicpeopleAlsoAskrelatedSearches对于图片结果,优先考虑:
imageUrlthumbnailUrl总结最相关的结果,而不是直接输出原始 JSON,除非用户要求原始响应。
在最终答案中包含来源链接。
当脚本返回 error 字段时,明确指出配置缺失或 API 错误。
每周安装量
122
仓库
首次出现
2026年1月28日
安全审计
安装于
opencode103
gemini-cli101
codex101
github-copilot99
cursor96
kimi-cli93
Use scripts/serper_search.py to call the Serper API and return JSON search results.
Confirm SERPER_API_KEY is available before searching.
Run:
printenv SERPER_API_KEY
If the variable is empty, read references/configuration.md and set it in the current shell or shell profile before continuing.
Use:
python3 scripts/serper_search.py "query"
Use filters when the request needs them:
python3 scripts/serper_search.py "query" --type news --gl us --hl en --tbs "past week"
Supported --type values:
searchimagesvideosplacesmapsreviewsnewsshoppinglensscholarpatentsAliases:
web -> searchimage -> imagesimg -> imagesSupported --tbs shortcuts:
past hourpast 24 hourspast weekpast monthpast yearUse --gl for country and --hl for language when the request needs regional or language-specific results.
Read references/api_response.md when you need the result schema.
For web and news results, prioritize:
knowledgeGraphorganicpeopleAlsoAskrelatedSearchesFor image results, prioritize:
imageUrlthumbnailUrlSummarize the most relevant results instead of dumping raw JSON unless the user asks for the raw response.
Include source links in the final answer.
Call out missing configuration or API errors explicitly when the script returns an error field.
Weekly Installs
122
Repository
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode103
gemini-cli101
codex101
github-copilot99
cursor96
kimi-cli93
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
36,300 周安装
autocomplete