Skip to main content

Command Palette

Search for a command to run...

How To Use "Instagram Downloader API v2"?

Updated
1 min read
How To Use "Instagram Downloader API v2"?

Please use v1 now : 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 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.

Your Instagram cookie should look like this before encoding:

And should look like this after encoding it in base64:

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!

To-Do List:
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 hi@bhawanigarg.com

S

nó không còn hoạt động

S
Sid3y ago

Hi, the older API used to work fine but this newer API does not return any data, it always return an empty array. Please tell me what I am doing wrong or if there is an issue, then please fix this.

API Used: https://api. bhawanigarg. com/social/instagram/?link=https://www. instagram. com/p/Cmp46ZqrFvF/?igshid=YmMyMTA2M2Y=

Method Used: GET

Response: { "success": true, "data_type": 2, "data": [], "developer": { "author": "Bhawani Garg", "organization": "BhawaniGarg", "website": "https://bhawanigarg. com", "How-To-Use-This-API": "https://blog. bhawanigarg. com/instagram-downloader-api-v2" } }

PS: The Spaces in the URLs is added intensionally, as I am new here and the system wont let me submit a comment that includes any links.

B

Hi the old api used to work without cookie but this api needs an instagram account cookie to work. You aren't passing an instagram account cookie.

The old api was going down too much so this API won't go down until your cookie is fine.

S
Sid3y ago

Bhawani Garg Any possibility to use it without having an Instagram Cookie?