Giter Site home page Giter Site logo

instagram-api's Introduction

Instagram Api for Public profiles v2

WARNING: This repo is not maintained anymore

npm version open source <3 No. of downloads License

working of instaget

To use CLI mode install like:-

npm install -g instagram-public-api

Options available -

-D to download media, -m to see info and -h for help

Alternatively install it as dependency

npm install instagram-public-api

Usage

const  Profile  =  require("instagram-public-api");

const  user  =  new  Profile("selenagomez");

user.getData().then(data=>{

---Do  your  Stuff---

})

Test it online!

https://npm.runkit.com/instagram-public-api

enter image description here

Output

{

"username": "selenagomez",

"url": "https://www.instagram.com/selenagomez",

"bio": "Light, space, zest -that’s God. With him on my side I’m FEARLESS, afraid of no one and nothing. A21 global anti human trafficking organization A21.org",

"followers": 155698399,

"following": 61,

"totalPosts": 1506,

"posts": [

{

"dimensions": {

"height":  1080,

"width":  1080

},

"imageURL":  "https://instagram.fdel1-1.fna.fbcdn.net/vp/e522acfad3fd3c4091ea88a5b8479888/5E0C70E1/t51.2885-15/e35/s1080x1080/66656269_1648697008594563_8361695703211281609_n.jpg?_nc_ht=instagram.fdel1-1.fna.fbcdn.net",

"likes":  3956372,

"comments":  24986,

"url":  "https://instagram.com/p/B1WxkKfDpQy",

"imageThumbnail":  "https://instagram.fdel1-1.fna.fbcdn.net/vp/c72416cc9678de364449ab8f37793a0d/5DDDA525/t51.2885-15/sh0.08/e35/s640x640/66656269_1648697008594563_8361695703211281609_n.jpg?_nc_ht=instagram.fdel1-1.fna.fbcdn.net"

}

],

"profilePicThumb": "https://instagram.fdel1-1.fna.fbcdn.net/vp/b104c292ae8e59d902586c2107a39a72/5DF2E637/t51.2885-19/s150x150/52780205_395221154575465_269834356913078272_n.jpg?_nc_ht=instagram.fdel1-1.fna.fbcdn.net",

"profilePicHD": "https://instagram.fdel1-1.fna.fbcdn.net/vp/073c225007a67fa0563350a2441f0053/5DFDDF3A/t51.2885-19/s320x320/52780205_395221154575465_269834356913078272_n.jpg?_nc_ht=instagram.fdel1-1.fna.fbcdn.net"

}

See full output here

Feel free to contribute or raising issues.

License

GPL-V2 © Tanuj Nagpal

instagram-api's People

Contributors

dependabot[bot] avatar rafaelcascalho avatar shawnlobo96 avatar tanuj101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

instagram-api's Issues

Not grabbing Post(s) links

Not sure if it is a puppeteer's issue really or what. The query works perfectly fine on devtools @ instagram.com though

Typescript support

Are you willing to convert this project into a typescript project? If so, I can convert and submit a pull request. Let me know if you're interested.

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.