Stations

"https://radio-world-75-000-worldwide-fm-radio-stations.p.rapidapi.com/all_radios.php?limit=1000&order=ASC&page=1&random=false", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "x-rapidapi-host: radio-world-75-000-worldwide-fm-radio-stations.p.rapidapi.com", "x-rapidapi-key: 249920c6d4msh4ff7967414a8bedp129ad2jsn6aa3d499a333" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "

Error: " . htmlspecialchars($err) . "

"; } else { $data = json_decode($response, true); if (!empty($data['stations'])) { foreach ($data['stations'] as $station) { $name = trim($station['radio_name']); $img = $station['radio_image']; $url = $station['radio_url']; $country = $station['country_name']; $genre = $station['genre'] === "null" ? "N/A" : $station['genre']; echo '
'; echo "\"$name\""; echo "

$name

"; echo "

Country: $country • Genre: $genre

"; echo "Play"; echo '
'; echo '
'; } } else { echo "

No stations found.

"; } } ?>