界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

serpapi

serpapi

【开发与工程】Search Google via SerpAPI (Google Search, Google News, Google Local). Use when you need to search the web, find news articles, or look up local businesses. Supports country/language targeting for region-specific results.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: serpapi description: Search Google via SerpAPI (Google Search, Google News, Google Local). Use when you need to search the web, find news articles, or look up local businesses. Supports country/language targeting for region-specific results. metadata: {"clawdbot":{"emoji":"🔍","requires":{"bins":["curl","python3"],"env":["SERPAPI_API_KEY"]},"primaryEnv":"SERPAPI_API_KEY"}}

SerpAPI Search

Search Google via SerpAPI with country/language targeting.

Quick start

# Google Search
{baseDir}/scripts/search.sh "artificial intelligence B2B" --country br --lang pt

# Google News
{baseDir}/scripts/search.sh "inteligência artificial" --engine google_news --country br --lang pt

# Google Local
{baseDir}/scripts/search.sh "AI companies" --engine google_local --country us --location "San Francisco, California"

Engines

EngineUse caseKey results field
googleWeb search (default)organic_results
google_newsNews articlesnews_results
google_localLocal businesses/placeslocal_results

Options

FlagDescriptionDefault
--enginegoogle, google_news, google_localgoogle
--country2-letter country code (br, us, de, etc.)us
--langLanguage code (pt, en, es, etc.)en
--locationLocation string (e.g. "São Paulo, Brazil")—
--numNumber of results10
--jsonRaw JSON outputoff

API key

Set SERPAPI_API_KEY env var, or store it:

mkdir -p ~/.config/serpapi
echo "your_key_here" > ~/.config/serpapi/api_key
chmod 600 ~/.config/serpapi/api_key

Common country codes

br (Brazil), us (USA), pt (Portugal), de (Germany), fr (France), es (Spain), gb (UK), jp (Japan), in (India).

我的收藏