T

TCP Port Scanner · Scan

by TCP Port Scanner

POSTBaseSolana

$0.01

per call · USD Coin on Base

Give this API a hostname or IP address and it tries connecting to each port in your requested range. For every port that answers it reports whether it is open or blocked, which service is likely running there (a web server, SSH), and what software version was detected. Saves you installing network tools, parsing command-line output, or writing socket loops. Only scan hosts you own or have permission to scan - this tool does not check that for you.

Endpoint

POST https://port-scanner.underscoredone.com/scan

6

Calls / 30d

4

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://port-scanner.underscoredone.com/scan", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "ports": "1-1000",
    "scan_type": "tcp_connect",
    "target": "scanme.nmap.org",
    "timeout": 30
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://port-scanner.underscoredone.com/scan" \
  -H "Content-Type: application/json" \
  -d '{"ports":"1-1000","scan_type":"tcp_connect","target":"scanme.nmap.org","timeout":30}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "api_version": "1.0.0",
  "closed_or_filtered_count": 998,
  "complete": true,
  "duration_ms": 4521,
  "open_ports": [
    {
      "port": 22,
      "protocol": "tcp",
      "service": "ssh",
      "state": "open",
      "version": "OpenSSH 8.2p1"
    },
    {
      "port": 80,
      "protocol": "tcp",
      "service": "http",
      "state": "open",
      "version": "Apache httpd 2.4.41"
    }
  ],
  "ports_requested": 1000,
  "ports_scanned": 1000,
  "resolved_ip": "45.33.32.156",
  "scan_type": "tcp_connect",
  "target": "scanme.nmap.org",
  "warning": ""
}

Payment details

Pay to0xe9740820225b3918b4ddd1292c7ca4ca0e2c2f08
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from TCP Port Scanner & similar services