apify-webhooks-events

Featured

Implement Apify webhooks for Actor run notifications and event-driven pipelines. Use when setting up run completion alerts, building event-driven scraping pipelines, or configuring ad-hoc webhooks for individual runs. Trigger: "apify webhook", "apify events", "actor run notification", "apify run succeeded webhook", "apify ad-hoc webhook".

AI & Automation 2,359 stars 334 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

# Apify Webhooks & Events ## Overview Configure webhooks to receive notifications when Actor runs complete, fail, or time out. Apify supports both persistent webhooks (for all runs of an Actor) and ad-hoc webhooks (for a single run). Event-driven architecture is the recommended pattern for production Apify integrations. ## Event Types | Event | Fired When | |-------|-----------| | `ACTOR.RUN.CREATED` | A new Actor run starts | | `ACTOR.RUN.SUCCEEDED` | Run finishes with `SUCCEEDED` status | | `ACTOR.RUN.FAILED` | Run finishes with `FAILED` status | | `ACTOR.RUN.ABORTED` | Run is manually or programmatically aborted | | `ACTOR.RUN.TIMED_OUT` | Run exceeds its timeout | | `ACTOR.RUN.RESURRECTED` | A finished run is resurrected | ## Instructions ### Step 1: Create a Persistent Webhook Persistent webhooks fire for every run of an Actor: ```typescript import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const webhook = await client.webhooks().create({ eventTypes: [ 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.TIMED_OUT', ], condition: { actorId: 'YOUR_ACTOR_ID', }, requestUrl: 'https://your-app.com/api/webhooks/apify', payloadTemplate: JSON.stringify({ eventType: '{{eventType}}', createdAt: '{{createdAt}}', actorId: '{{actorId}}', actorRunId: '{{actorRunId}}', defaultDatasetId: '{{resource.defaultDatasetId}}', defaultKeyValueStoreId: '{{resource.default...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category