Error when I scrape Instagram accounts. Adding `?__a=1` to the URL doesn't work anymore. Any clues?

Viewed 2030

Until 2 days ago, I was able to scrape Instagram accounts by adding ?__a=1 at the end of the URL.

E.g.: https://www.instagram.com/xavi/?__a=1

Now, when I do the same thing I get this response:

for (;;);
{
  "__ar": 1,
  "error": 1357004,
  "errorSummary": "Sorry, something went wrong",
  "errorDescription": "Please try closing and re-opening your browser window.",
  "payload": null,
  "hsrp": {
    "hblp": {
      "consistency": {
        "rev": 1005632913
      }
    }
  },
  "lid": "7105412861952089317"
}

Maybe Instagram might have done some changes in their API.

Is there any clue on how to scrape user information? Or is there any workaround?

3 Answers

If you are using cookie then just remove the ds_user_id field from cookie it will work fine

Related