ig-data
Get urls to images and videos of Instagram posts and profile pictures.
Server and browser compatible.
By Nino Filiu
Installation
npm i ig-data
Usage
Full API is defined in ./dist/ig-data.d.ts
. Examples:
;// or import { publication, user } from 'ig-data';// or const igdata = require('ig-data')// or const { publication, user } = require('ig-data') // resolve to publication dataigdatapublication;igdatapublication;igdatapublication; // resolve to user dataigdatauser;igdatauser;igdatauser;
Example publication data of this post:
; publication ; const shouldLog = shortcode: 'Bl0-uj6gHdf' sidecar: false location: id: '6889842' has_public_page: true name: 'Paris, France' slug: 'paris-france' address_json: '{"street_address": "", "zip_code": "", "city_name": "Paris, France", "region_name": "", "country_code": "FR", "exact_city_match": true, "exact_region_match": false, "exact_country_match": false}' media: type: 'image' width: 1080 height: 1080 src: 'https://scontent-frt3-2.cdninstagram.com/vp/874d6761ff772b268e1dd3cef4696e0e/5CFC1A9D/t51.2885-15/e35/37718770_269787300466545_3893520744407105536_n.jpg?_nc_ht=scontent-frt3-2.cdninstagram.com'
Example user data of this user:
; user ; const shouldLog = id: '2182883331' username: 'ssttaacckkyy' fullName: 'Nino Filiu' biography: 'Hacker & photographer\nBerlin/Paris' isPrivate: false isVerified: false profilePicture: 'https://scontent-frt3-2.cdninstagram.com/vp/bf3698c858fc67a633507db49b4df84e/5CFB30C1/t51.2885-19/s320x320/14726320_180793242372154_238303271121321984_a.jpg?_nc_ht=scontent-frt3-2.cdninstagram.com' followers: 1425 follows: 595 externalUrl: null