Instagram Public API ( __a=1 ) is disabled. Are there any other options?
P粉894008490
P粉894008490 2023-10-24 16:54:59
0
1
477

I use Instagram public api (add__a=1to 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?

P粉894008490
P粉894008490

reply all (1)
P粉792673958

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).

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!