SerpAPI Search for Openclaw

A high-performance search skill for querying Google Search, News, and Local listings with precise regional and language targeting.

ericsantos
v1.0.0
Jan 28, 2026
3
4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install serpapi-search

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install serpapi-search using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is SerpAPI Search?

The SerpAPI skill enables AI agents to access real-time web data by bridging the gap between LLMs and Google Search engines. By integrating this into Openclaw Skills, developers can empower their agents to retrieve organic search results, the latest news updates, and detailed local business information across various global regions.

This skill is designed for high accuracy, providing structured data that is easy for AI agents to parse and analyze. It supports localized search parameters, allowing for specific results based on country codes and languages, which is essential for accurate market research and global monitoring tasks.

SerpAPI Search Use Cases

  • Performing automated web research to gather current information on specific industries or trends.
  • Monitoring global or local news developments using targeted keywords and language codes.
  • Scrapping local business data including locations and ratings for competitive analysis.
  • Enhancing AI knowledge by providing up-to-date organic search snippets from diverse geographic regions.

How SerpAPI Search Works

  1. The user or agent calls the search script with a specific query and optional parameters like engine or country.
  2. The skill validates the presence of the required SERPAPI_API_KEY environment variable or configuration file.
  3. A request is dispatched to SerpAPI, specifying the engine (Google Search, News, or Local) and localization settings.
  4. The skill receives the raw response and extracts the primary results field, such as organic_results or news_results.
  5. The structured search data is returned to the calling agent for context enrichment or data processing within the Openclaw Skills framework.

SerpAPI Search Setup

To use this skill, you must provide a SerpAPI key. You can set it as an environment variable or store it in a configuration file:

# Option 1: Set environment variable
export SERPAPI_API_KEY='your_api_key_here'

# Option 2: Store in config file
mkdir -p ~/.config/serpapi
echo "your_key_here" > ~/.config/serpapi/api_key
chmod 600 ~/.config/serpapi/api_key

Ensure that curl and python3 are installed on your system to handle the network requests and data processing.

SerpAPI Search Data Schema & Taxonomy

The skill organizes its output based on the engine used. The following table describes how results are categorized:

Engine Result Field Data Type
google organic_results List of web pages with snippets
google_news news_results List of articles with sources
google_local local_results List of businesses with locations

All queries within Openclaw Skills allow for metadata tags including country (2-letter code) and language (2-letter code) to refine the data taxonomy.

SerpAPI Search Advanced Features

  • Engine switching between standard search, news, and maps-based local results.
  • Geographic targeting using specific location strings like "London, United Kingdom".
  • Support for regional variations using standard ISO country and language codes.
  • Raw JSON output mode for complex data extraction pipelines.
  • Configurable result counts via the --num flag for optimized API usage.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*