- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$spotify1="https://itunes.apple.com/search?term=";
$spotify2=" - ";
$spotify3="&limit=1";
$json_text = file_get_contents("https://itunes.apple.com/search?term=Kylie+Minogue");
$obj = json_decode($json_text);
//$total = $obj->resultCount->results;
//$img640_url = $obj->resultCount[0]->results[1]->artworkUrl100;
echo $img640_url;