Port Number Lookup API
Look up TCP and UDP port numbers: the service, what it's for, and security notes for ports that are risky to expose. Search by port, list, range or service name.
POST /api/v1/tools/port-number-lookupMCP port_number_lookupNetwork ToolsLook up what runs on a TCP or UDP port: search over 250 well-known and registered ports by number, range or service name, with security notes for risky ones.
Input
Send these as a JSON object. Unknown fields are rejected.
- query
- A port ("5432"), a list ("22, 80, 443"), a range ("8000-8100") or a service name or words ("redis", "remote desktop"). (string, up to 200 characters, required)
- protocol
- Only ports used over this protocol. (string, one of all, tcp, udp, default "all")
- sensitiveOnly
- Only ports with a security note (risky to expose to the internet). (boolean, default false)
curl https://pithlab.com/api/v1/tools/port-number-lookup \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"query":"6379"}'Example response
{
"ok": true,
"result": {
"count": 0,
"range": "registered",
"rangeDescription": "Registered port (1024 to 49151): assigned by IANA on request to specific applications.",
"ports": []
}
}