How to display Instagram Profile Picture with their API How to display Instagram Profile Picture with their API curl curl

How to display Instagram Profile Picture with their API


Here is the simplest way to get profile picture using instagram API with javascript/jquery.

Replace ACCESS_TOKEN with you access token and set USER_ID to the instagram user id you want profile picture.

<html><head>  <title>Instagram</title>  <script src="http://codeorigin.jquery.com/jquery-2.0.3.min.js"></script>  <script type="text/javascript">var access_token = "ACCESS_TOKEN";   var user_id = "USER_ID";var url = "https://api.instagram.com/v1/users/"+user_id+"?access_token="+access_token+"&callback=?";$.getJSON(url, function(data) {    $("body").append("<img src='"+data.data.profile_picture+"' />");});  </script></head><body></body></html>