Instagram's private API
Switch branches/tags
Clone or download
Pull request Compare This branch is 1 commit ahead, 1882 commits behind mgp25:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

logo Instagram PHP Latest Stable Version Total Downloads compatible License

Instagram's private API.

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-api 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.