subzeroid/instagrapi
Unofficial Python client for the Instagram private API
What
Unofficial Python wrapper for the Instagram web and private mobile APIs. Covers users, media, stories, DMs, comments and uploads, with session save/load. The README warns that private API automation is fragile (accounts, proxies, challenges) and suggests official APIs for business use.
How to use
pip install instagrapifrom instagrapi import Client
cl = Client()
cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)
user_id = cl.user_id_from_username(ACCOUNT_USERNAME)
medias = cl.user_medias(user_id, 20)Reach for it when
you need scripted access to Instagram for research or internal tooling and there is no official API for it.