Automate Apify with TypeScript

Start and monitor Apify Actors, tasks, and builds. Read run datasets, key-value records, and logs, or trigger automations from resource-scoped run and build events.

process-apify-runs.automation.ts
import { automation } from "automate.ax"
import { apify } from "automate.ax/apify"

export default automation("Process finished Apify runs", () => {
  const run = apify.onActorRunSucceeded({ actorId: "actor-id" })

  apify.listDatasetItems({
    datasetId: run.resource.defaultDatasetId,
    clean: true,
  })
})

What you can do

Actions

  • Start Actors, saved tasks, and Actor builds
  • Inspect, wait for, abort, and resurrect runs
  • Read dataset items, key-value records, and run logs
  • Inspect, wait for, and abort Actor builds

Triggers

  • Any Actor or task run lifecycle event
  • Run created, succeeded, failed, aborted, timed out, or resurrected
  • Any Actor build lifecycle event
  • Build created, succeeded, failed, aborted, or timed out

Start automating with Apify today

Start building