# Port Number Lookup API

> Port Number Lookup identifies network services and port ranges from any port number or service name. Each query returns the assigned service, description, and classification across well-known, registered, or dynamic ranges, while paid plans add protocol details.

**Endpoint:** `GET https://api.apiverve.com/v1/portnumberlookup`  
**Category:** Reference Data  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/portnumberlookup

## Overview

Port Number Lookup works from a curated table of common ports (HTTP, HTTPS, SSH, databases, VoIP, VPN and more, with categories) backed by the full IANA Service Name and Transport Protocol Port Number Registry, refreshed monthly. Any port from 0 to 65535 returns its range classification; ports with no assignment return null service details, and ports from 49152 up are labelled as the dynamic (ephemeral) range.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/portnumberlookup?port=443" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `port` | integer | Yes | Port number to lookup. range 1-65535 |

## Response fields

- `count` — number · Number of matching ports returned
  - `ports.0.port` — number · Port number
  - `ports.0.service` — string · Service name for this port
  - `ports.0.protocol` — string · Protocol (TCP/UDP) · (premium)
  - `ports.0.description` — string · Description of the service
  - `ports.0.category` — string · Port category (well-known, registered) · (premium)
  - `ports.0.is_well_known` — boolean · Whether the port is in the well-known range, 0 to 1023
  - `ports.0.is_registered` — boolean · Whether the port is in the registered range, 1024 to 49151
  - `ports.0.is_dynamic` — boolean · Whether the port is in the dynamic or ephemeral range, 49152 and above

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 1,
    "ports": [
      {
        "port": 443,
        "service": "HTTPS",
        "protocol": "TCP",
        "description": "HTTP Secure (HTTP over TLS/SSL)",
        "category": "Web",
        "is_well_known": true,
        "is_registered": false,
        "is_dynamic": false
      }
    ]
  }
}
```

## Use cases

- **Network Configuration** — Identify services and configure firewall rules based on port numbers
- **Security Auditing** — Analyze open ports and identify running services during security assessments
- **Troubleshooting** — Diagnose network connectivity issues by identifying services on specific ports
- **Documentation** — Generate network documentation and service inventories with port information

## SDKs

- **npm** — `npm install @apiverve/portnumberlookup` (https://www.npmjs.com/package/@apiverve/portnumberlookup)
- **NuGet** — `dotnet add package APIVerve.API.PortNumberLookup` (https://www.nuget.org/packages/APIVerve.API.PortNumberLookup)
- **Source** — https://github.com/apiverve/portnumberlookup-api

## More

- Full reference: https://docs.apiverve.com/ref/portnumberlookup
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
