How to start with the InstagramAPI in Python?

naheliegend picture naheliegend · Apr 3, 2020 · Viewed 14.8k times · Source

i want to play with the InstagramAPI and write some code for like getting a list of my follower and something like that. I am really new to that topic.

What is the best way to do this? Is there a Python-Lib for handle those json request or should I send them directly to the (new? graphAPI, displayAPI) InstagramAPI?

Appreciate every advice I can get. Thanks :)

Answer

Muhammad Azhdari picture Muhammad Azhdari · Apr 3, 2020

You can use https://github.com/LevPasha/Instagram-API-python to call Instagram APIs and also if you want to call API directly You can use the requests package. It also supports graphql APIs. Here you can see an example: https://gist.github.com/gbaman/b3137e18c739e0cf98539bf4ec4366ad