# is-port-22-open-watch

> is-port-22-open-watch is a paid API for AI agents from ip.intel.rallylive.ca, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Monitors whether TCP port 22 (SSH) is open on a host and returns whether the status has changed since the last check, with before/after diff values.

## Facts

- Endpoint: GET https://ip.intel.rallylive.ca/watch/ip/port/22?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/is-port-22-open-watch-77d4bace
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lftKjZ6mRpmgKCsUHjls1

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 is-port-22-open-watch-77d4bace
```

Example prompt: Keep an eye on port 22 for 203.0.113.45 and tell me if its SSH open/closed status has changed since the last time you checked.

## When to prefer this

Choose this endpoint when you need change-detection semantics for port 22 (SSH) monitoring — not just a one-time check, but a stateful watch that compares the current result against a cached prior state and explicitly tells you what changed. Ideal for scheduled polling workflows where you want to be alerted only on transitions (open→closed or closed→open), avoiding noise from repeated identical states. Prefer the non-watch sibling for one-off checks with no change comparison needed.

## Known failure modes

- Host unreachable or invalid IP/hostname returns an error or inconclusive port status
- No previous result cached (first call for this host) may return changed=false or null diff
- Network timeout from Cloudflare edge may produce indeterminate open/closed result
- Cached result expired after 90 days resets the comparison baseline
- Rate limiting or payment failure returns a 402 or error response

## How this service works

Change watch for is port 22 open: runs the check, compares it with the result from your previous call for the same host (kept 90 days) and returns the current answer, changed true/false, the fields that changed with before/after values, and when it was last seen. Schedule it to be alerted when this changes. $0.02 per check.

## Output

Returns the current boolean status of port 22 (open/closed), a 'changed' true/false flag indicating whether the status differs from the previous cached result (retained 90 days), a list of fields that changed with before and after values, and a timestamp of when the status was last observed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/is-port-22-open-watch-77d4bace/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ip.intel.rallylive.ca](https://www.zero.xyz/host/ip.intel.rallylive.ca/llms.txt)
