Giter VIP home page Giter VIP logo

inst-api's Introduction

MongoDB Python Flask

Instagram API

A great backend service for applications. Provides database to register users and track their activity.

It allows you to use session data for back-to-back or intermittent transactions without the need to log in again, and with a 12-hour cooldown when making requests to each endpoint, it allows you to avoid instagram knowing you're acting suspiciously.

Flowchart

I look forward to you contributing to this repository, there's a lot to do.

API Reference

Checks if the session still valid

  GET /is-session-valid
Parameter Type Description
username string Required.Useraname for checking session is still valid

Login v2

This endpoint checks if the user have 2FA. If enabled returns: It gives an information about if the user have 2FA.

return jsonify({'status': 'ok',
                'is_two_factor_required': 'true',
                'response_json': response_json})
  POST /fakeLogin
  GET /fakeLogin
Parameter Type Description
username, password string Required for login

If user enabled 2FA this endpoint makes user login.

This endpoint saves user information (followers, followings, etc.).

  POST /fake2FA
  GET /fake2FA
Parameter Type
verification_code, username, response_json string

Login.

If user doesn't enabled 2FA you can directly use this endpoint. It does the same job with /fake2FA endpoint but /login endpoint takes only username, password informations.

  POST /login
Parameter Type
username, password, proxy string

Profile Detail.

This endpoint provides follower lists, following lists and the informations below:

profileDetail = {
    'profile_pic_hd': profile.profile_picture_url_hd,
    'username': username,
    'full_name': profile.full_name,
    'biography': profile.biography,
    'follower_count': profile.follower_count,
    'follower_list': followers_list,
    'following_list': following_list,
    'following_count': profile.following_count,
    'post_count': profile.total_post_count
}
  GET /profileDetail
Parameter Type
username string

Profile Information.

This endpoint provides follower and following activities.

profileInfo = {
    'profile_picture_hd': profile.profile_picture_url_hd,
    'unfollowed_user_lenght': len(unfollowed_list),
    'unfollowed_user_usernames': unfollowed_list,
    'not_following_me_back': notFollowingMeBack,
    'Im_not_following_back': ImNotFollowingBack
}
  GET /profileInfo
Parameter Type
username string

Session Cookie.

This endpoint provides getting user profile informations, followings, followers without login if the session informations still valid.

informations = {
    'full_name': profile.full_name,
    'biography': profile.biography,
    'biography_link': profile.biography_links,
    'follower': profile.follower_count,
    'following': profile.following_count,
    'profile_picture_url_hd': profile.profile_picture_url_hd,
    'post_info': posts_url,
    'total_post_count': profile.total_post_count,
    'unfollowed_users': getUnfollowedUser(host, username)
}
  GET /useSessionCookie
Parameter Type
username string

Profile Picture HD.

return jsonify({'status': 'ok',
                'profile_pic_hd': profile_pic_hd})
  GET /getProfilePicHD
Parameter Type
username string

Unfollow user.

return jsonify({'status': 'ok', 'msg': 'User unfollowed'})
  POST /unfollow-user
Parameter Type
username, target_username string

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This project uses code from ENSTA, which is licensed under the MIT License.

inst-api's People

Contributors

olgud avatar

Stargazers

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