我想从应用商店阅读应用名称和评论。可以是任何应用程序商店:Apple应用程序商店,Google market / play,Amazon ...任何知道任何为此公开API的appstore?
答案 0 :(得分:2)
是的,可以从Apple AppStore获取数据。该页面以JSON格式返回有关应用程序的所有信息,因此您只需解码输出:
$context = stream_context_create(array('http' => array('header'=>'Connection: close')));
$inh = file_get_contents("http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsLookup?id=$appid&country=us");
$inh = json_decode($inh);
$rs = $inh->results["0"];
$ituneslink = $rs->trackViewUrl;
$price = $rs->price;
$appname = $rs->trackName;
$screens = $rs->screenshotUrls;
...
请务必插入App-ID。