1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v1.0/domain/availability?apiKey=API_KEY&domain=whoisfreaks.com");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
5curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
6$response = curl_exec($ch);
7echo $response;
8curl_close($ch);1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v1.0/domain/availability?apiKey=API_KEY");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
5curl_setopt($ch, CURLOPT_HTTPHEADER, [
6 "Content-Type: application/json",
7]);
8curl_setopt($ch, CURLOPT_POSTFIELDS, '{"domainNames":["jfreaks.pk","whoisfreaks.com"]}');
9curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
10$response = curl_exec($ch);
11echo $response;
12curl_close($ch);