serpapi-rate-limits

Featured

Handle SerpApi rate limits and credit-based usage quotas. Use when managing API credit consumption, implementing request throttling, or optimizing search volume for your plan tier. Trigger: "serpapi rate limit", "serpapi credits", "serpapi quota", "serpapi throttle".

AI & Automation 2,274 stars 319 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SerpApi Rate Limits ## Overview SerpApi uses credit-based pricing (each search = 1 credit) plus per-second rate limits. Retrieving cached/archived searches does not consume credits. Plans range from 100 searches/month (free) to unlimited (enterprise). ## Plan Limits | Plan | Searches/Month | Rate Limit | Price | |------|---------------|------------|-------| | Free | 100 | 1/second | $0 | | Developer | 5,000 | 5/second | $75/mo | | Business | 15,000 | 10/second | $200/mo | | Enterprise | 50,000+ | 15/second | Custom | ## Instructions ### Step 1: Monitor Credit Usage ```python import serpapi, os client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"]) # Check remaining credits before batch operations account = client.account() remaining = account["plan_searches_left"] used = account["this_month_usage"] total = account["total_searches_left"] print(f"Used: {used}, Remaining: {remaining}") if remaining < 100: print("WARNING: Low credits remaining") ``` ### Step 2: Request Throttling ```python import time from threading import Semaphore class ThrottledSerpApi: def __init__(self, api_key: str, max_per_second: int = 5): self.client = serpapi.Client(api_key=api_key) self.semaphore = Semaphore(max_per_second) self.last_request = 0 def search(self, **params) -> dict: with self.semaphore: # Enforce minimum interval elapsed = time.time() - self.last_request if elapsed < 0.2: # 5/sec max ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

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. Trigger: "serpapi cost", "serpapi pricing", "reduce serpapi costs", "serpapi credits".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-security-basics

Secure SerpApi API keys and prevent credit abuse. Use when storing API keys, implementing backend proxies, or auditing SerpApi access patterns. Trigger: "serpapi security", "serpapi API key security", "secure serpapi".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-common-errors

Diagnose and fix SerpApi errors: invalid keys, exhausted credits, blocked searches. Use when SerpApi returns errors, empty results, or unexpected status codes. Trigger: "serpapi error", "fix serpapi", "serpapi not working", "serpapi empty results".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-performance-tuning

Optimize SerpApi performance with caching, async searches, and result filtering. Use when reducing latency, minimizing credit consumption, or optimizing search throughput. Trigger: "serpapi performance", "optimize serpapi", "serpapi caching", "serpapi slow".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-reference-architecture

Production architecture for SerpApi search services with caching, monitoring, and multi-engine support. Use when designing search features, building SERP tracking systems, or architecting search-powered applications. Trigger: "serpapi architecture", "serpapi project structure", "serpapi design".

2,274 Updated today
jeremylongshore