Find out all the profiles that an an Instagram account follows
Sometimes it can be useful to know which accounts are followed by a specific one. With this API, choose your own or any Instagram account and get in seconds a clear listing of every account followed by your target.
What will you need? ⚙️
Session cookie: Your session cookie from Instagram.
Spreadsheet URL: The link of a Google Spreadsheet with Instagram profile URLs in it, or a single specific Instagram URL.
Number of followers to collect per profile: If you want a fixed number of followers scraped (or all of them if empty).
Number of profiles to process per launch: The number of lines from your spreadsheet to process.
(You already have all that? Click straight away on "Use this API")
Which steps to follow?
1. Create an account on Phantombuster.com 💻
If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.
2. Use this API on your account.👌
Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).
3. Click on Configure me!
You'll now see the 3 configuration dots blinking. Click on them.
4. Instagram authentication 🔑
Because the script will manipulate Instagram for you, it needs to be logged on your Instagram account. For that you just need to copy paste your session cookie in the script argument:
Using Chrome, go to your Instagram homepage and open the inspector
→ Right click anywhere on the page and select “Inspect”
→ CMD+OPT+i on macOS
→ F12 or CTRL+MAJ+i on Windows
Locate the “Application” tab
Select “Cookies” > “http://www.instagram.com” on the left menu.
Locate the “sessionid” cookie.
Copy what’s under “Value” (Double click on it then Ctrl+C) and paste it into your API Configuration
Below your session cookie you’ll find Spreadsheet URL
Enter in the text field a link of a Google Spreadsheet with this same format (only column A is mandatory):
Your spreadsheet should contain a list of Instagram Profile URLs (one link per row).
You can specify the name of the column that contains the profile links. Simply enter the column name in the next text field.
Please make sure your file is publicly accessible!
You can also enter a CSV file URL, it will work the same :)
You can also enter a single Instagram profile URL directly in the field.
Click on Launch & Enjoy!
It’s done! All that is left to do is to click on "launch" to try your script!
⚙️️Repetition setup ⚙️
Now that your API is ready, you should set up repetitive launches. That way, your scraping will be spread over days, weeks or even months. You can also specify the number of profiles to process per launch, or leave that field blank to process every profile from your list.
To do so, simply hit the “Settings” button to define when your API is launched:
Then, select a frequency:
Don't forget to click 💾 Save at the bottom of the page!
For example, 10 profiles processed per launch, 8 launches per day: you'll process a total of 80 profiles per day.
Please be aware that this API will manipulate your Instagram account on your behalf.
Instagram has set rate limits of 200 requests an hour per token. We have noticed that after a few thousands profiles collected, you'll need to wait around 15min before scraping again. We recommend spacing launches consequently.
This API will output CSV and/or JSON containing the following fields:
profileUrl (Instagram profile URL)
imageUrl (Profile picture URL)
profileName (Instagram username)
fullName (Full name of the person)
followedByUser (If you follow that account)
Share this API
Your friends & colleagues need to know about this!