
InternetDB Has a Free API — Shodan Data for Any IP in One Call (No Key Needed)
Shodan has a lesser-known free API endpoint called InternetDB. No API key. No rate limits. One call per IP — returns open ports, hostnames, vulnerabilities, and tags. It's the fastest way to get Shodan-quality data for free. The Endpoint \ https://internetdb.shodan.io/{ip} \ \ That's it. No authentication. No signup. Quick Example \ `python import requests def check_ip(ip): """Get Shodan InternetDB data for any IP.""" r = requests.get(f" https://internetdb.shodan.io/{ip} ", timeout=10) if r.status_code == 200: data = r.json() print(f"IP: {data.get('ip', ip)}") print(f"Ports: {data.get('ports', [])}") print(f"Hostnames: {data.get('hostnames', [])}") print(f"CPEs: {data.get('cpes', [])[:5]}") print(f"Vulns: {data.get('vulns', [])[:5]}") print(f"Tags: {data.get('tags', [])}") return data elif r.status_code == 404: print(f"{ip}: Not found in InternetDB") return None Check Cloudflare check_ip("1.1.1.1") print() Check Google DNS check_ip("8.8.8.8") ` \ Output \ IP: 1.1.1.1 Ports: [53, 80, 44
Continue reading on Dev.to Python
Opens in a new tab



