Search code examples
node.jsexpressbackendinstagraminstagram-api

Instagram get someone's posts just With instagram's username


I want make a NodeJS application that use Instagram API but I couldn't find API that get someone's Instagram post with just his or her username not access Token please help me.


Solution

  • I could find my solvation in this library instagram-web-api.

    const InstagramWeb = require("instagram-web-api");
    const { password, username } = require("../../config/Instagram");
    
    const client = new InstagramWeb({
      username: username,
      password: password,
    });
    if (password && username) {
      client.login();
    }