Logo
Logo

PRODUCTS

TOOLS

pricing background

PHPAPI Integration

api

Live

1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v2.0/dns/live?apiKey=API_KEY&domainName=whoisfreaks.com&ipAddress=8.8.8.8&type=all");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
5curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
6$response = curl_exec($ch);
7echo $response;
8curl_close($ch);

Historical

1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v2.0/dns/historical?apiKey=API_KEY&domainName=whoisfreaks.com&type=all&page=1");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
5curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
6$response = curl_exec($ch);
7echo $response;
8curl_close($ch);

Reverse

1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v2.1/dns/reverse?apiKey=API_KEY&format=json&value=8.8.8.8&type=a");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
5curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
6$response = curl_exec($ch);
7echo $response;
8curl_close($ch);

Bulk DNS

1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v2.0/dns/bulk/live?apiKey=API_KEY&type=all&format=json");
4curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
5curl_setopt($ch, CURLOPT_HTTPHEADER, [
6    "Content-Type: application/json",
7]);
8curl_setopt($ch, CURLOPT_POSTFIELDS, '{"domainNames": ["whoisfreaks.com","jfreaks.com"],"ipAddresses": ["1.1.1.1","8.8.8.8"]}');
9curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
10$response = curl_exec($ch);
11echo $response;
12curl_close($ch);