I use Instagram public api (add__a=1
to parameters of url) to get post details (caption
,imageUrl
,postType
,likes
,commentsphpcnendcphp cn,
number of views
). But it seems Instagram has banned this recently and is returning a 403. When I try to open the post directly via its usrl it also asks for login.
I tried using instag ram private api (https://mgp25.github.io/) to get post details but after some requests instargam also banned:
"Limited by Inst agram due to excessive API requests"
Do you have any alternatives?
Actually it's not really banned, but now uses a 302 redirect to the authentication page. Authentication seems to be required when the Instagram account and query geoIP are different. Another way is to use the official API. Fetching is not possible because profile links now also require authentication. You can do authenticated scraping, but you're limited to a maximum of 200 queries per hour (which Instagram sends to get data).