1#include <curl/curl.h>
2#include <stdio.h>
3
4int main() {
5 CURL *curl = curl_easy_init();
6 if(curl) {
7 curl_easy_setopt(curl, CURLOPT_URL, "https://api.whoisfreaks.com/v2.0/dns/live?apiKey=API_KEY&domainName=whoisfreaks.com&ipAddress=8.8.8.8&type=all");
8 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
9 curl_easy_perform(curl);
10 curl_easy_cleanup(curl);
11 }
12 return 0;
13}1#include <curl/curl.h>
2#include <stdio.h>
3
4int main() {
5 CURL *curl = curl_easy_init();
6 if(curl) {
7 curl_easy_setopt(curl, CURLOPT_URL, "https://api.whoisfreaks.com/v2.0/dns/historical?apiKey=API_KEY&domainName=whoisfreaks.com&type=all&page=1");
8 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
9 curl_easy_perform(curl);
10 curl_easy_cleanup(curl);
11 }
12 return 0;
13}1#include <curl/curl.h>
2#include <stdio.h>
3
4int main() {
5 CURL *curl = curl_easy_init();
6 if(curl) {
7 curl_easy_setopt(curl, CURLOPT_URL, "https://api.whoisfreaks.com/v2.1/dns/reverse?apiKey=API_KEY&format=json&value=8.8.8.8&type=a");
8 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
9 curl_easy_perform(curl);
10 curl_easy_cleanup(curl);
11 }
12 return 0;
13}1#include <curl/curl.h>
2#include <stdio.h>
3
4int main() {
5 CURL *curl = curl_easy_init();
6 if(curl) {
7 curl_easy_setopt(curl, CURLOPT_URL, "https://api.whoisfreaks.com/v2.0/dns/bulk/live?apiKey=API_KEY&type=all&format=json");
8 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
9 struct curl_slist *headers = NULL;
10 headers = curl_slist_append(headers, "Content-Type: application/json");
11 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
12 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "{"domainNames": ["whoisfreaks.com","jfreaks.com"],"ipAddresses": ["1.1.1.1","8.8.8.8"]}");
13 curl_easy_perform(curl);
14 curl_easy_cleanup(curl);
15 }
16 return 0;
17}