Agent skill · Workflow & Productivity

serpapi-cost-tuning

Optimize SerpApi costs by reducing credit consumption and choosing the right plan. Use when analyzing search usage, reducing monthly costs, or implementing credit-saving strategies. '

intentsolutions.io2,596★ · 1 repos on radarProfile →
claude-coderead-onlyMIT
Install
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill serpapi-cost-tuning --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Version: 1.4.0
Declared author: Jeremy Longshore <jeremy@intentsolutions.io>
Allowed tools: ReadGrep
Requires: Designed for Claude Code
Path: skills/.curated/serpapi-cost-tuning/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,596
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# SerpApi Cost Tuning ## Overview SerpApi charges per search (1 credit each). Plans: Free (100/mo), Developer ($75, 5K/mo), Business ($200, 15K/mo), Enterprise (custom). Key savings: caching, archive retrieval (free), and Google Light API. ## Cost Strategies ### Strategy 1: Aggressive Caching (Biggest Savings) ```python # Search results rarely change within an hour # Cache for 1 hour = up to 24x credit reduction for hourly queries # Cache for 1 day = up to 720x for queries checked every 2 minutes import hashlib, json, redis, serpapi, os r = redis.Redis.from_url(os.environ["REDIS_URL"]) client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"]) def cached_search(ttl_seconds=3600, **params): key = f"serpapi:{hashlib.md5(json.dumps(params, sort_keys=True).encode()).hexdigest()}" cached = r.get(key) if cached: return json.loads(cached) # FREE: no credit consumed result = client.search(**params) # 1 credit r.setex(key, ttl_seconds, json.dumps(dict(result))) return result ``` ### Strategy 2: Archive API (Free Retrieval) ```python # Every search result is stored in the archive # Retrieve by search_id at no cost archived = client.search(engine="google", search_id="previous_id") # 0 cre

What's inside
Steps it walks through
  1. Overview
  2. Cost Strategies
  3. Strategy 1: Aggressive Caching (Biggest Savings)
  4. Strategy 2: Archive API (Free Retrieval)
  5. Strategy 3: Google Light API (Same Cost, Faster)
  6. Strategy 4: Reduce num Parameter
  7. Cost Calculator
  8. Usage Monitoring
  9. Error Handling
  10. Resources
  11. Next Steps
Commands it runs
Daily credit check
curl -s "https://serpapi.com/account.json?api_key=$SERPAPI_API_KEY" | jq '{
More from claude-code-plugins-plus-skills
All skills →
About this skill
What does the serpapi-cost-tuning skill do?

Optimize SerpApi costs by reducing credit consumption and choosing the right plan. Use when analyzing search usage, reducing monthly costs, or implementing credit-saving strategies. '

How do I install it?

Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill serpapi-cost-tuning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,596 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going