Port Scanner API
Check for Open Ports on any Host
Our Port Scanner API checks whether commonly used ports are open or closed on a target host.
Automate monitoring of your public facing infrastructure to ensure no unexpected ports are open(ed).
Get Started for FreeWhy Choose ViewDNS.info Port Scanner API?
- Fast Results for Mission Critical Monitoring
- Live Data Ensuring Up To Date Results
- Highly Scalable to meet Business Needs
- Automate Monitoring for Open Ports on your Public Systems
- Subscription Includes Access to ALL ViewDNS.info APIs
Our Valued Customers Include:

Key Port Scanner API Features
Live Data
Our API retrieves data in real-time, ensuring accurate port scan results.
Highly Scalable
Our Port Scanner API employs a highly scalable backend ensuring that even high volume checks are met with the highest success rate.
Fast Response Times
Quickly and repeatedly scan your public facing systems for commonly open ports, minimising exposure time.
Automate Your Monitoring
Leverage our Ping API in conjunction with other APIs for a unified approach to monitoring your public facing assets.
Usage Details
Check if common ports are open or closed on a given host.
/portscan GET
https://api.viewdns.info/portscan/
Checks whether a set of common ports are open or closed on a provided host.
Parameters
-
apikey
requiredYour API key associated with your ViewDNS.info account.
-
host
requiredThe domain or IP to perform the port scan on (e.g.,
example.com
). -
output
optional (default=json)The output format required (
'xml'
or'json'
).
Sample Request Live Demo!
https://api.viewdns.info/portscan/?host=example.com&apikey=demo&output=json
Sample Response
{
"query": {
"tool": "portscan_PRO",
"host": "example.com"
},
"response": {
"port": [
{
"number": "21",
"service": "FTP",
"status": "closed"
},
{
"number": "22",
"service": "SSH",
"status": "closed"
},
{
"number": "23",
"service": "Telnet",
"status": "closed"
},
{
"number": "25",
"service": "SMTP",
"status": "closed"
},
{
"number": "53",
"service": "DNS",
"status": "closed"
},
{
"number": "80",
"service": "HTTP",
"status": "open"
},
{
"number": "110",
"service": "POP3",
"status": "closed"
},
{
"number": "139",
"service": "NETBIOS",
"status": "closed"
},
{
"number": "143",
"service": "IMAP",
"status": "closed"
},
{
"number": "443",
"service": "HTTPS",
"status": "open"
},
{
"number": "445",
"service": "SMB",
"status": "closed"
},
{
"number": "1433",
"service": "MSSQL",
"status": "closed"
},
{
"number": "1521",
"service": "ORACLE",
"status": "closed"
},
{
"number": "3306",
"service": "MySQL",
"status": "closed"
},
{
"number": "3389",
"service": "Remote Desktop",
"status": "closed"
},
{
"number": "8080",
"service": "HTTP Alt",
"status": "closed"
},
{
"number": "8443",
"service": "HTTPS Alt",
"status": "closed"
}
]
}
}
Code Example