| name | serpapi-install-auth |
| description | Install SerpApi client and configure API key authentication.
Use when setting up SerpApi for search result scraping, configuring API keys,
or initializing the serpapi Python/Node package.
Trigger: "install serpapi", "setup serpapi", "serpapi auth", "serpapi API key".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Grep |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","search","seo","serpapi"] |
| compatibility | Designed for Claude Code |
SerpApi Install & Auth
Overview
Install the SerpApi client library and configure API key authentication. SerpApi provides structured JSON results from Google, Bing, YouTube, and 15+ search engines. Auth is API-key-based via the api_key parameter or SERPAPI_API_KEY env var.
Prerequisites
Instructions
Step 1: Install Client
pip install serpapi
npm install serpapi
pip install google-search-results
Step 2: Configure API Key
SERPAPI_API_KEY=your-api-key-here
Step 3: Verify Connection (Python)
import serpapi, os
client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"])
result = client.search(engine="google", q="test", num=1)
print(f"Connected! Search ID: {result['search_metadata']['id']}")
Step 4: Verify Connection (Node.js)
import { getJson } from 'serpapi';
const result = await getJson({
engine: 'google', q: 'test', num: 1,
api_key: process.env.SERPAPI_API_KEY,
});
console.();