# klymax402 Port Scanner API

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

Scans a hostname or IP address for open TCP ports and returns which ports are open

## Facts

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

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 klymax402-port-scanner-api-4072cce4
```

Example prompt: Can you scan example.com for open ports and tell me which ones are open — especially check ports 22, 80, 443, 3306, and 5432?

## When to prefer this

Use this endpoint when an AI agent needs to quickly discover which TCP ports are open on a remote host without setting up local tooling or managing API keys. It is suitable for lightweight network reconnaissance, infrastructure verification, and security auditing tasks where per-call micropayment billing via USDC on Base is acceptable.

## Known failure modes

- Invalid or unreachable hostname returns empty results or error
- Firewall-filtered ports may show as closed even if a service is running
- Timeouts on unresponsive hosts may cause incomplete scan results
- Scanning too many ports at once may result in slowdowns or partial results
- Payment failure (insufficient USDC balance) returns 402 error before scan executes

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

Returns a JSON object with the scanned hostname, a results array indicating the status of each port, a count of open ports, a list of scanned port numbers, and a timestamp of when the scan was performed.

## 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])"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example",
  "results": [],
  "openPorts": 1,
  "timestamp": "example",
  "scannedPorts": 1
 }
}
```

## More

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