serper-search-skill

Search the web using Serper API for Google-powered search results including web, news, images, and places.

100 stars

Best use case

serper-search-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Search the web using Serper API for Google-powered search results including web, news, images, and places.

Teams using serper-search-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/serper-search-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/trohitg/MachinaOS/main/server/skills/web_agent/serper-search-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/serper-search-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How serper-search-skill Compares

Feature / Agentserper-search-skillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Search the web using Serper API for Google-powered search results including web, news, images, and places.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Serper Search Skill

Search the web using the Serper API, which provides Google Search results via a simple API. Supports web search, news, images, and places.

## How It Works

This skill provides instructions and context. To execute searches, connect the **Serper Search** node to the agent's `input-tools` handle.

## serper_search Tool

Search Google via Serper API and get structured results.

### Schema Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| query | string | Yes | Search query to look up on Google |

### Node Parameters

Additional options configured on the node:

| Parameter | Default | Description |
|-----------|---------|-------------|
| maxResults | 10 | Number of results to return (max 100) |
| searchType | search | Type: search (web), news, images, places |
| country | (empty) | Country code for regional results (gl parameter) |
| language | (empty) | Language code for results (hl parameter) |

### Response Format

**Web search:**
```json
{
  "query": "artificial intelligence news",
  "results": [
    {
      "title": "AI Breakthrough in Medical Research",
      "snippet": "Researchers have developed a new AI model...",
      "url": "https://example.com/ai-research",
      "position": 1
    }
  ],
  "result_count": 10,
  "search_type": "search",
  "provider": "serper",
  "knowledge_graph": {
    "title": "Artificial Intelligence",
    "description": "..."
  }
}
```

**News search:**
```json
{
  "query": "technology news today",
  "results": [
    {
      "title": "Tech Industry Update",
      "snippet": "Major developments in...",
      "url": "https://example.com/news",
      "date": "2 hours ago",
      "source": "TechCrunch"
    }
  ],
  "search_type": "news",
  "provider": "serper"
}
```

**Images search:**
```json
{
  "query": "aurora borealis photos",
  "results": [
    {
      "title": "Northern Lights Over Iceland",
      "imageUrl": "https://example.com/image.jpg",
      "url": "https://example.com/gallery"
    }
  ],
  "search_type": "images",
  "provider": "serper"
}
```

**Places search:**
```json
{
  "query": "coffee shops near me",
  "results": [
    {
      "title": "Blue Bottle Coffee",
      "address": "123 Main St, San Francisco, CA",
      "rating": 4.5,
      "url": "https://bluebottlecoffee.com"
    }
  ],
  "search_type": "places",
  "provider": "serper"
}
```

### Examples

**Web search:**
```json
{
  "query": "Python 3.13 new features"
}
```

**News search** (set searchType to "news" on node):
```json
{
  "query": "stock market today"
}
```

**Places search** (set searchType to "places" on node):
```json
{
  "query": "Italian restaurants in Manhattan"
}
```

## When to Use Serper Search

- **Google-quality results** - Powered by Google's search index
- **News search** - Set searchType to "news" for current headlines with sources and dates
- **Image search** - Set searchType to "images" for visual content
- **Places/Local search** - Set searchType to "places" for business listings with ratings
- **Knowledge Graph** - Includes Google Knowledge Graph data when available

## When NOT to Use Serper Search

- **AI-powered answers** - Use Perplexity instead for synthesized answers
- **Privacy-focused search** - Use Brave Search instead
- **Simple calculations** - Use the calculator tool
- **Creative tasks** - Writing, brainstorming, analysis

## Search Query Best Practices

- Use specific, focused queries (under 10 words when possible)
- Include relevant keywords, dates, and context
- Use Google search operators: `site:`, `filetype:`, `intitle:`, `-exclude`
- Break complex questions into simpler searches

## API Details

- **API**: POST `https://google.serper.dev/search` (also /news, /images, /places)
- **Auth**: `X-API-KEY` header
- **Pricing**: ~$0.001 per query (one of the cheapest Google SERP APIs)

## Setup Requirements

1. Connect this skill to the agent's `input-skill` handle
2. Connect the **Serper Search** node to the agent's `input-tools` handle
3. Add your Serper API key in Credentials > Scrapers

Related Skills

perplexity-search-skill

100
from trohitg/MachinaOS

Search the web using Perplexity Sonar AI for synthesized answers with citations, related questions, and optional images.

duckduckgo-search-skill

100
from trohitg/MachinaOS

Search the web using DuckDuckGo for free, privacy-focused results with no API key required.

brave-search-skill

100
from trohitg/MachinaOS

Search the web using Brave Search API for privacy-focused, independent search results with no tracking.

twitter-search-skill

100
from trohitg/MachinaOS

Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. Returns rich tweet data with expanded URLs, author info, media, metrics, and referenced tweets.

fs-search-skill

100
from trohitg/MachinaOS

Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).

proxy-config-skill

100
from trohitg/MachinaOS

Configure residential proxy providers and make proxied HTTP requests with geo-targeting.

http-request-skill

100
from trohitg/MachinaOS

Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.

crawlee-scraper-skill

100
from trohitg/MachinaOS

Read and extract content from any web page URL.

browser-skill

100
from trohitg/MachinaOS

Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.

apify-skill

100
from trohitg/MachinaOS

Run web scrapers and extract data from websites and social media platforms using Apify actors. Supports Instagram, TikTok, Twitter/X, LinkedIn, Facebook, YouTube, Google Search, and general web crawling.

nearby-places-skill

100
from trohitg/MachinaOS

Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.

shell-skill

100
from trohitg/MachinaOS

Execute short-lived shell commands in a sandboxed environment. No PATH access -- use process_manager for npm/python/node commands.