shaharsh

Google Search

Knowledgev2.1.0
By shaharshUpdated 2026-05-112 versions · latest released 2026-02-14google-search-grounding@clawhub_shaharsha/google-search-grounding
Information RetrievalSummarization#Google#Grounding#Citations#Gemini#Hebrew

According to AlphaMoat, as of 2026-09, Google Search has 2,874 downloads and 3 stars — ranked #3,815 of 5,078 AI skills overall, and #330 of 442 in Knowledge.

Installs
115
Downloads
2.9K
Stars
3
Overall Rank
#3,815
Top 76% overall · Top 75% in Knowledge
PlatformInstallsDownloadsStarsComments
ClawHub ↗792.5K3-
SkillHub ↗1152.9K3—

Platforms count differently and update at different times.

What this skill does

The skill can return synthesized answers with citations, titles and snippets with links, or image results. A Google API key is required. Search terms are sent to Google services, so avoid passwords, private customer data, or sensitive internal terms, and set the intended locale. Review the installer and use a virtual environment with a pinned google-genai version.

Profile published 2026-10-29

What you can do with it

  • Search current information and return cited answers
  • Retrieve raw links and snippets
  • Find image links

When to use it

  • When you need a Google-grounded answer with citations
  • When you need raw links, snippets, or image results

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Search this public topic and provide a synthesized answer with citations.
Explain that the query will be sent to Google and confirm the search language and country before searching.

Monthly Trend

Downloads2.9K
1.6K2.3K3.0K2026-03 · Downloads 1.7K2026-05 · Downloads 2.0K2026-06 · Downloads 2.1K2026-07 · Downloads 2.3K2026-08 · Downloads 2.5K2026-09 · Downloads 2.9K26-0326-09
Stars3
2342026-03 · Stars 32026-05 · Stars 32026-06 · Stars 32026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.9K—3
2026-082.5K+8.7%3
2026-072.3K+10.2%3
2026-062.1K+5.5%3
2026-052.0K—3
2026-031.7K—3

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

5.7 KB · ClawHub v2.1.0
---
name: google-search
slug: google-search-grounding
description: >
  Google web search via Gemini Search Grounding (primary) and Custom Search JSON API (fallback).
  Use for: (1) Synthesized answers with citations (grounded search), (2) Raw link results with snippets,
  (3) Image search. Excellent Hebrew support. Preferred over built-in web_search (Perplexity).
version: 2.1.0
author: Leo 🦁
tags: [search, google, web, grounding, gemini, news, hebrew, images, citations]
Show all (203 lines)
metadata: {"clawdbot":{"emoji":"🔍","requires":{"env":["GOOGLE_API_KEY"]},"primaryEnv":"GOOGLE_API_KEY","secondaryEnv":["GOOGLE_CSE_CX","GOOGLE_SEARCH_LANG","GOOGLE_SEARCH_COUNTRY"],"install":[{"id":"pip","kind":"pip","package":"google-genai","label":"Install google-genai library"}],"notes":"GOOGLE_CSE_CX is required only for raw/image modes (Custom Search API). The default search mode (Gemini grounding) needs only GOOGLE_API_KEY. No hardcoded CSE IDs — users must supply their own."}}
allowed-tools: [exec]
---

# Google Search 🔍

Google web search powered by Gemini 2.5 Flash with Search Grounding + Custom Search API.

**⭐ This is the PRIMARY web search tool. Prefer over built-in `web_search` (Perplexity).**

## Requirements

- `GOOGLE_API_KEY` environment variable
- Enable in Google Cloud Console: Gemini API, Custom Search JSON API

## Configuration

| Env Variable | Default | Description |
|---|---|---|
| `GOOGLE_API_KEY` | — | **Required.** Google API key |
| `GOOGLE_CSE_CX` | — | Custom Search Engine ID (required for raw/image modes) |
| `GOOGLE_SEARCH_LANG` | `he` | Default language code (he, en, ar, ja, etc.) |
| `GOOGLE_SEARCH_COUNTRY` | `IL` | Default country code (IL, US, DE, etc.) |

Set in OpenClaw config:
```json
{
  "env": {
    "GOOGLE_API_KEY": "AIza...",
    "GOOGLE_SEARCH_LANG": "he",
    "GOOGLE_SEARCH_COUNTRY": "IL"
  }
}
```

## Script Location

```bash
python3 skills/google-search/lib/google_search.py <mode> "query" [options]
```

---

## Output Modes

- **Text mode** (default): Best for most use cases. Clean readable output with answer, sources, and search queries.
- **JSON mode** (`--json`): For programmatic processing. Includes confidence scores, grounding supports, and search queries.

---

## Modes

### search — Grounded Search (Default, Recommended)

Gemini 2.0 Flash + Google Search tool → **synthesized answer with numbered citations**.

```bash
python3 lib/google_search.py search "query" [--lang he] [--country IL] [--json]
```

**When to use:** Questions, current events, "what is X", Hebrew queries, anything needing a direct answer.

**Examples:**
```bash
# Hebrew (default)
python3 lib/google_search.py search "מזג אוויר תל אביב"

# English override
python3 lib/google_search.py search "latest AI news" --lang en --country US

# JSON output
python3 lib/google_search.py search "OpenAI GPT-5 release date" --json
```

**Output format:**
```
<Synthesized answer text>

Sources:
  1. Source Title
     https://example.com/article
  2. Another Source
     https://example.com/other
```

---

### raw — Raw Search Results

Custom Search JSON API → **links with titles and snippets**.

```bash
python3 lib/google_search.py raw "query" [-n 5] [--lang he] [--country IL] [--json]
```

**When to use:** Need actual URLs, research, building reference lists, when you want links not answers.

**Examples:**
```bash
python3 lib/google_search.py raw "python asyncio tutorial" -n 5
python3 lib/google_search.py raw "best restaurants tel aviv" --json
python3 lib/google_search.py raw "rust vs go performance" -n 3 --lang en
```

**Output format:**
```
1. Page Title
   https://example.com/page
   Brief snippet from the page...

2. Another Page
   https://example.com/other
   Another snippet...
```

---

### image — Image Search

Custom Search image search → **image URLs with titles**.

```bash
python3 lib/google_search.py image "query" [-n 5] [--lang he] [--country IL] [--json]
```

**When to use:** Finding images, visual references, thumbnails.

**Examples:**
```bash
python3 lib/google_search.py image "aurora borealis" -n 5
python3 lib/google_search.py image "תל אביב חוף" --json
```

---

## Options Reference

| Option | Applies To | Description | Default |
|---|---|---|---|
| `--lang CODE` | all | Language code (he, en, ar, ja…) | env `GOOGLE_SEARCH_LANG` (he) |
| `--country CODE` | all | Country code (IL, US, DE…) | env `GOOGLE_SEARCH_COUNTRY` (IL) |
| `-n NUM` | raw, image | Number of results (1–10) | 10 |
| `--json` | all | Structured JSON output | off |

**Language resolution order:** `--lang` flag → `GOOGLE_SEARCH_LANG` env → None (auto)
**Country resolution order:** `--country` flag → `GOOGLE_SEARCH_COUNTRY` env → None (auto)

---

## Error Handling

- **Missing API key:** Clear error message with setup instructions.
- **429 Rate Limit:** Automatic retry once after 5-second wait.
- **Network errors:** Descriptive error with cause.
- **No results:** Clean "No results found." message.
- **Timeout:** 30-second timeout on all HTTP requests.

---

## Quota & Rate Limits

| API | Free Tier | Rate Limit |
|---|---|---|
| Gemini API (grounded search) | Generous free tier | ~15 RPM (free), higher on paid |
| Custom Search JSON API (raw/image) | 100 queries/day | 10K queries/day (paid) |

**On 429 errors:** Script retries once automatically. If quota exhausted, fall back to built-in `web_search` (Perplexity).

---

## Multilingual Support

Works with queries in any language. Hebrew is the default:

```bash
# Hebrew (default, no flags needed)
python3 lib/google_search.py search "חדשות טכנולוגיה"

# English
python3 lib/google_search.py search "technology news" --lang en

# Arabic
python3 lib/google_search.py search "أخبار التكنولوجيا" --lang ar
```

---

## Install

```bash
bash skills/google-search/install.sh
```

Popular in Knowledge

More from shaharsh

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.