POSThttps://api.deepinfo.com/v1/lookup/port-scan

Scans a host in real time and returns its open TCP/UDP ports and the services running on them. Optionally detects service versions and the operating system.

Only scan hosts you own or are authorized to test.

Authentication

Send your API key in the apikey request header.

Query Parameters

ParameterRequiredDescription
targetRequired
Domain name or IP address to scan.
Exampledeepinfo.com
timeoutOptional
Scan timeout in seconds. Maximum and default: 85.
Example85
proxyOptional
Optional proxy to scan through, in the form scheme://user:password@host:port.

Request Body

ParameterTypeDescription
tcp_portsstring
TCP ports to scan: a list ("80,443"), a range ("440-445") or both. Omit to scan the default port set of mode
udp_portsstring
UDP ports to scan
modelight | full
Scan depth. Default light
versionboolean
Detect service versions. Default false
osboolean
Detect the operating system. Default false
scriptsboolean
Run service detection scripts. Default false
application/json
{
  "tcp_ports": "80,443",
  "mode": "light",
  "version": true
}

Response Fields

FieldDescription
status
success, or host_down if the host did not respond
target
The scanned host
target_ip
The IP address the host resolved to
port_data.tcp[]
One entry per TCP port in the result
port_data.tcp[].port_number
Port number
port_data.tcp[].state
Port state, e.g. open
port_data.tcp[].service_name
Name of the service, e.g. https
port_data.tcp[].service_product
Product that runs the service
port_data.tcp[].service_version
Version of that product
port_data.tcp[].extra_data
Additional data about the service
port_data.udp[]
One entry per UDP port in the result
port_data.udp[].port_number
Port number
port_data.udp[].state
Port state, e.g. open
port_data.udp[].service_name
Name of the service, e.g. https
port_data.udp[].service_product
Product that runs the service
port_data.udp[].service_version
Version of that product
port_data.udp[].extra_data
Additional data about the service
os
Operating system matches, when os is true
check_date
When the scan was performed (UTC)

Response Schema

Inferred from examples Built from the 2 saved 2xx example responses: the fields they contain, with the types seen there. It is not a contract.

FieldTypePresentExample
statusstring2 of 2"success"
targetstring2 of 2"deepinfo.com"
target_ipstring2 of 2"104.26.11.21"
check_datestring2 of 2"2026-09-22T16:06:23Z"
port_dataobject2 of 2
port_data.tcparray<object>2 of 2
port_data.tcp[].port_numbernumber2 of 280
port_data.tcp[].service_namestring2 of 2"http"
port_data.tcp[].service_productnull2 of 2
port_data.tcp[].service_versionnull2 of 2
port_data.tcp[].statestring2 of 2"open"
port_data.tcp[].extra_dataobject2 of 2
port_data.udparray2 of 2
osarray2 of 2

Errors

400 if target is missing or the body is invalid.

Examples

Saved examples from the Deepinfo API. Selecting one loads it into the request and response panels.

Reference updated