OpenClaw
Afrexai Brand Strategy
Brand Strategy Engine
☆ 0查看技能
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.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install ericsantos/serpapi-search打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Search Google via SerpAPI with country/language targeting.
# 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"
| Engine | Use case | Key results field |
|---|---|---|
google |
Web search (default) | organic_results |
google_news |
News articles | news_results |
google_local |
Local businesses/places | local_results |
| Flag | Description | Default |
|---|---|---|
--engine |
google, google_news, google_local |
google |
--country |
2-letter country code (br, us, de, etc.) |
us |
--lang |
Language code (pt, en, es, etc.) |
en |
--location |
Location string (e.g. "São Paulo, Brazil") |
— |
--num |
Number of results | 10 |
--json |
Raw JSON output | off |
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
br (Brazil), us (USA), pt (Portugal), de (Germany), fr (France), es (Spain), gb (UK), jp (Japan), in (India).
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# SerpAPI Search
Search Google via SerpAPI with country/language targeting.
## Quick start
```bash
# 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
| Engine | Use case | Key results field |
|--------|----------|-------------------|
| `google` | Web search (default) | `organic_results` |
| `google_news` | News articles | `news_results` |
| `google_local` | Local businesses/places | `local_results` |
## Options
| Flag | Description | Default |
|------|-------------|---------|
| `--engine` | `google`, `google_news`, `google_local` | `google` |
| `--country` | 2-letter country code (`br`, `us`, `de`, etc.) | `us` |
| `--lang` | Language code (`pt`, `en`, `es`, etc.) | `en` |
| `--location` | Location string (e.g. `"São Paulo, Brazil"`) | — |
| `--num` | Number of results | `10` |
| `--json` | Raw JSON output | off |
## API key
Set `SERPAPI_API_KEY` env var, or store it:
```bash
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).Brand Strategy Engine
Energy Audit — Commercial Building Assessment
Environmental Compliance Manager
Token Economics Analyzer