public-instagram
Tool to fetch Instagram's public content.
Features
- Fetch any pubic posts (images only)
- Search for hashtags and get information
- Fetch recent posts by hashtag
- Search for user's (public) information
- Fetch posts by (public) user
Installing
Using npm
npm i public-instagram
Using npm (& git):
npm i https://github.com/ivolimasilva/public-instagram.git
Examples
; // Async function in order to use await { // Get information about hashtag const info = await instagramtags; console; // Get the 1000 most recent posts that contain an hashtag const posts = await instagramtags; console; // Get the most popular posts that contain an hashtag const posts = await instagramtagstop'instagram'; console; // Search hashtags by a string field const hashtags = await instagramtags; console; // Get media by shortcode const post = await instagrammedia; console; // Get the 1000 most recent comments of that post const comments = await instagrammedia; console; // Get information about a public user const user = await instagramusers; console; // Get all posts from a public user const posts = await instagramusers; console; }; ;
Async/Await
public-instagram
uses Async/Await. In order to use it as intended, you need atleast Node v7.6
.
Resources
License
GPL-3.0