1<?php
2$ch = curl_init();
3curl_setopt($ch, CURLOPT_URL, "https://api.whoisfreaks.com/v1.0/security?apiKey=API_KEY&ip=8.8.8.8");
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/security?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, '{"ips":["1.1.1.1","2.2.2.2","8.8.8.8"]}');
9curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
10$response = curl_exec($ch);
11echo $response;
12curl_close($ch);