The idea
An Apify webhook sends an HTTP request to a URL when something happens to a run. The event you want is ACTOR.RUN.SUCCEEDED. The request body includes the run, and in it the id of the default dataset where the results are.
You add the webhook in the Actor's Integrations tab, or on a schedule or task. Paste the URL your workflow tool gives you and pick the event.
n8n
Start the workflow with a Webhook trigger node and copy its URL into Apify. Add an Apify node with Get dataset items, or an HTTP Request node, and use the dataset id from the incoming body (resource.defaultDatasetId). Then send the items to Slack, a database, a sheet or an email.
If you would rather poll than receive, put a Schedule Trigger first and use the Apify node's Run an Actor action, which waits for the run to finish.
Make
Use the Apify app's trigger for finished runs, or a Custom webhook module if you want to control the payload. Then add Get Dataset Items and map the fields (title, url, price and so on) to the next module.
Zapier
Zapier has an Apify app. You can also use Webhooks by Zapier with a Catch Hook trigger, which may require a paid Zapier plan: check their current plans. After the trigger, call the dataset items endpoint with a Webhooks step or the Apify action, then continue the Zap.
Fetching the items yourself
Whatever the tool, this is the request that returns the results as JSON. Replace DATASET_ID with the id from the webhook body.
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?format=json&clean=true" \
-H "Authorization: Bearer YOUR_TOKEN"Be careful with
Keep your Apify token in the credentials store of your workflow tool, never in a shared workflow export. Also handle the case where a run returns zero items: with only-new modes that is normal and the workflow should simply stop.
Actors that fit
- How to scrape LinkedIn job postings without a login
- How to get RemoteOK, WWR and Himalayas jobs in one feed
- How to scrape a public Telegram channel to JSON
- How to get Google Trends "Trending now" as JSON
- How to get Luma, Eventbrite and Meetup events in one feed