{"id":23201129,"url":"https://github.com/codedotjs/mista","last_synced_at":"2025-08-18T23:33:08.914Z","repository":{"id":57298376,"uuid":"141894101","full_name":"CodeDotJS/mista","owner":"CodeDotJS","description":":unicorn: Scrape all downloadable urls of the Instagram posts that has multiple images or videos!","archived":false,"fork":false,"pushed_at":"2018-07-22T12:48:34.000Z","size":141,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-10T10:10:01.867Z","etag":null,"topics":["fetch","images","instagram","instagram-scraper","media","multiple-images","url","videos"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeDotJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-22T12:33:33.000Z","updated_at":"2023-03-10T22:30:17.000Z","dependencies_parsed_at":"2022-09-06T04:20:48.818Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/mista","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fmista","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fmista/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fmista/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fmista/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/mista/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230292739,"owners_count":18203650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fetch","images","instagram","instagram-scraper","media","multiple-images","url","videos"],"created_at":"2024-12-18T15:13:56.685Z","updated_at":"2024-12-18T15:13:57.258Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n\t\u003ca href=\"https://www.npmjs.com/mista\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/rishigiridotcom/rishigiri.com/14027e1f9546e07caf521f491450acd10c2a3cc0/github/mista.png\" alt=\"mista\" width=\"300px\"\u003e\u003c/a\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://travis-ci.org/CodeDotJS/mista\"\u003e\u003cimg src=\"https://travis-ci.org/CodeDotJS/mista.svg?branch=master\"\u003e\u003c/a\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eScrape all downloadable urls of the Instagram posts that has multiple images or videos!\u003c/b\u003e\u003c/p\u003e\n\n\n### Install\n\n```\n$ npm install --save mista\n```\n\n### Usage\n\n```js\nconst mista = require('mista');\n\nconst image = 'https://www.instagram.com/p/BlZb_giFuwc/?taken-by=9gag';\nconst video = 'https://www.instagram.com/p/BjSgNaFnIO6/';\nconst mixed = 'https://www.instagram.com/p/BlKM3siHKhG/';\n\nmista(image).then(res =\u003e {\n  console.log(res); // in case - console.log(res.data.media[0])\n  /*\n  { data:\n   { media:\n      [ 'https://instagram.fdel11-1.fna.fbcdn.net/vp/46e4f81f69d9c294a8ce49a58703287e/5BD047FE/t51.2885-15/e35/37207194_207513299965989_7017657217960640512_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/50a3873d7cdf9c9d1584bb1500c38c85/5BD1D2B7/t51.2885-15/e35/36986293_423223148172744_8128427557042257920_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/07221a8b5449f1025c2a074b06c0eb72/5BD455FA/t51.2885-15/e35/36777242_276574643111257_5582046914460778496_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/ae08017a9456c07a4c77198efd017e1c/5BD8ACC2/t51.2885-15/e35/36702153_2024958861132053_6077379930725810176_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/1301141172e0bfe72830180b390d4b97/5BE393F6/t51.2885-15/e35/36976417_179363739596008_4776708759407820800_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/469da02f81a1fd11468a6c0ffd4bc847/5BDB0E75/t51.2885-15/e35/36783394_799921713544748_7774323742758404096_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/3258839853073f24882f5a51490d14a0/5C10DB6E/t51.2885-15/e35/36772873_224531111534321_7042101534699552768_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/e4d7036fb88276e3e6e068aa7d82d3b2/5BDBDC39/t51.2885-15/e35/36926706_2090374311186421_6827913869290110976_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/1441a8af6a03acc1eb60afe57c3b9221/5BCE0A31/t51.2885-15/e35/37040686_1784943691585898_5104059690556325888_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/ab92c53382f2b9d399128bcc45ffad13/5BCE4CC3/t51.2885-15/e35/36999458_209184139928780_3952142946303737856_n.jpg' ] } }\n\n  */\n});\n```\n\n```js\nmista(video).then(res =\u003e {\n  console.log(res);\n  /*\n  { data:\n   { media:\n      [ 'https://instagram.fdel11-1.fna.fbcdn.net/vp/ccf1abaa3af2bed09ced5c8fac2b0afa/5B564A1E/t50.2886-16/32925964_284988752041577_270249616071701192_n.mp4',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/efff40cd8438abbb5d64c53e92e8c88d/5B55FD41/t50.2886-16/33127971_219987705263482_6469369554124684979_n.mp4' ] } }\n  */\n});\n```\n\n```js\nmista(mixed).then(res =\u003e {\n  console.log(res);\n  /*\n  { data:\n   { media:\n      [ 'https://instagram.fdel11-1.fna.fbcdn.net/vp/ed7f9567d6864912c8d13d16a2dd667c/5BE135F6/t51.2885-15/e35/36578310_577188449342715_3564928924192342016_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/de0f0e36d5e60268c83a39057214a20b/5BDFC013/t51.2885-15/e35/36580031_1037389779749673_5702551091057524736_n.jpg',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/73dd16464683d4cdbdf2c374bb354568/5B5605D9/t50.2886-16/36710710_969350409903664_3795858925972738209_n.mp4',\n        'https://instagram.fdel11-1.fna.fbcdn.net/vp/c869eaeda2719fabc9ee1003d3bf2f42/5B55CE57/t50.2886-16/36850343_1931725487118151_2884287100012145894_n.mp4' ] } }\n\n  */\n});\n```\n\n### `API`\n\n#### __`mista(url)`__\n\n__`typeof url`__  __-__ __`string`__\n\n__`NOTE : `__ `API throws an error if the url does not contain multiple images or videos`\n\n### Related\n\n- __[`instagram-profile-picture`](https://github.com/CodeDotJS/instagram-profile-picture)__ `:` `Get url to the profile picture of any instagram user in different resolutions and more!`\n\n- __[`instagram-links`](https://github.com/CodeDotJS/Instagram-Links)__ `:` `Get links of the publicaly shared medias and profile picture available on Instagram!`\n\n- __[`instafy`](https://github.com/CodeDotJS/instafy)__ `:` `A command line Instagram media notifier!`\n\n- __[`istalk`](https://github.com/CodeDotJS/istalk)__ `:` `Don't pollute your browser history. Stalk Instagram users from the command line!`\n\n- __[`image-of`](https://github.com/CodeDotJS/image-of)__ `:` `Download profile picture of any facebook user!`\n\n- __[`gravatar-of`](https://github.com/CodeDotJS/gravatar-of)__ `:` `Download avatar of gravatar users through their email id!`\n\n- __[`twiger`](https://github.com/CodeDotJS/twiger)__ `:` `A complete media downloader for twitter!`\n\n## License\n\nMIT - Copyright \u0026copy; [Rishi Giri](http://rishi.ml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fmista","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Fmista","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fmista/lists"}