# Port Scanner API

> Port Scanner API is a paid API for AI agents from port-scanner.api.klymax402.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Scans specified ports on a given hostname or IP address to determine which are open

## Facts

- Endpoint: GET https://port-scanner.api.klymax402.com/api/scan
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/port-scanner-api-94deb830
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3avzqR90WI0iEcHIAaaAw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability port-scanner-api-94deb830
```

Example prompt: Can you scan example.com to check which of the common ports are open — especially 22, 80, 443, and 3306?

## When to prefer this

Use this endpoint when you need a quick network-level check of which ports are open on a specific host or IP, especially for infrastructure monitoring, security audits, or verifying that a service is exposed. Ideal when you already know the host and want to check a specific set of ports against the default common ports list.

## Known failure modes

- Host not found or unresolvable hostname returns an error
- Invalid IP address format causes a bad request error
- Empty or malformed ports array may default to the standard port list or return an error
- Firewall or network restrictions may cause false negatives where open ports appear closed
- Scan timeout if the host is unreachable or very slow to respond

## How this service works

Scan common ports on a host to check which are open

## Output

Returns the status of each scanned port on the target host, indicating which ports are open and which are closed or filtered.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "host": {
   "type": "string",
   "description": "The hostname or IP address to scan"
  },
  "ports": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "Array of port numbers to scan (default: [21,22,25,53,80,110,143,443,993,995,3306,3389,5432,6379,8080,8443])"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/port-scanner-api-94deb830/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from port-scanner.api.klymax402.com](https://www.zero.xyz/host/port-scanner.api.klymax402.com/llms.txt)
