jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 185 forks source link

How get my post list? #245

Open daraboon opened 3 years ago

daraboon commented 3 years ago

There is not function to get all my posts I will make an app like Instagram that is necessary to can get all post Thanks

MonsieurBibo commented 3 years ago

I wouldn't recommend you to use this library since it's poorly maintained & rarely updated. However, you can achieve this by fetching in the user properties. This code should do the job:

await client.getUserByUsername({ username: "your account" })
  .then(res => console.log(res.edge_owner_to_timeline_media.edges)) // it returns an array of your user's medias.
bootisverycool commented 3 years ago

I wouldn't recommend you to use this library since it's poorly maintained & rarely updated. However, you can achieve this by fetching in the user properties. This code should do the job:

await client.getUserByUsername({ username: "your account" })
  .then(res => console.log(res.edge_owner_to_timeline_media.edges)) // it returns an array of your user's medias.

What library would you recommend then?

MonsieurBibo commented 3 years ago

@bootisverycool I would more recommend this package.