81trust / 100
Scan
by TCP Port Scanner in Weather & location
x402 APIPassing, checked 40 min ago
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.
POST https://port-scanner.underscoredone.com/scan
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 259 ms typical, 259 ms slowest 5%
- Last check
- 40 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -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}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fport-scanner.underscoredone.com%2Fscan
const res = await pay("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}),
});
console.log(await res.json());Example input
{
"ports": "1-1000",
"scan_type": "tcp_connect",
"target": "scanme.nmap.org",
"timeout": 30
}Example output
{
"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": ""
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 40 min ago | Passed | 402 | 259 ms | $0.01 |
| 6 h ago | Passed | 402 | 283 ms | $0.01 |