x402

Port Check (x402)

Check if TCP ports are open on a host. Scans up to 20 ports with configurable timeout. Returns open/closed status with latency.

get/x402/v2/port-check

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/port-check
  • Auth: none required

Query parameters

hoststring required
portsunknown
timeout_msinteger

Response

Success

hoststring
open_countinteger
closed_countinteger

Example response

{
  "host": "google.com",
  "open_count": 1,
  "open_ports": [
    {
      "open": true,
      "port": 443,
      "service": "HTTPS",
      "latency_ms": 1
    }
  ],
  "closed_count": 0,
  "closed_ports": [],
  "ports_scanned": 1,
  "scan_timeout_ms": 3000
}

Changes

No recorded changes to this operation across all 1 revision of this API.