Developer & Reference
Port Numbers API
Look up official IANA port assignments by port number or service name.
Request Headers
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | ports.p.rapidapi.com |
Endpoints
GET
/v1/ports Look up IANA port assignments by port number, service name, or free text
Parameters
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
limit | integer | optional | — | — |
offset | integer | optional | — | — |
port | integer | optional | — | 0-65535 |
protocol | string | optional | — | — |
search | string | optional | — | <= 100 chars |
service | string | optional | — | <= 100 chars |
Code Examples
curl --request GET \
--url 'https://ports.p.rapidapi.com/v1/ports?limit=0&offset=0' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: ports.p.rapidapi.com' const url = "https://ports.p.rapidapi.com/v1/ports?limit=0&offset=0";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "ports.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://ports.p.rapidapi.com/v1/ports"
querystring = {"limit": 0, "offset": 0}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "ports.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) Interactive Example
$ GET /v1/ports?port=443
{"data":[{"port":443,"protocol":"tcp","service":"https","description":"http protocol over TLS/SSL"},{"port":443,"protocol":"udp","service":"https","description":"http protocol over TLS/SSL"}],"meta":{"total":2,"limit":10,"offset":0}} Subscribe & License
Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.
Developer Support
Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.
System Performance
Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.
All Systems Operational