← 返回
开发者工具 Key 中文

Serper Web Search

Performs Google web searches using the Serper API and returns structured search results when provided a valid Serper API key.
使用 Serper API 执行 Google 网页搜索,并在提供有效 Serper API 密钥时返回结构化搜索结果。
oakcoderx
开发者工具 clawhub v1.0.0 1 版本 99908.3 Key: 需要
★ 0
Stars
📥 1,089
下载
💾 32
安装
1
版本
#latest

概述

Serper Search

Use Serper API for Google search results.

API Details

  • Endpoint: https://google.serper.dev/search
  • Method: POST
  • Headers: X-API-Key: $SERPER_API_KEY, Content-Type: application/json
  • Body: {"q": "your query here"}

Usage

With API Environment Key in

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"}'

With Inline Key

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"}'

Script

Use the bundled search script:

./scripts/search "your query"

Response Format

Returns JSON with:

  • organic[] - Search results (title, link, snippet)
  • searchParameters.q - Original query
  • credits - Credits used

Example result:

{
  "searchParameters": {"q": "test", "type": "search"},
  "organic": [
    {"title": "Result Title", "link": "https://...", "snippet": "Description...", "position": 1}
  ],
  "credits": 1
}

Getting an API Key

  1. Visit https://serper.dev
  2. Sign up for an account
  3. Get your API key from the dashboard
  4. Set SERPER_API_KEY environment variable or pass the key inline

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Half Full

oakcoderx
半饱 — 生活的高潮所在。A mindful eating companion for desk workers. Track meals with photos, understand your body's needs, no gym
★ 0 📥 1,458
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,378
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,347