suphiyasin / instagram-api

Simple PHP Private API that allows you to use both mobile and web APIs of Instagram
https://suphi.org
MIT License
30 stars 10 forks source link
api-instagram instagram instagram-api instagram-api-php instagram-automation instagram-mobil-api instagram-mobile instagram-php- instagram-php-api instagram-php-scraper instagram-unofficial-api instagram-web-api php php-instagram suphigram

[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url] Hits


Logo

Suphiyasin / Instagram-API

With this PHP library, you can use all features of the instagram Mobile App
Feedback

## Donation | Coin | Network | Wallet | | ------------- | ------------- | ------------- | | USDT | TRC-20 | TRsWGn75MPwMgKaEuETPqB4P67e6w9L9JT | # Packet Features | Feature | Instagram Mobil API | |----------------------------------------|-----------------------------------| | Use Proxy | :heavy_check_mark: | | Login | :heavy_check_mark: | | Two Factor Login | :heavy_check_mark:
(Email - DUO Tested) | | Suspicious Login Code | :heavy_check_mark:
(If you bypass the suspicious login but add double factor to the account, account owner verification will be required.The suspicious login code and the account ownership code are not the same.) | | Add Duo | :heavy_check_mark: | | Change Password | :heavy_check_mark: | | Change Email | :heavy_check_mark: | | Duo Remove | :heavy_check_mark: | | Get My Inbox | :heavy_check_mark: | | Send Message | :heavy_check_mark: | | Get User Info | :heavy_check_mark: | | Info my account | :heavy_check_mark: | | Phone Remove | :heavy_check_mark: | | Email Remove | :heavy_check_mark: | | Change Birthday | :heavy_check_mark: | | Add Phone | :heavy_check_mark:
(SMS Verification Needed) | | See Duo Backup Codes | :heavy_check_mark: | | Upload new profile photo | :heavy_check_mark: | | Like a post | :heavy_check_mark: | | Unlike a post | :heavy_check_mark: | | Save a post | :heavy_check_mark: | | Follow | :heavy_check_mark: | | Unfollow | :heavy_check_mark: | | Get Follows | :heavy_check_mark:
(Searchable)| | Get Followers | :heavy_check_mark:
(Searchable)| | Create Note | :heavy_check_mark: | | Delete Note | :heavy_check_mark: | | Get Comments | :heavy_check_mark: | | Create Comment | :heavy_check_mark: | | Delete Comment | :heavy_check_mark: | | Logout | :heavy_check_mark: | | Delete Media | :heavy_check_mark: | | Get Hashtag | :heavy_check_mark: | | Get Recommended Users | :heavy_check_mark: | | Search | :heavy_check_mark: | | Get users feed | :heavy_check_mark: | | Get users story | :heavy_check_mark: | | Like a post | :heavy_check_mark: | | Get Likers | :heavy_check_mark: | | Add Close Friend | :heavy_check_mark: | | Get code from duo seed function | :lock:
(telegram: @suphi007) | | Feature | Instagram Web API | |----------------------------------------|-----------------------------------| | Use Proxy | :heavy_check_mark: | | Login | :heavy_check_mark: | | Login with 2 factor | :heavy_check_mark: | | Get User info from username | :heavy_check_mark: | | Get Recommended Users | :heavy_check_mark: |

Contents

  1. About Project
  2. Get Started
  3. Usage
  4. Road Map
  5. Contributors
  6. License
  7. Contant Us
## About Project This project is made in PHP library of all instagram mobile app features. This library can send exactly same queries like mobile app and returns server responses. ## Updates Added Instagram scores between your followers (its your secret love or something ? ) ## Getting Started Please read carefully. ### Requirements - PHP 7.4 or above ## Installing via download Repository 1. Firsty download repository ```sh git clone https://github.com/suphiyasin/instagram-api.git ``` 2. Use the command below to download the required libraries. ```sh composer install ``` ## Examples # Login You must login before each operation. In your first login operation, the system will be cached and your operation will run faster. ```php login->loginv2($username, $password), true); if ($login["Status"] == "ok") { echo 'Login success'; } else { echo 'Login Fail'; } // LOGIN CONTROL $login_control = $api->login->MyCache("token"); // Fix the variable name to use $api instead of $instagram if (strlen($login_control) > 0) { echo 'Token exists'; // Correct the typo in the echo statement } else { echo 'Token does not exist'; // Correct the typo in the echo statement } ``` # Two factor authorization In your first login attemp, if two factor authorization are enabled, instagram will send you a code. If you enter the code into the input area, yout login operation will be completed automatically. After your next logins, if yout IP is not changed, you can login without asking code. ```php login->twofactorv2($username, $twofid, $_GET["factorcode"], "3"), true); if($step3["status"] == "ok"){ echo "login success"; }else{ echo "login fail"; } }else{ $step1 = json_decode($api->login->loginv2($username, $password), true); if($step1["Status"] == "ok"){ echo "already logged"; }else if($step1["Status"] == "fail" and isset($step1["TwoFactorId"])){ $twofid = $step1["TwoFactorId"]; echo '
'; }else{ //somthing went wrong var_dump($step1); } } ``` # Change everything in the account When you run the code, it does the username, password, email, removing double factor on the account, and then adding double factor. ```php //add duo factor $removeduo = $api->user->disableFactorV2(); $step1 = json_decode($api->user->add2factorv2(null), true); var_dump($step1); if($step1["Status"] == "ok"){ $step2 = $api->manuel->get2FACode($step1["Seed"]); echo $api->user->enable2Factor($step2); }else{ echo "Seed Genaration Failed"; } //remove old email and add new email $step1 = json_decode($api->user->InfoMyAccount(), true); $step2 = $api->user->deleteMyEmail(null, $step1["Email"]); $step3 = $api->user->addNewEmail(null, "newemail@email.com"); $step4 = $api->user->ConfirmOPTEmail(null, "newemail@email.com", "123456"); //change password $step1 = $api->user->ChangePassword("OLD-PASSWORD", "NEW-PASSSWORD", $username); //change username $step1 = $api->user->changeUsername(null, "NewUsername"); ``` ## License You can download and use it as long as this project is under development. If used for other purposes The person who wrote the codes is not responsible. By downloading and using this project, you agree to this. ## Contact Suphi
Website : [https://suphi.org](https://suphi.org)
Email: yasin@suphi.org
Telegram: [@suphi007](https://t.me/suphi007)
[contributors-shield]: https://img.shields.io/github/contributors/suphiyasin/instagram-api.svg?style=for-the-badge [contributors-url]: https://github.com/suphiyasin/instagram-api/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/suphiyasin/instagram-api.svg?style=for-the-badge [forks-url]: https://github.com/suphiyasin/instagram-api/network/members [stars-shield]: https://img.shields.io/github/stars/suphiyasin/instagram-api.svg?style=for-the-badge [stars-url]: https://github.com/suphiyasin/instagram-api/stargazers [issues-shield]: https://img.shields.io/github/issues/suphiyasin/instagram-api.svg?style=for-the-badge [issues-url]: https://github.com/suphiyasin/instagram-api/issues [license-shield]: https://img.shields.io/github/license/suphiyasin/instagram-api.svg?style=for-the-badge [license-url]: https://github.com/suphiyasin/instagram-api/blob/main/LICENSE [instagram-shield]: https://img.shields.io/badge/-Instagram-black.svg?style=for-the-badge&logo=Instagram&colorB=555