|
| 1 | +--- |
| 2 | +title: Pipedream integration |
| 3 | +description: Connect Apify with Pipedream to automate workflows by running Actors, managing storage, and reacting to Actor or task run events. |
| 4 | +sidebar_label: Pipedream |
| 5 | +sidebar_position: 7 |
| 6 | +slug: /integrations/pipedream |
| 7 | +--- |
| 8 | + |
| 9 | +import ThirdPartyDisclaimer from '@site/sources/_partials/_third-party-integration.mdx'; |
| 10 | + |
| 11 | +[Pipedream](https://pipedream.com/) is a workflow automation platform for developers. With the [Apify integration for Pipedream](https://pipedream.com/apps/apify), you can run Actors, manage datasets and key-value stores, and trigger workflows when Actor or task runs finish. |
| 12 | + |
| 13 | +<ThirdPartyDisclaimer /> |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +Before you begin, make sure you have: |
| 18 | + |
| 19 | +- An [Apify account](https://console.apify.com/) |
| 20 | +- A [Pipedream account](https://pipedream.com/) |
| 21 | + |
| 22 | +## Connect Apify with Pipedream |
| 23 | + |
| 24 | +1. Log into your Pipedream account and [create a new workflow](https://pipedream.com/docs/workflows). |
| 25 | +1. [Add an Apify step](https://pipedream.com/docs/workflows/building-workflows/steps) (trigger or action) to your workflow. Select one of two Apify apps: |
| 26 | + |
| 27 | +  |
| 28 | + |
| 29 | + - **Apify** - Authenticate with your Apify API token. Find it in [Apify Console](https://console.apify.com/settings/integrations) under **Settings > Integrations**. |
| 30 | + - **Apify (OAuth)** - Authorize access to your Apify account via OAuth. |
| 31 | +1. Follow the prompts to authenticate your account. |
| 32 | + |
| 33 | + See Pipedream's [connected accounts documentation](https://pipedream.com/docs/apps/connected-accounts). |
| 34 | +1. After connecting, you can use any Apify trigger or action in your workflows. |
| 35 | + |
| 36 | +## Use Apify as a trigger |
| 37 | + |
| 38 | +[Triggers](https://pipedream.com/docs/workflows/building-workflows/triggers) start your Pipedream workflow automatically when an event occurs in Apify. |
| 39 | + |
| 40 | +1. [Create a new workflow](https://pipedream.com/docs/workflows) in Pipedream. |
| 41 | +1. Select **Add Trigger** and search for **Apify**. |
| 42 | +1. Select the trigger you want to use, e.g. **New Finished Actor Run**. |
| 43 | +1. Configure the trigger by selecting the Actor or task to monitor. |
| 44 | + |
| 45 | +  |
| 46 | +1. Add subsequent steps to process the output. |
| 47 | + |
| 48 | +## Use Apify as an action |
| 49 | + |
| 50 | +[Actions](https://pipedream.com/docs/workflows/building-workflows/actions) let you perform Apify operations as part of a workflow. For example, you can run an Actor and then retrieve its dataset items. |
| 51 | + |
| 52 | +1. [Create a new workflow](https://pipedream.com/docs/workflows) in Pipedream with any trigger. |
| 53 | +1. Click **+** to add a step and search for **Apify**. |
| 54 | +1. Select the action you want to use, e.g. **Run Actor**. |
| 55 | +1. Configure the action parameters: |
| 56 | + - Select the Actor from Apify Store or your recently used Actors |
| 57 | + - Provide the Actor input as JSON |
| 58 | + - Set optional parameters such as timeout, memory, and build tag |
| 59 | + |
| 60 | +  |
| 61 | +1. Add another Apify step with **Get Dataset Items** to retrieve the Actor's output. |
| 62 | +1. Add any subsequent steps to process or store the data. |
| 63 | + |
| 64 | +## Triggers |
| 65 | + |
| 66 | +- **New finished Actor run (instant)** - Triggers when a selected Actor run finishes. |
| 67 | +- **New finished task run (instant)** - Triggers when a selected task run finishes. |
| 68 | + |
| 69 | +## Actions |
| 70 | + |
| 71 | +- **Run Actor** - Runs a selected Actor with customizable input and configuration. |
| 72 | +- **Run task** - Runs a selected Actor task and optionally waits for it to finish. |
| 73 | +- **Run task synchronously** - Runs a selected task and returns its dataset items when it finishes. |
| 74 | +- **Scrape single URL** - Runs a scraper on a specified URL and returns its content as HTML. Use this for extracting content from a single page, e.g. in LLM workflows. |
| 75 | +- **Get dataset items** - Retrieves items from a [dataset](/platform/storage/dataset). |
| 76 | +- **Get key-value store record** - Retrieves a record from a [key-value store](/platform/storage/key-value-store). |
| 77 | +- **Set key-value store record** - Creates or updates a record in a [key-value store](/platform/storage/key-value-store). |
| 78 | + |
| 79 | +## Resources |
| 80 | + |
| 81 | +- [Apify integration page on Pipedream](https://pipedream.com/apps/apify) |
| 82 | +- [Pipedream documentation](https://pipedream.com/docs/) |
| 83 | +- [Integration source code on GitHub](https://github.com/PipedreamHQ/pipedream/tree/master/components/apify) |
| 84 | + |
| 85 | +If you have any questions or need help, reach out on the [Apify developer community on Discord](https://discord.com/invite/jyEM2PRvMU). |
0 commit comments