Location: PHPKode > scripts > PHP Yahoo Music API > php-yahoo-music-api/example.php
<?php
// Sign up for your feee API key at: http://developer.yahoo.com/music/
$apiKey="[YOUR API KEY HERE]";
require_once("PhpYahooMusicApi.inc.php");
$yahooMusicApi=new YahooMusicApi($apiKey);

$artistInfo=$yahooMusicApi->searchArtist($artistName);
$trackInfo=$yahooMusicApi->searchTrack($trackName);
$trackInfo=$yahooMusicApi->getTrackInfo($trackId);
$tracksByArtistInfo=$yahooMusicApi->getTracksByArtist($artistId);
$releaseInfo=$yahooMusicApi->getReleaseInfo($releaseId);
?>
Return current item: PHP Yahoo Music API