Instagram-API 0,0,3,5,0 docker Packagist

Instagram's private API

logo Instagram PHP Latest Stable Version Total Downloads compatible License

This is Instagram’s private API. It has all the features the Instagram app has, including media upload.

Read the wiki and previous issues before opening a new one! Maybe your issue is already answered.

Frequently Asked Questions: F.A.Q.

Do you like this project? Support it by donating - Paypal Paypal: Donate - btc Bitcoin: 1DCEpC9wYXeUGXS58qSsqKzyy7HLTTXNYe



composer require mgp25/instagram-php
$instagram = new \InstagramAPI\Instagram();

If you want to test code that is in the master branch, which hasn’t been pushed as a release, you can use master.

composer require mgp25/instagram-php dev-master

Don’t have Composer?

You can download it here:


All examples can be found here

Why did i do the API?

After legal measures, Facebook, WhatsApp and Instagram blocked my accounts. In order to use Instagram on my phone i needed a new phone, as they banned my UDID, so that is basically why i made this API.

What is Instagram?

According to the company:

“Instagram is a fun and quirky way to share your life with friends through a series of pictures. Snap a photo with your mobile phone, then choose a filter to transform the image into a memory to keep around forever. We’re building Instagram to allow you to experience moments in your friends’ lives through pictures as they happen. We imagine a world more connected through photos.”



Terms and conditions

  • You will NOT use this API for marketing purposes (spam, massive sending…).
  • We do NOT give support to anyone that wants this API to send massive messages or similar.
  • We reserve the right to block any user of this repository that does not meet these conditions.


This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

Related Repositories



Python Client for Instagram API ...



The official gem for the Instagram API ...



Instagram's private API ...



NodeJS driver for the instagram API ...



PHP 5.3+ wrapper for the Instagram API ...

Top Contributors

mgp25 jpmoney5065 aryanbaghi webfreaks Vasiliy-Bondarenko cacadleaver matheuseduardo huttarichard Mifody Enelar RageBrahimi wukerplank lucchese Koc FFServices CreaDEV DmitryNaum emretekince ruscon hovsepyangev jonataa skorulis milesrichardson MMrR0b0TT wehmoen razumovv qrpike RachidLaasri RiTu1337 beshoo1


package version
netresearch/jsonmapper ^1.0
php >=5.6
guzzlehttp/guzzle ^6.2
ext-curl *
ext-mbstring *
ext-gd *
ext-exif *
ext-zlib *
react/event-loop ^0.4.3
react/promise ^2.5
react/socket ^0.8
binsoul/net-mqtt-client-react ^0.3.1
clue/socks-react ^0.8.2
clue/http-proxy-react ^1.1.0
dev react/http ^0.7.2
friendsofphp/php-cs-fixer ^2.4


-   v1.5.0.1 zip tar
-   v1.5 zip tar
-   v1.4.2 zip tar
-   v1.4 zip tar
-   v1.2.2 zip tar
-   v1.2.1 zip tar
-   v1.2.0 zip tar
-   v1.1.0 zip tar
-   v1.0.0 zip tar
-   1.3 zip tar