Link to Instagram profile with user ID
href, html, instagram, javascript
Solution
I am not aware of a solution, that makes it work as a simple link.
You will need to use the Instagram API and sign up your application so that you have a Client-ID.
Next, you will need to do the following request as HTTP GET:
https://api.instagram.com/v1/users/userID?client_id=YourClientID
This will return a JSON-Result, which will contain the username inside the `data` section.
Now you can use `http://instagram.com/username` as your link.
Problem
I want to link to a profile/user account on Instagram. I have the user ID, but the I can't find the answer in the developer API documentation. I've tried `instagram.com/userID` and `instagram.com/users/userID` but these aren't working. Simple question: I have just a single `<a>` tag and I want to know what goes in the `href` to take the user to a specific instagram profile. Or possibly a `window.location` in javascript. Or if there's a way to get the username from the ID, I suppose I could also do it in that round-a-bout way...