Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/serpapi-webhooks-events

@0d57af8
Run it yourself

Implement SerpAPI asynchronous searches and scheduled change detection without inventing a webhook callback contract. Use when building long-running searches or SERP monitoring. Trigger with "build SerpAPI async monitoring".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/serpapi-webhooks-events

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈62 tokens for metadata: the name and description. ≈999 when used: this file.

Description uses 3.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈250 characters, or 3.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

SerpAPI Async Search and Scheduled Monitoring

Overview

Use documented async submission plus Searches Archive polling, or scheduled synchronous searches, with explicit state, budgets, and reconciliation.

Prerequisites

  • An engine and use case that justify background processing or repeated monitoring
  • Poll deadline, schedule, allowance and throughput budgets, checkpoint store, and downstream owner
  • Data classification, retention decision, and sanitized state-machine fixtures

Tool Discipline

Use Read, Glob, and Grep to inspect jobs and consumers, WebFetch to verify async and archive contracts, and Write or Edit for state machines, schedules, checkpoints, fixtures, and redacted receipts.

Current Contract

SerpAPI documents async=true to submit without holding the connection and the Searches Archive API to retrieve the search by ID. Status can move through queued or processing to success or error. async must not be combined with no_cache and is not for accounts with Ludicrous Speed. The public contract does not define a generic callback webhook for completed searches.

Authentication

Use SERPAPI_KEY in the server-side submitter and poller. Persist search IDs and safe state, never key-bearing archive URLs. Authenticate and authorize any downstream notification endpoint using its own documented mechanism.

Instructions

  1. Confirm async is supported for the engine/account and that polling improves the use case over a bounded synchronous call.
  2. Define states SUBMITTED, QUEUED, PROCESSING, SUCCEEDED, FAILED, EXPIRED, and TIMED_OUT with terminal behavior.
  3. Submit with a parameter mapping containing "async": true; persist the search ID, normalized request hash, owner, deadline, and attempt budget.
  4. Poll through the official client's archive method or documented archive endpoint with increasing delay, jitter, and a hard deadline.
  5. On success, validate and normalize once; make downstream processing idempotent by search ID and payload version.
  6. For scheduled monitoring, store snapshots and compare normalized business fields rather than unstable raw payload order.
  7. Reconcile checkpoints, capacity consumption, missing terminal states, duplicates, late results, and notification failures.
  8. Test every state transition with fixtures before enabling an approved live schedule.

Approval Boundaries

Do not create a production schedule, send live searches, expose a notification endpoint, or mutate downstream records without named owners.

Output

Return the selected sync/async mode, state machine, polling and search budgets, checkpoint schema, idempotency key, fixture results, schedule/canary receipt, and reconciliation outcome.

Error Handling

Condition Response
Search remains queued/processing Stop at the deadline and retain resumable state.
Archive returns 410 Mark expired and require approval before submitting a replacement search.
Async is paired with no_cache Reject the request locally.
Callback contract is requested Use polling or obtain a current written vendor-specific contract; do not invent a webhook.

Example

submitted = client.search({"engine": "google", "q": "coffee", "async": True})
search_id = submitted["search_metadata"]["id"]

while before_deadline():
    archived = client.search_archive(search_id=search_id)
    status = archived["search_metadata"]["status"]
    if status in {"Success", "Error"}:
        break
    wait_with_jitter()

Resources

Next Steps

Canary one bounded async job and verify terminal-state, capacity, and checkpoint reconciliation before scheduling recurrence.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a structured approach for implementing SerpAPI asynchronous searches and monitoring. It includes guidance on authentication, state management, and error handling, while following security best practices such as jitter in polling and avoiding the persistence of secrets in URLs. It interacts with standard SerpAPI resources and official client libraries.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Network Edits files
Modelinherit
argument-hint
[engine] [poll-interval] [deadline]
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
All 6 allowed tools
ReadGlobGrepWebFetchWriteEdit
Other metadata
tags
[
  "saas",
  "serpapi",
  "async",
  "monitoring",
  "archive"
]
model
inherit
effort
high
compatibility
Designed for Claude Code; live async submission, polling, schedules, and downstream notifications require account and system-owner approval

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/serpapi-webhooks-events