Back to APIs
Shodan
Shodan continuously scans the internet — search for exposed services, open ports, banners, and vulnerabilities on any IP or domain.
Base URL
https://api.shodan.ioOSINTportsservicesCVEsthreat intel
Endpoints
GET
/shodan/host/{ip}Look up all information for a specific IP address.
const response = await fetch("https://api.shodan.io/shodan/host/8.8.8.8?key=YOUR_API_KEY", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);Response Preview
{
"ip_str": "8.8.8.8",
"org": "Google LLC",
"country_name": "United States",
"ports": [53, 443],
"vulns": [],
"data": [{
"port": 53,
"transport": "udp",
"product": "Google public DNS"
}]
}