2 thinks I notice in your code.
CURLOPT_URL => "https://api.traveladviceapi.com/search/".$cc.,
you have a dot at the end of your variable.- you have to initialize the
$cc
variable$cc = $_GET['cc'];
CLICK HERE to find out more related problems solutions.