github.com/dilame/instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.

Open this visualization on its own page →

Contributors

110

Lines of Code

7,248

From

2016-06-09

To

2020-11-22

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