Lists the TCP ports Shodan has seen open on an IPv4
security_open_port_scannerLists the TCP ports Shodan has seen open on an IPv4 address, from its pre-collected passive scan data (not a live scan: nothing connects to the address now). The record can be days old, and an address with no record returns known=false, which does not prove the ports are closed. Related tools on this server, for a different need: security_open_resolver_check when you need reports whether Shodan's pre-collected passive scan data. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ip": "<ip>"
},
"name": "security_open_port_scanner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 address such as 1.1.1.1 (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | ||
| known | No | ||
| source | No | ||
| checkedAt | No | ||
| openPorts | No | ||
| portCount | No |