Skip to content

minilozio/google-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Google Search Skill

ClawHub MIT License v1.0.0 OpenClaw


Your agent deserves Google, not Bing.

Most AI agents search the web through Brave β€” which is really Bing under the hood. The results are often mediocre, missing context, and lack the rich data Google provides. Now that Brave's API is paid, there's no reason to settle.

This skill gives your agent direct access to Google Search via Serper.dev β€” real Google results with Knowledge Graph, Answer Box, People Also Ask, and 9 specialized search types. 2,500 searches free, zero dependencies.

Why this over Brave?

Brave (built-in) google-search
Engine Brave/Bing Google
Knowledge Graph ❌ βœ…
Answer Box ❌ βœ…
People Also Ask ❌ βœ…
Related Searches ❌ βœ…
News search ❌ βœ…
Image search ❌ βœ…
Video search ❌ βœ…
Shopping ❌ βœ…
Places/Maps ❌ βœ…
Scholar ❌ βœ…
Patents ❌ βœ…
Autocomplete ❌ βœ…
Cost Paid plans only 2,500 free credits

Setup

  1. Get a free API key at serper.dev (2,500 credits included)
  2. Add to your environment:
export SERPER_API_KEY=your_key_here
  1. Install the skill:
clawhub install google-search-serper

Search Types

Web Search (default)

npx tsx scripts/google-search.ts search "openclaw ai agent"
npx tsx scripts/google-search.ts search "bitcoin" --time day --country us --lang en --num 20

Returns: organic results, Knowledge Graph, Answer Box, People Also Ask, Related Searches, Top Stories.

News

npx tsx scripts/google-search.ts news "AI regulation" --num 10

Images

npx tsx scripts/google-search.ts images "gecko cartoon 3d"

Videos

npx tsx scripts/google-search.ts videos "solana tutorial"

Places

npx tsx scripts/google-search.ts places "pizza rome italy"

Shopping

npx tsx scripts/google-search.ts shopping "mechanical keyboard"

⚠️ Shopping costs 2 credits per query (all others cost 1)

Scholar

npx tsx scripts/google-search.ts scholar "transformer architecture" --year 2023

Patents

npx tsx scripts/google-search.ts patents "solar panel efficiency"

Autocomplete

npx tsx scripts/google-search.ts suggest "how to build"

Check Credits

npx tsx scripts/google-search.ts credits

Flags

Flag Description Example
--num Number of results (1-100) --num 20
--time Time filter --time day (hour/day/week/month/year)
--country Country code --country us
--lang Language code --lang en
--year From year (scholar only) --year 2023
--page Page number --page 2
--json Raw JSON output --json

Example Output

πŸ” Google Search: "openclaw ai agent" (10 results, 1 credit)

πŸ“¦ Knowledge Graph: OpenClaw β€” Personal AI Assistant
   https://openclaw.ai
   "The AI that actually does things..."

πŸ“‹ Results:
  1. OpenClaw β€” Personal AI Assistant
     https://openclaw.ai
     The AI that actually does things. Clears your inbox...

  2. I Loved My OpenClaw AI Agentβ€”Until It Turned on Me | WIRED
     https://wired.com/story/...
     I used the viral AI helper to order groceries...

❓ People Also Ask:
  β€’ Is OpenClaw safe to use?
  β€’ How much does OpenClaw cost?

πŸ”— Related: "openclaw review", "openclaw vs cursor", "openclaw setup"

πŸ’° Balance: 2,487 credits

Credits

  • All searches cost 1 credit except Shopping (2 credits)
  • Free tier includes 2,500 credits
  • Paid plans start at $50 for 50K queries

Requirements

  • Node.js 18+ (native fetch)
  • SERPER_API_KEY environment variable
  • Zero npm dependencies

License

MIT


Built by Lozio 🦎

About

πŸ” Google Search Skill for OpenClaw β€” powered by Serper.dev

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors