Skip to content
Back to skills

Serpapi 2

ASecurity

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.

  • 651 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 10, 2026
developmentpythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add sundial-org/awesome-openclaw-skills --skill serpapi-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Serpapi 2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Serpapi 2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sundial-org-serpapi-2/badge)](https://www.skillsdirectory.com/skills/sundial-org-serpapi-2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: serpapi-2
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

```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).

Files in this skill

  • SKILL.md1.8 KB
  • scripts/format.py1.9 KB
  • scripts/search.sh2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…