subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

[BUG] exception occured: KeyError('graphql') when hashtag_medias_recent #481

Closed fro0m closed 2 years ago

fro0m commented 2 years ago

Describe the bug exception occured: KeyError('graphql') after cl.hashtag_medias_recent(hashtag, amount = 150)

Desktop (please complete the following information):

adw0rd commented 2 years ago

You IP address is blocked by instagram (doesn't return "graphql"), you can try to using https://lamadava.com/ for getting hashtag data

image

valo83 commented 2 years ago

Nothing free?

adw0rd commented 2 years ago

@valo83 you can try use cl.hashtag_medias_recent_v1 https://adw0rd.github.io/instagrapi/usage-guide/hashtag.html

claell commented 1 year ago

I ran into the same issue. Thanks for the info why this happens. Are there roughly known limits from Instagram to make sure not to run into this?