Giter VIP home page Giter VIP logo

instagram-api-2's Introduction

Instagram-API compatible

This is a PHP library which emulates Instagram's Private API. This library is just a start with latest version functions.

With 2FA(need command line)

Do you like this project? Support it by donating

socialAPIS

  • btc Bitcoin: bc1qkauwj52rr6pelckjfq4htgjl7jvamkq5lklqca

Installation

You Need!

  1. Use PHP >= 7
  2. Enabled OpenSSL on PHP.

Install this library

We use composer to distribute our code effectively and easily. If you do not already have composer installed, you can download and install it here here.

Once you have composer installed, you can do the following:

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

$ig = new \InstagramFollowers\Instagram();
$loginResponse = $ig->login("username", "password");

or you can grab the last login response by

$loginResponse = $instagram->accountRequest->loginResponse;

Warning about moving data to a different server

Composer checks your system's capabilities and selects libraries based on your current machine (where you are running the composer command). So if you run Composer on machine A to install this library, it will check machine A's capabilities and will install libraries appropriate for that machine (such as installing the PHP 7+ versions of various libraries). If you then move your whole installation to machine B instead, it will not work unless machine B has the exact same capabilities (same or higher PHP version and PHP extensions)! Therefore, you should always run the Composer-command on your intended target machine instead of your local machine.

Access last requests

Your requests are never get lost, they are all kept in memory. Example:

$userInfo = $instagram->usersRequest->getInfoByName($user_pk);

you can every time access your last response for this function like this

$lastGetInfoResposne = $instagram->usersRequest->getInfoByNameResponse;
$userPK = $lastGetInfoResponse->getUser()->getPk();

Examples

All examples can be found here.

Why did I make this API?

After trying of all on the internet instagram-php-private APIS to grow my instagram account, i needed to build something like this.

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

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.

instagram-api-2's People

Contributors

socialapis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.