instagram-posts
Get Instagram posts from a user
Install
$ npm install instagram-posts
Usage
const instagramPosts = require('instagram-posts');
(async () => {
console.log(await instagramPosts('cats_of_instagram'));
})();
API
instagramPosts(username, options?)
Returns a Promise<Object[]>
with the users posts.
username
Type: string
Username to fetch posts from.
options
Type: Object
count
Type: number
Default: 20
Number of posts to fetch.
filter
Type: Function
Custom function to filter out posts, e.g:
instagramPosts('cats_of_instagram', {
filter: data => data.likes > 500
});