{"id":29560889,"url":"https://github.com/killerwolf/instagram-data-extractor","last_synced_at":"2026-01-20T16:54:57.224Z","repository":{"id":296065814,"uuid":"992069662","full_name":"killerwolf/instagram-data-extractor","owner":"killerwolf","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-05T12:55:42.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T14:00:53.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/killerwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-28T15:12:06.000Z","updated_at":"2025-06-05T12:55:01.000Z","dependencies_parsed_at":"2025-05-28T21:19:11.576Z","dependency_job_id":"a2be2154-f260-4ed3-a043-6367797a8695","html_url":"https://github.com/killerwolf/instagram-data-extractor","commit_stats":null,"previous_names":["killerwolf/instagram-data-extractor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/killerwolf/instagram-data-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killerwolf%2Finstagram-data-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killerwolf%2Finstagram-data-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killerwolf%2Finstagram-data-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killerwolf%2Finstagram-data-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killerwolf","download_url":"https://codeload.github.com/killerwolf/instagram-data-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killerwolf%2Finstagram-data-extractor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265787571,"owners_count":23828458,"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":[],"created_at":"2025-07-18T15:39:17.360Z","updated_at":"2026-01-20T16:54:57.199Z","avatar_url":"https://github.com/killerwolf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instagram Data Extractor\n\nA TypeScript library for extracting post data from Instagram, including descriptions, author information, and media (images/videos).\n\n## Installation\n\n```bash\nnpm install @h4md1/instagram-data-extractor\n# or\nyarn add @h4md1/instagram-data-extractor\n```\n\n## Usage\n\n```typescript\nimport { InstagramExtractor } from '@h4md1/instagram-data-extractor';\n\nasync function getPostData() {\n  try {\n    const postData = await InstagramExtractor.extractPost('shortcode');\n    console.log('Post description:', postData.description);\n    console.log('Author:', postData.author.username);\n    console.log('Media URL:', postData.media.url);\n  } catch (error) {\n    console.error('Failed to extract post:', error);\n  }\n}\n```\n\n## API\n\n### InstagramExtractor.extractPost(shortcode: string, config?: RequestConfigType)\n\nExtracts data from an Instagram post.\n\n#### Parameters\n\n- `shortcode`: The Instagram post shortcode (found in the post URL)\n- `config`: Optional request configuration (extends RequestInit)\n\n#### Returns\n\nReturns a Promise that resolves to an InstagramPostData object:\n\n\n## Error Handling\n\nThe library throws errors in the following cases:\n- Network errors during the API request\n- Invalid or missing shortcode\n- Post not found\n- API rate limiting\n\nMake sure to wrap the `extractPost` call in a try-catch block to handle potential errors.\n\n## License\n\nMIT\n\n## CLI Usage\n\nYou can extract Instagram post data directly from the command line:\n\n### Using npx\n\n```sh\nnpx @h4md1/instagram-data-extractor@latest extract \u003cshortcode\u003e\n```\n\n### Using node\n\n```sh\nnode dist/cli.js extract \u003cshortcode\u003e\n```\n\nReplace `\u003cshortcode\u003e` with the Instagram post shortcode (e.g., `DJ_1LHjIUKb`).\n\n## Credits\n\nThis package is heavily inspired by [riad-azz/instagram-video-downloader](https://github.com/riad-azz/instagram-video-downloader).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillerwolf%2Finstagram-data-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillerwolf%2Finstagram-data-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillerwolf%2Finstagram-data-extractor/lists"}