# How To Use "Instagram Downloader API v2"?

**<mark>Please use v1 now : </mark>** [**<mark>https://blog.bhawanigarg.com/instagram-downloader-free-api</mark>**](https://blog.bhawanigarg.com/instagram-downloader-free-api)

Now you can build your own Instagram downloader website using our free API. Our API supports everything from [Instagram.com](http://Instagram.com) for example photos, videos, reels, stories and more.

I will be changing the old API with the new version, so anyone using the old and unstable version should switch to the new and stable version.

# How to use it?

API Link: `https://api.bhawanigarg.com/social/instagram/?link=&cookie=`

Available variables: **link** & **cookie**

Available methods: **GET & POST**

**Link**: This is a string collection of all URLs that will be sent to our system.

**Cookie**\[BASE 64 ENCODED\]: This will send an "Instagram cookie" to us.

# How To Get Instagram Cookie?

Open your instagram account then open console and refresh the page. Rest is in the video below.

<iframe width="560" height="315" src="https://www.youtube.com/embed/6MFyCRNR5AI?controls=0"></iframe>

**Your Instagram cookie should look like this before encoding:**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671112052796/oBY-YWAcQ.png align="center")

**And should look like this after encoding it in base64:**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671112129520/_r07hzWNk.png align="center")

**So your final link should look like this**:

`https://api.bhawanigarg.com/social/instagram/?link=https://www.instagram.com/thebhawanigarg/&cookie=YW5kcm9.......lZckVhODt8fA==`

*I have removed the full cookie from the above URL, it was just to show you.*

Works with Instagram's Photos, Videos, Stories, DP, Highlights, IGTV and Reels!

***<mark>To-Do List:</mark>***  
1\. *Ability to add proxies while sending requests.*  
2\. *Ability to add user-agent while sending requests.*

*Please feel free to mail me for anything else at <mark>hi@bhawanigarg.com</mark>*
