Skip to content

refactor: migrate from instagram-private-api to instagrapi #2657

Description

@martincarapia

Context

instagram-private-api hasn't seen active development in several years. As Instagram's private API continues to evolve, this gap is widening — authentication flows and endpoint behavior have shifted since the library was last updated.

Proposal

Migrate to instagrapi, an actively maintained alternative that tracks Instagram's current API surface. Key benefits:

  • Supports modern authentication methods including session ID-based login
  • Built-in pagination and typed response models
  • Structured exception handling for challenges and rate limiting
  • Regular updates as Instagram changes

I have a working migration at martincarapia#1 if there's interest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions