Socket
Socket
Sign inDemoInstall

instagram-posts

Package Overview
Dependencies
36
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    instagram-posts

Get Instagram posts from a user


Version published
Weekly downloads
68
increased by41.67%
Maintainers
1
Install size
4.38 MB
Created
Weekly downloads
 

Readme

Source

instagram-posts Build Status

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'));
	/*
	[
		{
			id: 'BRWBBbXjT40',
			username: 'cats_of_instagram',
			time: 1488904930,
			type: 'image',
			likes: 809,
			comments: 10,
			text: 'This is my post',
			media: 'https://instagram.fbma1-1.fna.fbcdn.net/t51.2885-15/s640x640/sh0.08/e35/1231231_123123_1231231.jpg',
			…
		},
		…
	]
	*/
})();

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
});

Keywords

FAQs

Last updated on 25 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc