| name | serpapi-upgrade-migration |
| description | Migrate between SerpApi client versions and handle package changes.
Use when upgrading from google-search-results to serpapi package,
or handling API response schema changes.
Trigger: "upgrade serpapi", "serpapi migration", "serpapi new package".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Bash(git:*) |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","search","seo","serpapi"] |
| compatibility | Designed for Claude Code |
SerpApi Upgrade & Migration
Overview
The main migration path: google-search-results (legacy) to serpapi (current official package). The API itself is stable -- changes are in client library interfaces, not the REST API.
Instructions
Python: google-search-results to serpapi
from serpapi import GoogleSearch
search = GoogleSearch({"q": "test", "api_key": key})
result = search.get_dict()
import serpapi
client = serpapi.Client(api_key=key)
result = client.search(engine="google", q="test")
pip uninstall google-search-results
pip install serpapi
Node.js: google-search-results-nodejs to serpapi
import { GoogleSearch } from 'google-search-results-nodejs';
const search = new GoogleSearch('api_key');
search.json({ q: 'test', engine: 'google' }, (result) => { ... });
import { getJson } from 'serpapi';
const result = await ({ : , : , : key });