{"id":16590310,"url":"https://github.com/glennreyes/fetch-instagram","last_synced_at":"2025-06-22T18:08:49.512Z","repository":{"id":21359590,"uuid":"92507968","full_name":"glennreyes/fetch-instagram","owner":"glennreyes","description":"📸 A lightweight and universal Instagram API client","archived":false,"fork":false,"pushed_at":"2023-01-12T10:19:01.000Z","size":469,"stargazers_count":10,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T22:04:29.082Z","etag":null,"topics":["api","browser","fetch","instagram","instagram-api","isomorphic","node","promise","universal"],"latest_commit_sha":null,"homepage":"","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/glennreyes.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":"2017-05-26T12:20:27.000Z","updated_at":"2023-03-22T11:44:43.000Z","dependencies_parsed_at":"2023-01-14T13:09:39.334Z","dependency_job_id":null,"html_url":"https://github.com/glennreyes/fetch-instagram","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/glennreyes%2Ffetch-instagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennreyes%2Ffetch-instagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennreyes%2Ffetch-instagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennreyes%2Ffetch-instagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glennreyes","download_url":"https://codeload.github.com/glennreyes/fetch-instagram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glennreyes%2Ffetch-instagram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258963768,"owners_count":22784878,"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":["api","browser","fetch","instagram","instagram-api","isomorphic","node","promise","universal"],"created_at":"2024-10-11T23:12:14.886Z","updated_at":"2025-06-22T18:08:44.491Z","avatar_url":"https://github.com/glennreyes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fetch-instagram\n\n[![CircleCI](https://circleci.com/gh/glennreyes/fetch-instagram.svg?style=shield)](https://circleci.com/gh/glennreyes/fetch-instagram)\n\nA lightweight and universal Instagram API client for Node and your browser.\n\n## Installation \u0026 Usage\n\nInstall via npm or yarn:\n\n```sh\nnpm install fetch-instagram --save\n# or via yarn\nyarn add fetch-instagram\n```\n\nCreate an instance with your [Instagram access token](https://www.instagram.com/developer/authentication):\n\n```js\nimport ig from 'fetch-instagram';\n\nconst instagram = ig({\n  accessToken: '1234567890.12345ab.1234567890abcdef1234567890abcdef',\n});\n```\n\nSimple fetch of your user data and media:\n\n```js\n// https://api.instagram.com/v1/users/self\nconst users = instagram.users();\n\nusers.then(res =\u003e console.log(res));\n// {\n//   \"data\": {\n//     \"id\": \"1234567890\",\n//     \"username\": \"my_user\",\n//     \"profile_picture\": \"https://scontent.cdninstagram.com/..../file.jpg\",\n//     \"full_name\": \"My Name\",\n//     \"bio\": \"My Bio\",\n//     \"website\": \"https://mysite.com/\",\n//     \"counts\": {\n//       \"media\": 143,\n//       \"follows\": 143,\n//       \"followed_by\": 143\n//     }\n//   },\n//   \"meta\": { \"code\":200 }\n// }\n\n// https://api.instagram.com/v1/users/self/media/recent\nconst media = instagram.media();\nusers.then(res =\u003e console.log(res));\n// {\n//   \"pagination\": {},\n//   \"data\": [\n//     {\n//       \"id\":\"1234567890123456789_1234567890\",\n//       \"user\": { ... },\n//       \"images\": {\n//         \"thumbnail\": { ... },\n//         \"low_resolution\": { ... },\n//         \"standard_resolution\": { ... }\n//       },\n//       \"created_time\": \"1234567890\",\n//       \"caption\": {\n//         \"id\":\"12345678901234567890\",\n//         \"text\": \"My text\",\n//         \"created_time\": \"1234567890\",\n//         \"from\": { ... }\n//       },\n//       \"user_has_liked\": false,\n//       \"likes\": { ... },\n//       \"tags\": [ ... ],\n//       \"filter\": \"Normal\",\n//       \"comments\": { ... },\n//       \"type\": \"image\",\n//       \"link\": \"https://www.instagram.com/p/12345abcdef/\",\n//       \"location\": null,\n//       \"attribution\": null,\n//       \"users_in_photo\": [ ... ]\n//     },\n//     ...\n//   ],\n//   \"meta\":{ \"code\":200 }\n// }\n```\n\n## API\n\n### `ig()`\n```js\nimport ig from 'fetch-instagram';\n\nig(options: {\n  accessToken: string\n});\n```\n\n### `users()`\n\n```js\nimport { users } from 'fetch-instagram';\n\nusers(options: {\n  accessToken: string, // Not needed if used as ig().user()\n  id: string, // To specify Instagram user-id\n});\n```\n\n### `media()`\n\n```js\nimport { media } from 'fetch-instagram';\n\nmedia(options: {\n  accessToken: string, // Not needed if used as ig().media()\n  id: string, // To specify Instagram user-id\n  size: number, // Media count limit\n  type: 'recent'|'liked', // Media sort order\n});\n```\n\n## License\n\nLicensed under the MIT License, Copyright © 2017 Glenn Reyes. See [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglennreyes%2Ffetch-instagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglennreyes%2Ffetch-instagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglennreyes%2Ffetch-instagram/lists"}