Webhook logo
Apify logo

Workflow template

Run an Apify Actor from a webhook

Start an asynchronous Apify Actor run from a webhook containing actor_id and input. The prepared action sets a 60-second run timeout and USD 0.05 maximum charge; review the chosen Actor's pricing and input requirements before activation.

How it works

From webhook JSON to an asynchronous Actor run

1 Trigger · 1 Action
Webhook1 · Trigger

Web request

Receive a JSON request with actor_id and an input object at the workflow's generated webhook URL. The input object is serialized as JSON and passed to the selected Actor.

Apify2 · Action

Run an Apify Actor from a webhook

Start the Actor using actorId and the serialized input. Set timeout to 60 seconds and max_total_charge_usd to 0.05. The action returns run information without waiting for completion or fetching dataset items.

The result

An Actor run started with your supplied input

The action starts a run asynchronously. A successful start is not confirmation that the Actor finished or produced usable results. The example shows the incoming request, not a completed run response.

Example Actor-start webhook JSON

{ "actor_id": "YOUR_ACTOR_ID", "input": { "message": "Example message for your Actor" } }

Replace the placeholder with an Actor you are authorized to run and adapt input to its schema. The prepared runtime and charge settings apply to each start; this example does not execute an Actor.

Before activation

Set up your workflow

  1. Choose the Actor and review its pricing

    Connect Apify and select an Actor you are authorized to run. Check its required input and pricing, including whether the prepared USD 0.05 maximum charge and 60-second timeout are suitable before activating the workflow.

  2. Prepare the webhook sender and input object

    Use the workflow's generated webhook URL and send actor_id plus input as JSON. Adapt the sample to the Actor's schema and protect access to the URL: the sender selects the Actor and input used by your connected account.

  3. Inspect a controlled start separately from completion

    After reviewing the Actor and limits, activate and send a controlled request with fictional input. Inspect the returned run information and check completion in Apify separately; add another step or workflow if you need completed dataset records.

Details and limitations
  • Starting and finishing are different steps. The prepared action starts an asynchronous run and does not wait for completion. It does not fetch dataset records or send a completion notification. Inspect the run's current state and results in Apify.

  • The limits apply to each run. The action sets a 60-second timeout and USD 0.05 maximum charge. Review Actor pricing and eligibility before use; these settings do not guarantee success or create an account-wide spending budget. Manual reruns can start another potentially billable run.

  • Only actor_id and input are mapped from the request. The input object is serialized as JSON, preserving nested values such as 0, false and null. Incoming timeout or charge fields do not override the prepared action constants; edit those mappings deliberately if requirements change.

Questions about this template

Will the workflow wait for the Actor's results?

No. It starts a run asynchronously and returns run information. Starting successfully is not the same as completing successfully; fetching dataset records or sending a completion alert requires additional workflow steps.

What should actor_id and input contain?

actor_id identifies an Actor you are authorized to run. input must match that Actor's schema; the object is serialized as JSON, including nested values. Replace the placeholder and sample message before use.

What runtime and charge limits are prepared?

The action sets timeout to 60 seconds and max_total_charge_usd to 0.05. Review the selected Actor's pricing before activation. These are per-run settings, not a guarantee of success or an account-wide spending limit.

Can request fields override the limits or start the run again?

The webhook maps actor_id and input only; incoming timeout or charge fields do not override the constants. Edit the action mappings if needed. A manual rerun can start a separate, potentially billable Actor run.

Explore connected apps

App integrations