serpapi-webhooks-events

Featured

Implement SerpApi async search callbacks and scheduled search monitoring. Use when setting up search monitoring, SERP tracking pipelines, or async search result retrieval. Trigger: "serpapi webhooks", "serpapi monitoring", "serpapi scheduled search", "serpapi async".

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 Webhooks & Events ## Overview SerpApi does not have traditional webhooks, but supports async searches and the Searches Archive API. Build SERP monitoring by combining scheduled searches with change detection. Common use case: track keyword rankings over time. ## Instructions ### Step 1: Async Search with Polling ```python import serpapi, os, time client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"]) # Submit async search (returns immediately) result = client.search(engine="google", q="your keyword", async_search=True) search_id = result["search_metadata"]["id"] print(f"Submitted: {search_id}") # Poll for completion while True: archived = client.search(engine="google", search_id=search_id) status = archived["search_metadata"]["status"] if status == "Success": break elif status == "Error": raise Exception(f"Search failed: {archived.get('error')}") time.sleep(2) print(f"Results: {len(archived.get('organic_results', []))}") ``` ### Step 2: SERP Monitoring Pipeline ```python import json, hashlib from datetime import datetime class SerpMonitor: def __init__(self, client, db): self.client = client self.db = db def track_keyword(self, keyword: str, domain: str): """Track a domain's ranking position for a keyword.""" result = self.client.search(engine="google", q=keyword, num=100) organic = result.get("organic_results", []) position = None for r in organ...

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-install-auth

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".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-hello-world

Run your first SerpApi search -- Google, Bing, or YouTube results as JSON. Use when starting with SerpApi, testing search queries, or learning the structured result format. Trigger: "serpapi hello world", "serpapi example", "serpapi first search".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-core-workflow-b

Search Bing, YouTube, Google Shopping, Google News, and Google Maps with SerpApi. Use when scraping non-Google engines, building multi-engine search, or extracting video/news/shopping/maps data. Trigger: "serpapi youtube", "serpapi bing", "serpapi news", "serpapi shopping".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-core-workflow-a

Google Search scraping with SerpApi -- organic results, knowledge graph, answer boxes. Use when building search-powered features, SEO monitoring, or extracting structured data from Google results. Trigger: "serpapi google search", "scrape google", "serpapi organic results".

2,274 Updated today
jeremylongshore
AI & Automation Featured

serpapi-rate-limits

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".

2,274 Updated today
jeremylongshore