1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=live&domainName=google.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/whois?apiKey=API_KEY&whois=historical&domainName=google.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/whois?apiKey=API_KEY&whois=reverse&keyword=youtube");
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/bulkwhois?apiKey=API_KEY");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
5curl_setopt($ch, CURLOPT_HTTPHEADER, [
6 "Content-Type: application/json",
7]);
8curl_setopt($ch, CURLOPT_POSTFIELDS, '{"domainNames": ["amazon.ch","google.com","whoisfreaks.com","nic.dev","news.si"]}');
9curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
10$response = curl_exec($ch);
11echo $response;
12curl_close($ch);