Home  >  Q&A  >  body text

Instagram Public API ( __a=1 ) is disabled. Are there any other options?

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?

P粉894008490P粉894008490334 days ago528

reply all(1)I'll reply

  • P粉792673958

    P粉7926739582023-10-25 12:59:39

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

    reply
    0
  • Cancelreply