I've been working on a webapp for the past couple months that displays info about different restaurants in my city, and I've been using https://www.instagram.com/{USER_NAME}/?__a=1 to get each profile picture from every restaurant. There haven't been any problem with this, until maybe like 30-40 minutes ago I had been getting the next error
TypeError: Cannot read property 'user' of undefined
It seemed weird to me beacuse I didn't change anything in my api, so after a little bit of research, I realized that if I go to this route to get a json response, it only works if I'm logged in ,which it wasn't needed before.
Is there any workaround this? Like it seems weird to me because my api has been working fine for the past couple months until like half and hour ago when I began to get undefined instead of the profile picture of each restaurant.