Logo
Logo

PRODUCTS

TOOLS

pricing background

PythonAPI Integration

api

Geolocation Lookup

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

Bulk Geolocation Lookup

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