dilame/instagram-private-api

Created Dec 23, 2020 · View the dilame/instagram-private-api repository page

NodeJS Instagram private API SDK. Written in TypeScript.

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

110

Lines of Code

7,248

From

Jun 9, 2016

To

Nov 22, 2020

About dilame/instagram-private-api

This is a TypeScript-based SDK that provides programmatic access to Instagram's private API through Node.js. It allows developers to interact with Instagram accounts, retrieve feeds, send messages, and perform various account operations without using the official public API. The library is structured around three core concepts: repositories (which handle individual API requests), feeds (which manage paginated endpoints like user feeds and can be iterated asynchronously), and services (which handle complex multi-step operations like authentication flows and media publishing).

The project emphasizes a well-organized architecture with extensive documentation and examples covering common use cases like fetching account followers and sending direct messages. The library includes security considerations, recommending installation of the `re2` package to prevent regex denial-of-service vulnerabilities. It supports debugging through Node's debug module with the `ig` namespace prefix.

The maintainers have announced a major 3.x version that transforms the project into a monorepo containing Android API, Web API, and real-time messaging capabilities, along with improved state management for saving and restoring account snapshots. This newer version is available as a paid private repository with dedicated support, while the open-source version remains available on npm and GitHub for community use and contribution.

Share this video