I am working on a program that needs to scrape information from the public Instagram API.
My code is using the endpoint https://instagram.com/{username}/?__a=1
to get information about a user and in order to uniquely identify Instagram accounts even after name changes I store the "id" parameter that always stays the same.
Up to this point, it was possible to use another Instagram API Endpoint https://i.instagram.com/api/v1/users/{id}/info/
to find out the current username connected to a given account but it has been removed by Instagram a few days / weeks ago.
I'd highly appreciate if anyone knows another way of getting a username from a user id since I was not able to find one myself nor find a solution by someone else online.