Port Scan
POST
https://api.deepinfo.com/v1/lookup/port-scanScans 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
| Parameter | Required | Description |
|---|---|---|
target | Required | Domain name or IP address to scan. Example deepinfo.com |
timeout | Optional | Scan timeout in seconds. Maximum and default: 85.Example 85 |
proxy | Optional | Optional proxy to scan through, in the form scheme://user:password@host:port. |
Request Body
| Parameter | Type | Description |
|---|---|---|
tcp_ | string | TCP ports to scan: a list ( "80,443"), a range ("440-445") or both. Omit to scan the default port set of mode |
udp_ | string | UDP ports to scan |
mode | light | full | Scan depth. Default light |
version | boolean | Detect service versions. Default false |
os | boolean | Detect the operating system. Default false |
scripts | boolean | Run service detection scripts. Default false |
application/json
{
"tcp_ports": "80,443",
"mode": "light",
"version": true
}
Response Fields
| Field | Description |
|---|---|
status | success, or host_down if the host did not respond |
target | The scanned host |
target_ | The IP address the host resolved to |
port_ | One entry per TCP port in the result |
port_ | Port number |
port_ | Port state, e.g. open |
port_ | Name of the service, e.g. https |
port_ | Product that runs the service |
port_ | Version of that product |
port_ | Additional data about the service |
port_ | One entry per UDP port in the result |
port_ | Port number |
port_ | Port state, e.g. open |
port_ | Name of the service, e.g. https |
port_ | Product that runs the service |
port_ | Version of that product |
port_ | Additional data about the service |
os | Operating system matches, when os is true |
check_ | 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.
| Field | Type | Present | Example |
|---|---|---|---|
status | string | 2 of 2 | "success" |
target | string | 2 of 2 | "deepinfo.com" |
target_ip | string | 2 of 2 | "104.26.11.21" |
check_date | string | 2 of 2 | "2026-09-22T16:06:23Z" |
port_data | object | 2 of 2 | |
port_data. | array< | 2 of 2 | |
port_data. | number | 2 of 2 | 80 |
port_data. | string | 2 of 2 | "http" |
port_data. | null | 2 of 2 | |
port_data. | null | 2 of 2 | |
port_data. | string | 2 of 2 | "open" |
port_data. | object | 2 of 2 | |
port_data. | array | 2 of 2 | |
os | array | 2 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.