How to connect Phantombuster and Code
Create a New Scenario to Connect Phantombuster and Code
In the workspace, click the “Create New Scenario” button.

Add the First Step
Add the first node – a trigger that will initiate the scenario when it receives the required event. Triggers can be scheduled, called by a Phantombuster, triggered by another scenario, or executed manually (for testing purposes). In most cases, Phantombuster or Code will be your first step. To do this, click "Choose an app," find Phantombuster or Code, and select the appropriate trigger to start the scenario.

Add the Phantombuster Node
Select the Phantombuster node from the app selection panel on the right.

Phantombuster
Configure the Phantombuster
Click on the Phantombuster node to configure it. You can modify the Phantombuster URL and choose between DEV and PROD versions. You can also copy it for use in further automations.
Add the Code Node
Next, click the plus (+) icon on the Phantombuster node, select Code from the list of available apps, and choose the action you need from the list of nodes within Code.

Phantombuster
⚙
Code
Authenticate Code
Now, click the Code node and select the connection option. This can be an OAuth2 connection or an API key, which you can obtain in your Code settings. Authentication allows you to use Code through Latenode.
Configure the Phantombuster and Code Nodes
Next, configure the nodes by filling in the required parameters according to your logic. Fields marked with a red asterisk (*) are mandatory.
Set Up the Phantombuster and Code Integration
Use various Latenode nodes to transform data and enhance your integration:
- Branching: Create multiple branches within the scenario to handle complex logic.
- Merging: Combine different node branches into one, passing data through it.
- Plug n Play Nodes: Use nodes that don’t require account credentials.
- Ask AI: Use the GPT-powered option to add AI capabilities to any node.
- Wait: Set waiting times, either for intervals or until specific dates.
- Sub-scenarios (Nodules): Create sub-scenarios that are encapsulated in a single node.
- Iteration: Process arrays of data when needed.
- Code: Write custom code or ask our AI assistant to do it for you.

JavaScript
⚙
AI Anthropic Claude 3
⚙
Code
Trigger on Webhook
⚙
Phantombuster
⚙
⚙
Iterator
⚙
Webhook response
Save and Activate the Scenario
After configuring Phantombuster, Code, and any additional nodes, don’t forget to save the scenario and click "Deploy." Activating the scenario ensures it will run automatically whenever the trigger node receives input or a condition is met. By default, all newly created scenarios are deactivated.
Test the Scenario
Run the scenario by clicking “Run once” and triggering an event to check if the Phantombuster and Code integration works as expected. Depending on your setup, data should flow between Phantombuster and Code (or vice versa). Easily troubleshoot the scenario by reviewing the execution history to identify and fix any issues.
Most powerful ways to connect Phantombuster and Code
Phantombuster + Code + Google Sheets: Launch a Phantom with Phantombuster to scrape LinkedIn profiles. Use custom JavaScript code to process the scraped data and extract relevant information. Finally, add the enriched leads to a Google Sheet.
Code + Phantombuster + Airtable: Use custom code to get data, launch a Phantom in Phantombuster, filtering the results according to defined criteria in JavaScript. Create new records in Airtable for the filtered and validated leads.
Phantombuster and Code integration alternatives
About Phantombuster
Automate web data extraction with Phantombuster in Latenode. Scrape social media, websites, and directories to enrich your workflows. Build scalable lead generation or market research processes by integrating Phantombuster's agents directly into Latenode's visual, no-code environment. Use Latenode’s flexible tools for data transformation and routing.
Similar apps
Related categories
About Code
Need custom logic within your Latenode workflows? Code lets you add JavaScript snippets and NPM modules directly into your automation flows. Transform data, handle complex calculations, and connect to unsupported APIs. Latenode makes it easy to manage code alongside no-code steps, ensuring scalability and maintainability.
Related categories
See how Latenode works
FAQ Phantombuster and Code
How can I connect my Phantombuster account to Code using Latenode?
To connect your Phantombuster account to Code on Latenode, follow these steps:
- Sign in to your Latenode account.
- Navigate to the integrations section.
- Select Phantombuster and click on "Connect".
- Authenticate your Phantombuster and Code accounts by providing the necessary permissions.
- Once connected, you can create workflows using both apps.
Can I automate lead enrichment from LinkedIn using Phantombuster and Code?
Yes, you can! Latenode lets you use Phantombuster to extract LinkedIn data and then format and transform it with Code before saving it to your CRM. Automate at scale!
What types of tasks can I perform by integrating Phantombuster with Code?
Integrating Phantombuster with Code allows you to perform various tasks, including:
- Scraping product data from e-commerce sites and customizing the output format.
- Extracting social media profiles and cleaning the data with custom scripts.
- Automating content creation using scraped data to feed custom code logic.
- Building personalized email lists enriched with advanced data transformations.
- Monitoring competitor pricing and sending alerts based on custom thresholds.
How easily can I scale my Phantombuster automations on Latenode?
Latenode provides robust scaling options, letting you run Phantombuster tasks in parallel, managed through queues and advanced error handling.
Are there any limitations to the Phantombuster and Code integration on Latenode?
While the integration is powerful, there are certain limitations to be aware of:
- Complex data transformations in Code may require significant processing time.
- Phantombuster's API usage is subject to their rate limits, affecting workflow speed.
- Real-time data synchronization between the two platforms isn't supported by default.