Code-free automations and data extraction. Chain actions and data extraction on the web to generate business leads, marketing audiences and overall growth. Phantombuster gives you the tools and know-how to grow your business faster.

Integrate the Phantombuster API with the Python API

Setup the Phantombuster API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Phantombuster and Python remarkably fast. Free for developers.

Run Python Code with Python API on New Output Created Event from Phantombuster API
Phantombuster + Python
Try it
New Output Created Event from the Phantombuster API

Emit new events when new outputs are created. See the docs here

Try it
Launch Phantom with the Phantombuster API

Adds an agent to the launch queue, See the docs

Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

Try it

Overview of Phantombuster

Phantombuster is a powerful API that enables users to build efficient web
automation solutions. It provides a pool of services and tools to help users
quickly, easily and securely interact with multiple websites at once.

With Phantombuster, users can create custom automated solutions to perform
various tasks such as data extraction, lead generation, marketing automation,
and web scraping. Here are a few of the things users can build using

  • Data extraction - Phantombuster's API allows users to quickly and securely
    extract data from multiple sites and APIs, allowing users to access large
    amounts of data at once and extract only what they need.
  • Lead generation - Phantombuster's API connects to multiple social networks
    and websites, allowing users to quickly and accurately gather leads or
    potential contacts and store them into a database.
  • Automated marketing campaigns - Phantombuster's API enables users to create
    and launch automated marketing campaigns, automating the entire process and
    saving time and money.
  • Web scraping - Phantombuster's API allows users to scrape entire webpages or
    just parts of it, enabling streamlined data years.
  • Robot monitoring - Phantombuster's API enables users to monitor robots,
    allowing them to keep an eye on their tasks and ensuring their bots are
    running as efficiently as possible.
  • Data analytics - Phantombuster's API allows users to easily analyze and
    visualize their gathered data, allowing them to quickly make decisions based
    on their collected data.

Connect Phantombuster

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    phantombuster: {
      type: "app",
      app: "phantombuster",
  async run({steps, $}) {
    return await axios($, {
      url: ``,
      headers: {
        "X-Phantombuster-Key-1": `${this.phantombuster.$auth.api_key}`,

Overview of Python

Python API on Pipedream offers developers to build or automate a variety of
tasks from their web and cloud apps. With the Python API, users are able to
create comprehensive and flexible scripts, compose and manage environment
variables, and configure resources to perform a range of functions.

By using Pipedream, you can easily:

  • Create automated workflows that run on a specific schedule
  • Compose workflows across various apps and services
  • React to events in cloud services or form data
  • Automatically create content and notifications
  • Construct classifications and predictions
  • Analyze and react to sentiment, sentiment analysis and sentiment score
  • Connect backends to the frontend with serverless functions
  • Work with files and databases
  • Perform web requests and fetch data
  • Integrate third-party APIs into your apps
  • Orchestrate data processing tasks and pipelines
  • Create powerful application APIs with authentication and authorization
  • Design CI/CD pipelines and Continuous Delivery services
  • Connect databases like MongoDB and MySQL
  • Monitor connections and events
  • Generate alerts and notifications for corresponding events

Connect Python

def handler(pd: "pipedream"):
  # Reference data from previous steps
  # Return data for use in future steps
  return {"foo": {"test":True}}