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,944 stars 440 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category