Using PhantomBuster’s API

Follow this guide for step-by-step instructions on using PhantomBuster’s API to automate your actions directly from your app.

How to enable developer features

  1. Navigate to your PhantomBuster Dashboard and sign in.
    Untitled (14).jpeg
  2. Hover over your name in the upper right corner of the page and go to the User settings page.
    Untitled (42).jpeg
  3. Click on Enable developer mode, and then on Save settings.
    Untitled (43).jpeg
  4. You’re all set.

 

How to create an API key?

  1. Navigate to your PhantomBuster Dashboard and sign in.
    Untitled (14).jpeg.png

  2. Hover over your name in the upper right corner of the page and go to the Shared or My Workspace settings page.
    Untitled (44).jpeg

  3. Click on API Keys and then on Add API key.
    Untitled (45).jpeg.png

  4. Copy your API key and save it somewhere secure for future use.
    Untitled (46).jpeg.png

 

How to launch a Phantom via API call

⚠️ Before launching Phantoms via API, we recommend testing the automation settings in manual launch.

1. Navigate to the Solutions page and click on Use now to select the Phantom you wish to use.

Untitled (47).jpeg

2. Fill in all the required settings.

3. After the test, go back to Phantom settings and switch them to JSON.
Untitled (49).jpeg.png

4. A visible argument can be used in your API Connector or directly in the hub.phantombuster.com - launch endpoint page.
image.png

5. To launch a Phantom with specific settings, feed the API call with settings, fill in the corresponding argument, and provide the PhantomBuster API key and the agent (Phantom) ID.

💡You can find the Phantom ID at the end of your Phantom URL.For example, for this URL: https://phantombuster.com/xxx/phantoms/yyy/console - The Phantom ID is yyy.
Untitled (50).jpeg

Untitled (51).jpeg
6. To launch a Phantom with existing settings, you need to feed the API call request with the agent (Phantom) ID and PhantomBuster API key.

Untitled (52).jpeg

💡 You can find whole argument under API subpage directly from Phantom console page.

Untitled (53).jpeg

Untitled (54).jpeg.png

 

Code a Phantom

If none of the Phantoms available on the PhantomBuster Solutions page meet your needs, you can find handy instructions on how to code your own Phantom here.

 

Related guides

Retrieve Your Results Via API

How to Connect PhantomBuster with Make

 

You can contact Support at any time for additional details on using PhantomBuster’s API.

Was this article helpful?
0 out of 0 found this helpful