Skip to content

mahdidoraj/Instagram-API

Repository files navigation

logo Instagram PHP Latest Stable Version Total Downloads compatible License

This is Instagram's private API. It has almost all the features the Instagram app has, including media upload, direct messaging, stories and more.

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

Frequently Asked Questions: F.A.Q.

Do you like this project? Support it by donating

mgp25


Installation

Using Composer

composer require mgp25/instagram-php
require __DIR__.'/../vendor/autoload.php';

$ig = new \InstagramAPI\Instagram();

If you want to test new and possibly unstable code that is in the master branch, and which hasn't yet been released, then you can use master instead (at your own risk):

composer require mgp25/instagram-php dev-master

I don't have Composer

You can download it here.

Examples

All examples can be found here.

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report any unacceptable behavior.

How do I contribute

If you would like to contribute to this project, please feel free to submit a pull request.

Before you do, take a look at the contributing guide.

Why did I make this 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."

License

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html

Terms and conditions

  • You will NOT use this API for marketing purposes (spam, botting, harassment, massive bulk messaging...).
  • We do NOT give support to anyone who wants to use this API to send spam or commit other crimes.
  • We reserve the right to block any user of this repository that does not meet these conditions.

Legal

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.