Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.19 KB

fetching-podcast-information.md

File metadata and controls

57 lines (40 loc) · 1.19 KB

Fetching Information About Podcasts

There are a few methods for retrieving information about one or more podcasts from the Spotify catalog. For example, the description of a podcast or all of a podcast's episodes.

Getting info about a single podcast show

$show = $api->getShow('SHOW_ID');

echo '<b>' . $show->name . '</b>';

Getting info about multiple podcast shows

$shows = $api->getShows([
    'SHOW_ID',
    'SHOW_ID',
]);

foreach ($shows->shows as $show) {
    echo '<b>' . $show->name . '</b> <br>';
}

Getting info about a single podcast episode

$episode = $api->getEpisode('EPISODE_ID');

echo '<b>' . $episode->name . '</b>';

Getting info about multiple podcast episodes

$episodes = $api->getEpisodeS([
    'EPISODE_ID',
    'EPISODE_ID',
]);

foreach ($episodes->episodes as $episode) {
    echo '<b>' . $episode->name . '</b> <br>';
}

Getting a podcast show's episodes

$episodes = $api->getShowEpisodes('SHOW_ID');

foreach ($episodes->items as $episode) {
    echo '<b>' . $episode->name . '</b> <br>';
}

Please see the method reference for more available options for each method.