🌐

Port Scanner

Scan common TCP ports to check which services are accessible.

GET /v1/ports
curl "https://dns.toolkitapi.io/v1/ports?host=github.com"
import httpx

resp = httpx.get(
    "https://dns.toolkitapi.io/v1/ports?host=github.com",
)
print(resp.json())
const resp = await fetch("https://dns.toolkitapi.io/v1/ports?host=github.com", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "host": "github.com",
  "ports_scanned": 20,
  "open_ports": 3,
  "results": [
    {"port": 22, "service": "SSH", "open": true},
    {"port": 80, "service": "HTTP", "open": true},
    {"port": 443, "service": "HTTPS", "open": true},
    {"port": 21, "service": "FTP", "open": false},
    {"port": 3306, "service": "MySQL", "open": false}
  ],
  "query_time_ms": 3421.5
}

Try It Live

Live Demo

Description

Scan common TCP ports to check which services are accessible.

How to Use

1

1. Pass the hostname or IP in the `host` parameter. 2. Review `open_ports` for a count and `results` for per-port details.

About This Tool

Port Scanner checks common TCP ports on a host to see which services are accessible. It scans ports for HTTP, HTTPS, SSH, SMTP, FTP, DNS, databases, and more — giving you a quick overview of exposed services.

Why Use This Tool

Frequently Asked Questions

Which ports are scanned?
~20 common ports including 21 (FTP), 22 (SSH), 25 (SMTP), 53 (DNS), 80 (HTTP), 443 (HTTPS), 3306 (MySQL), 5432 (PostgreSQL), and more.
How long does a scan take?
Typically 3-5 seconds, as each port has a short connection timeout.

Start using Port Scanner now

Get your free API key and make your first request in under a minute.