I had to solve this problem myself recently when updating my portfolio, so I even have a code for you :) What I did was in php, but I'm not sure what you want to use. First, I checked the source of the page with my application using the developer tools β developer-> (on chrome). Then, using this, I could cross the DOM to find something that I could use to identify the application icon. I found this: 
that it showed that the application icon was stored inside a div with the class "doc-banner-icon" - I could not find this class anywhere, so I take for granted that this is the only div with this class. Then in my php code, I used simpledomparser to load the url, find the icon and spit out its url, for example:
<?php include('simple_html_dom.php'); $html = file_get_html("https://play.google.com/store/apps/details?id=com.smithyproductions.swissarmycarrot"); //put your app id here $bannerImage = $html->find('.doc-banner-icon'); //the class we found before $img = $bannerImage[0]->find('img'); //find the img tag inside the div $imgUrl = $img[0]->src; //get its src url $arr = array(); //in my own example I filled this array with other things like the title an screenshots $arr['imgUrl'] = $imgUrl; echo json_encode($arr); //output it in an easy to read format ?>
leads to something like {'imgUrl', ' https://lh6.ggpht.com/1WMU4E3lnbjz5yxLHxsPrJAJPw3uYZ8LXk3QkD1EKOxwOcHu0W9QyGlpM5AfrKYEVzzi=w124 '}
The only thing you need to remember about this approach: Google can change the way everyone is presented and presented at any time, so get ready to update your application when that happens :)
source share