Network Port

GET/v0/net/port

Validates a network port number (0–65535). Returns whether it is a well-known port and, if so, the associated service name, protocol, and description.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesPort number as a numeric string (e.g. 80, 443, 8080)

Example Requests

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/net/port?value=443"

Response Fields

FieldTypeDescription
validbooleanWhether the value is a valid port number (0–65535)
portnumberNumeric port value
rangestringPort range category: well-known (0–1023), registered (1024–49151), or dynamic (49152–65535)
wellKnownbooleanWhether the port is a well-known/registered service port
serviceNamestring | nullService name (e.g. HTTP, HTTPS, SSH)
protocolstring | nullTransport protocol (TCP, UDP, or TCP/UDP)
descriptionstring | nullHuman-readable description of the service

Example Response — well-known port

{
  "valid": true,
  "port": 443,
  "range": "well-known",
  "wellKnown": true,
  "serviceName": "HTTPS",
  "protocol": "TCP",
  "description": "HTTP over TLS/SSL"
}

Example Response — valid but not well-known

{
  "valid": true,
  "port": 12345,
  "range": "registered",
  "wellKnown": false,
  "serviceName": null,
  "protocol": null,
  "description": null
}

Example Response — invalid

{
  "valid": false
}
GET/v0/net/port/list

Returns the list of well-known and commonly used network ports with their service names, protocols, and descriptions.

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/net/port/list"

Object Fields

FieldTypeDescription
portnumberPort number
serviceNamestringService name
protocolstringTransport protocol
descriptionstringService description

Example Response

[
  { "port": 22, "serviceName": "SSH", "protocol": "TCP", "description": "Secure Shell" },
  { "port": 80, "serviceName": "HTTP", "protocol": "TCP", "description": "Hypertext Transfer Protocol" },
  { "port": 443, "serviceName": "HTTPS", "protocol": "TCP", "description": "HTTP over TLS/SSL" },
  ...
]