1using System;
2using System.Net.Http;
3using System.Threading.Tasks;
4
5var client = new HttpClient();
6var request = new HttpRequestMessage(HttpMethod.Get, "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=live&domainName=google.com");
7var response = await client.SendAsync(request);
8Console.WriteLine(await response.Content.ReadAsStringAsync());1using System;
2using System.Net.Http;
3using System.Threading.Tasks;
4
5var client = new HttpClient();
6var request = new HttpRequestMessage(HttpMethod.Get, "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=historical&domainName=google.com");
7var response = await client.SendAsync(request);
8Console.WriteLine(await response.Content.ReadAsStringAsync());1using System;
2using System.Net.Http;
3using System.Threading.Tasks;
4
5var client = new HttpClient();
6var request = new HttpRequestMessage(HttpMethod.Get, "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=reverse&keyword=youtube");
7var response = await client.SendAsync(request);
8Console.WriteLine(await response.Content.ReadAsStringAsync());1using System;
2using System.Net.Http;
3using System.Threading.Tasks;
4
5var client = new HttpClient();
6var request = new HttpRequestMessage(HttpMethod.Get, "https://api.whoisfreaks.com/v1.0/bulkwhois?apiKey=API_KEY");
7request.Headers.Add("Content-Type", "application/json");
8request.Content = new StringContent("{"domainNames": ["amazon.ch","google.com","whoisfreaks.com","nic.dev","news.si"]}");
9var response = await client.SendAsync(request);
10Console.WriteLine(await response.Content.ReadAsStringAsync());