Port Scanner API
Secure your infrastructure by scanning for open ports on any IP address or domain.Verify firewall rules and audit network accessibility with flexible scanning options.
Ready-to-use code snippets
Why Geekflare Port Scanner API
Custom Port Ranges
Define exactly what to check. The API supports flexible inputs, allowing you to scan single ports (22), lists (80, 443), or full ranges (8000-9000).
Top Ports Presets
Use the topPorts parameter to automatically scan the most common 50, 100, 500, 1000, or 5000 ports frequently used by services and malware.
Real-Time Status
We perform active TCP connections to verify the actual status of the port.
Build more with Geekflare
Scrape Website
Check Site Loadtime
Frequently Asked Questions
The legality varies by jurisdiction. You should only scan networks, domains, or IPs that you own or have explicit permission to audit. Unauthorized scanning can be considered a cyberattack.
The API attempts to establish a TCP connection to the specified ports on the target IP or hostname. It analyzes the response to determine if the port is open or closed.
If no parameters are provided, the API defaults to scanning the Top 100 most common ports.
To avoid being flagged by IDPS, ensure you are only scanning assets you have authorization for.