← 返回
内容创作 Key

SerpAPI

Unified search API across Google, Amazon, Yelp, OpenTable, Walmart, and more. Use when searching for products, local businesses, restaurants, shopping, images, news, or any web search. One API key, many engines.
统一搜索API,跨Google、Amazon、Yelp、OpenTable、Walmart等多平台。用于搜索产品、本地商家、餐厅、购物、图片、新闻等。一个API密钥,多个搜索引擎。
ianpcook
内容创作 clawhub v1.0.0 1 版本 98499.3 Key: 需要
★ 5
Stars
📥 5,282
下载
💾 1,192
安装
1
版本
#latest

概述

SerpAPI - Unified Search

SerpAPI provides structured data from Google, Amazon, Yelp, OpenTable, and 20+ other search engines through a single API.

Setup

  1. Get an API key from https://serpapi.com (free tier: 100 searches/month)
  2. Set environment variable: export SERPAPI_API_KEY=your-key-here
  3. Optionally set default location in /TOOLS.md:

```markdown

## SerpAPI

Default location: Pittsburgh, PA

```

Usage

# General syntax
<skill>/scripts/serp.py <engine> "<query>" [options]

# Examples
serp.py google "best coffee shops"
serp.py google_maps "restaurants near me" --location "15238"
serp.py amazon "mechanical keyboard" --num 10
serp.py yelp "pizza" --location "New York, NY"
serp.py google_shopping "standing desk"

Engines

EngineUse forKey features
-------------------------------
googleGeneral web searchOrganic results, knowledge graph, local pack
google_mapsLocal places/businessesRatings, reviews, hours, GPS coordinates
google_shoppingProduct searchPrices, merchants, reviews
google_imagesImage searchThumbnails, sources
google_newsNews articlesHeadlines, sources, dates
amazonAmazon productsPrices, ratings, reviews, Prime status
yelpLocal businessesReviews, ratings, categories
opentableRestaurant reviewsDining reviews, ratings
walmartWalmart productsPrices, availability
ebayeBay listingsPrices, bids, conditions
tripadvisorTravel/attractionsHotels, restaurants, things to do

Options

OptionDescription
---------------------
--location, -lLocation for local results (city, zip, address)
--num, -nNumber of results (default: 10)
--format, -fOutput format: json (default) or text
--type, -tGoogle search type: shop, isch, nws, vid
--page, -pPage number for pagination
--glCountry code (e.g., us, uk, de)
--hlLanguage code (e.g., en, es, fr)

When to Use Which Engine

Finding local businesses/restaurants:

  • google_maps — Best for discovering places, hours, reviews
  • yelp — Deep reviews and ratings for restaurants/services
  • opentable — Restaurant-specific, dining reviews

Shopping/Products:

  • google_shopping — Compare prices across merchants
  • amazon — Amazon-specific search with Prime info
  • walmart — Walmart inventory and prices
  • ebay — Used items, auctions, collectibles

General research:

  • google — Web pages, articles, general info
  • google_news — Current events, news articles
  • google_images — Finding images

Examples

Find restaurants near a location

serp.py google_maps "italian restaurants" --location "Pittsburgh, PA" --num 5

Compare product prices

serp.py google_shopping "sony wh-1000xm5" --num 10

Check Amazon reviews and pricing

serp.py amazon "standing desk" --num 10

Get Yelp reviews for local services

serp.py yelp "plumber" --location "15238"

Search news on a topic

serp.py google_news "AI regulation" --num 5

Output Formats

JSON (default): Full structured data from SerpAPI. Best for programmatic use or when you need all details.

Text (--format text): Human-readable summary. Best for quick answers.

Integration Notes

  • Results are structured JSON — parse and extract what you need
  • Local results include GPS coordinates for mapping
  • Shopping results include extracted prices for comparison
  • Knowledge graph provides entity information when available
  • Rate limits: 100/month on free tier, check your plan at serpapi.com/dashboard

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 10:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 141 📥 41,013
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,126
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,396