← 返回
数据分析 Key 中文

serpshot

Use Serpshot Google Search API to perform web searches and image searches.
使用 Serpshot Google Search API 进行网页搜索和图片搜索。
downdawn
数据分析 clawhub v1.1.0 2 版本 99829.1 Key: 需要
★ 0
Stars
📥 584
下载
💾 16
安装
2
版本
#latest

概述

Skill: Serpshot Google Search API

Perform Google web searches and image searches using the Serpshot API.

When to Use

  • User says: search / find / google / lookup / research / look up / browse
  • User says: 查 / 搜 / 找 / 调研 / 查一下 / 搜索 / 查询 / 找一下 / 查资料
  • Need real-time web information not in training data
  • Need current news, prices, documentation, or any live data
  • Need image search results

Setup (run once)

  1. Get API key: https://serpshot.com/dashboard
  2. Set environment variable:
    • Mac/Linux: export SERPSHOT_API_KEY=your_key
    • Windows CMD: set SERPSHOT_API_KEY=your_key
    • Windows PowerShell: $env:SERPSHOT_API_KEY="your_key"

Tools

  • exec — Run Python to call Serpshot API

How to Use

Web Search

import requests
import os

api_key = os.environ.get("SERPSHOT_API_KEY")
if not api_key:
    raise ValueError("SERPSHOT_API_KEY is not set. Get your key at https://serpshot.com/dashboard")

response = requests.post(
    "https://api.serpshot.com/api/search/google",
    headers={"X-API-Key": api_key, "Content-Type": "application/json"},
    json={
        "queries": ["your search query here"],
        "type": "search",
        "num": 10,       # results per page (1-100)
        "gl": "us",      # country: us/cn/gb/jp/de/ca/fr/...
        "hl": "en",      # language: en/zh-Hans/ja/...
    }
)

data = response.json()
if data.get("code") != 200:
    raise RuntimeError(f"API error {data.get('code')}: {data.get('msg')}")

for r in data["data"]["results"]:
    print(f"{r['position']}. {r['title']}")
    print(f"   {r['link']}")
    print(f"   {r['snippet']}")
    print()

Image Search

import requests
import os

api_key = os.environ.get("SERPSHOT_API_KEY")

response = requests.post(
    "https://api.serpshot.com/api/search/google",
    headers={"X-API-Key": api_key, "Content-Type": "application/json"},
    json={
        "queries": ["your image query here"],
        "type": "image",
        "num": 10,
        "gl": "us",
    }
)

data = response.json()
if data.get("code") != 200:
    raise RuntimeError(f"API error {data.get('code')}: {data.get('msg')}")

for r in data["data"]["results"]:
    print(f"{r['position']}. {r['title']}")
    print(f"   Source: {r.get('source', '')}")
    print(f"   Link: {r['link']}")
    print(f"   Thumbnail: {r.get('thumbnail', '')}")
    print()

Parameters

| Parameter | Default | Description |

|-----------|----------|------------------------------------------------|

| queries | required | Search queries array (max 100) |

| type | "search" | "search" or "image" |

| num | 10 | Results per page (1-100) |

| page | 1 | Page number for pagination |

| gl | "us" | Country code: us/cn/gb/jp/de/ca/fr/id/mx/sg |

| hl | "en" | Language: en/zh-Hans/ja/ko/de/fr/... |

Response Format

{
  "code": 200,
  "msg": "Success",
  "data": {
    "results": [
      {
        "title": "Result Title",
        "link": "https://example.com",
        "snippet": "Result description...",
        "position": 1
      }
    ],
    "total_results": "About 12,300,000 results",
    "search_time": 0.45,
    "credits_used": 1
  }
}

Example Tasks

Search for latest AI news (English)

queries: ["AI news 2026"]
gl: "us"
num: 5

Search Chinese results

queries: ["人工智能 最新消息"]
gl: "cn"
hl: "zh-Hans"
num: 10

Image search

queries: ["minimalist UI design"]
type: "image"
num: 10

Error Codes

| Code | Meaning | Action |

|------|--------------------------|---------------------------------------------|

| 400 | Bad request | Check parameter format |

| 401 | Invalid API key | Verify SERPSHOT_API_KEY is set correctly |

| 402 | Insufficient credits | Top up at https://serpshot.com/dashboard |

| 429 | Rate limit exceeded | Slow down requests |

Notes

  • Each search query uses 1 credit
  • Check remaining credits: GET https://api.serpshot.com/api/credit/available-credits
  • Full API docs: https://serpshot.com/docs

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-03-29 22:15 安全 安全
  • v1.0.0
    2026-03-26 22:24

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,015
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,973
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,461