Something along these lines:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://status.algolia.com/1/status");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
$headers = array();
$headers[] = "X-Algolia-Api-Key: " . $api_key];
$headers[] = "X-Algolia-Application-Id: " . $application_id];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);