instagram-web-api icon indicating copy to clipboard operation
instagram-web-api copied to clipboard

How get my post list?

Open daraboon opened this issue 4 years ago • 3 comments

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

daraboon avatar Apr 13 '21 07:04 daraboon

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.

MonsieurBibo avatar Apr 13 '21 18:04 MonsieurBibo

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?

bootisverycool avatar Apr 19 '21 19:04 bootisverycool

@bootisverycool I would more recommend this package.

MonsieurBibo avatar Apr 24 '21 13:04 MonsieurBibo