$url = 'https://soccer-football-info.p.rapidapi.com/v1/emulation/totalcorner/match/schedule/?date=DATE';
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "GET",
"x-rapidapi-host: soccer-football-info.p.rapidapi.com",
$response = curl_exec($curl);
$error = curl_error($curl);
$result = json_decode($response);
echo "cURL Error:" . $err;