Cancel Sent Follow Requests on Instagram using JavaScript

On Instagram, you might have sent too many requests to others and you may not know which all have been still pending as requests and might want to cancel it. Don't worry Instagram now allows you to see the accounts you have requested to follow and still pending without accepting or canceling.

On the Instagram app, go to Settings > Security > Access Data > Current follow requests.
Now you can see a list of accounts having pending requests you have sent.

To cancel these requests manually you have to copy each Instagram ID and search for it. After finding the account of each person one by one you can cancel the request like we normally do.

But you can automate this process using JavaScript. For that go to this page on your PC browser. (

Make sure yo have allowed Pop-ups for this site on your browser. If not allow Pop-ups for this site.
To allow Pop-ups on Chrome and Mozilla follow the steps on the links.

If you have more than 10 requests pending, there will be a View More button But Don't Click it. It's because Instagram doesn't allow more than about 10 requests(might be 12 or 13) to be canceled or unfollowed at once even if you are doing it manually just refresh the page after you cancel the request or unfollow after this limit you will see that it's not done.  

Open Inspect Element mode on your browser by right-clicking or by keyboard shortcut(F12).

Go to the console tab and paste the code given below.
 let i=0;  
 var unfollow="global";  
 var final="global";  
 var link=["link","link2"];  
 var proWindow=[""]  
 var ids = document.querySelectorAll(".-utLf");  

Now click Enter to run the code. Now you will see all the accounts opened on separate tabs on your browser. After all the tabs of the account have been loaded completely, Paste the code below on the same console window below the first code.
 unfollow = proWindow[i].document.querySelector("button._8A5w5");;
 final = proWindow[i].document.querySelector(".aOOlW");;}

Click Enter to run the code and see the message "Completed displayed" on your console window. Now go through the account tabs which have opened before to see all them unfollowed or canceled the request.

As I have warned you earlier if you go doing this to all the time, you will find on refreshing the accounts that it has not been unfollowed. This is an Instagram algorithm to reduce scammers, even if you manually try to unfollow more than 10 or 12 accounts at a time it will not workout. 


This tutorial post is just for educational and usage of it should be taken in your own risk. Using the above method may violate Instagram policies(as it changes overtime). I will not be responsible for any damages caused by the above method.
Cancel Sent Follow Requests on Instagram using JavaScript Cancel Sent Follow Requests on Instagram using JavaScript Reviewed by Jobin Jose on July 25, 2019 Rating: 5


  1. This comment has been removed by a blog administrator.

  2. after some account it stop and don't work any more can make one that block then unblock the account so it unfollow them even when it already stop you from unfollow others

  3. Thank you so much for sharing amazing and informative article and i also want you to read happy valentines day


Powered by Blogger.