User submitted API
AbstractAPI offers an IP Geolocation API to retrieve location, network, and other details for an IP address.
import requests
api_key = 'YOUR_API_KEY'
ip_address = '8.8.8.8' # Optional: if not provided, the API uses the caller's IP
url = f'https://ipgeolocation.abstractapi.com/v1/?api_key={api_key}&ip_address={ip_address}'
response = requests.get(url)
print(response.json())Last 50 checks (10 min intervals)