How to get your cookies with Phantombuster

To take action on your behalf, Phantombuster needs to authenticate as you. To do this, it needs (some of) your session cookie(s).



What are session cookies?

They are one string of text generated by the websites you connect to when you log in, and they're stored in your browser. Your Phantoms will need them to use your account to automate the actions you want them to.

Don't worry! Phantombuster doesn't know your password, nor your email address, and these cookies reset when you manually log out of a website.


How to get your cookies using Phantombuster's browser extension 

To make your life a little bit easier, we've got a browser extension which will automatically retrieve your cookies for you. You can install this directly from your Phantom's Setup by clicking the 'Install chrome extension' button (If the button doesn't appear, click on the '(?)'): 


Alternatively, you can find it here for Chrome or Firefox.

The extension will work for all of the Phantoms and social networks on our Store, so you only have to install it once.

Once you've done this, refresh the page of your Setup and the button should have transformed - it'll now say 'Get cookie from _____' (this will vary depending on what Phantom you're using):


All you have to do at this point is click the button, and your cookie will populate the box automatically! It'll look something like this:



How to get your cookies manually

This tutorial is written for Chrome users. Here's how to access your cookies with Firefox or Safari.

If you aren't using Chrome or Firefox, don't worry. You can still find your session cookies for any site manually.

Open a new tab and go to the website whose cookies you're after. Right-click anywhere on the page and open the inspector: 


Locate the 'Application' tab:


Then select 'Cookies' > '':


Locate the cookie you're looking for:


So, for example, for LinkedIn you'll be looking for the 'li_at' cookie's value:


Copy this and paste it back into your Phantom's configuration.


You're all set!

Just one thing to note: make sure not to manually log out of the site you've retrieved your cookie for, as this will cause it to expire.

Was this article helpful?
38 out of 64 found this helpful