Look up a port assignment
iana_lookup_portLook up IANA service name and transport protocol port assignments. Pass exactly one of port (a number, 0–65535), service (an exact service name such as "postgresql"), or keyword (words matched against service names and descriptions). Results list every transport (tcp, udp, sctp, dccp) separately, report the registry range row containing an unassigned port, and classify the port as System (0–1023), User (1024–49151), or Dynamic/Private (49152–65535). Service names registered without a port (DNS-SD names) appear with no port.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port number, 0–65535 (a digit string such as "443" also works). Returns every row for that port plus the range row containing it. Pass exactly one of port, service, or keyword. | |
| limit | No | Requested maximum results, 1–1,000,000; values above 100 are clamped to 100 and disclosed as requested_limit and effective_limit. Default 25. | |
| offset | No | Number of keyword matches to skip; pass the next_offset of the previous response to get the next page. Default 0. | |
| keyword | No | Words matched as whole tokens against service names and descriptions, e.g. "network time". Pass exactly one of port, service, or keyword. | |
| service | No | Exact service name, case-insensitive, up to 15 characters, e.g. "postgresql" or "whois++". Pass exactly one of port, service, or keyword. | |
| transport | No | Keep only rows for this transport protocol. Rows without a transport (most range rows and every service name without a port) are always kept. Applies to every mode. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The limit applied. | |
| mode | No | Which lookup ran. | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | True when a matching row after transport filtering has a registered service name; keyword mode checks all matches before paging. | |
| shown | No | Results returned. | |
| notice | No | Guidance on a miss, a cut list, or another condition. | |
| source | No | Provenance and freshness of the answer. | |
| truncated | No | True when more matches exist than were returned. | |
| port_class | No | Port mode: the requested port's class. | |
| totalCount | No | Matches before the limit was applied. | |
| assignments | No | Matching rows. Port mode: exact rows, then range rows containing the port. Other modes: ascending by port, port-less rows last. | |
| next_offset | No | Pass as offset for the next page; absent on the last. | |
| effective_limit | No | The response limit after clamping, present when clamped. | |
| requested_limit | No | The requested limit, present when clamped. |