subzeroid/instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2026 with HikerAPI SaaS

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 45 minutes ago
Added to GitGenius on September 9th, 2026
Created on July 30th, 2020
Open Issues & Pull Requests: 11 (+0)
GitHub issues: Enabled
Number of forks: 979
Total Stargazers: 6,792 (+0)
Total Subscribers: 97 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.5 days
Mean response time: 243.8 days
90th percentile: 944.6 days
Tracked items: 570

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Work labelled "bug" is answered fastest, typically in about 4 days, while "backlog" waits about 23 months. Only 5% of issues opened in the past year have been closed. Three people close 94% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 11 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 6
Events in 7 days: 20

Top labels

  • bug (312)
  • enhancement (162)
  • backlog (12)
  • documentation (4)
  • question (3)
  • duplicate (1)
  • help wanted (1)
  • refactoring (1)

Detailed Description

instagrapi is a Python library that wraps Instagram's private mobile API and public web endpoints to enable automation and data access.

The library addresses the challenge of programmatically interacting with Instagram by combining both public web and private mobile API flows. It handles session persistence, manages authentication challenges, and provides automation primitives for core Instagram features including user profiles, media, stories, direct messages, notes, locations, comments, insights, and uploads. The tool supports optional TLS impersonation for public endpoints and HTTP/2 transport for private requests, with configurable certificate verification for debugging scenarios.

The project is explicitly positioned for testing, research, and controlled internal automation rather than production deployments. The README acknowledges that private API automation is inherently fragile due to account trust, proxy requirements, device state, challenges, and rate limits that can shift independently of library updates. For business workflows, the documentation recommends preferring official Instagram APIs where available, and for production infrastructure at scale, suggests hosted providers as a more maintainable alternative to self-managing accounts, proxies, and challenge handling. The tool requires Python 3.10 or later and supports optional dependencies for video processing through MoviePy and ffmpeg, with special guidance provided for Android environments.

Development activity shows consistent attention to dependency security and compatibility. The project maintains strict version pins on security-critical packages like Pillow, dropping support for older Python versions when upstream security patches are no longer backported. Documentation includes detailed guides for transport configuration, session setup, and platform-specific installation on Android. The codebase provides runnable examples covering login flows, media downloads, uploads, story handling, direct messaging, and proxy configuration, indicating active maintenance of practical use cases.