pricing background

Python API Integration

api

Geolocation Lookup

import requests

url = "https://api.whoisfreaks.com/v1.0/geolocation?apiKey=API_KEY&ip=8.8.8.8"
response = requests.get(url)
print(response.text)

Bulk Geolocation Lookup

import requests

url = "https://api.whoisfreaks.com/v1.0/geolocation?apiKey=API_KEY"
headers = {
    "Content-Type": "application/json",
}
payload = '{"ips":["1.1.1.1","2.2.2.2","8.8.8.8"]}'
response = requests.post(url, data=payload, headers=headers)
print(response.text)