# SWARM Site Check

> SWARM Site Check is a paid API for AI agents from swarm-agent.net, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-03).

Checks whether a public URL is up by returning HTTP status, final URL after redirects, response time, and TLS error info.

## Facts

- Endpoint: POST https://swarm-agent.net/services/site-check?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swarm-site-check-577b934b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kdalcmIKG6ehokMXqN9hs

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 swarm-site-check-577b934b -d '<json body>'
```

Example prompt: Can you check if https://myapi.example.com is up right now — I want to know the HTTP status, how fast it responds, and whether it redirects anywhere?

## When to prefer this

Use this endpoint when you need a fast, cheap, non-AI check of whether a public HTTP/HTTPS URL is live — including its status code, redirect chain, response time, and TLS validity. Prefer it over full page scrapers or AI-powered tools when you only need availability and basic HTTP diagnostics, not page content.

## Known failure modes

- Invalid or non-public URL returns an error
- Non-standard ports (not 80/443) are rejected
- DNS resolution failure returns an error in the error field with up=false
- Connection timeout results in up=false with a timeout error
- Malformed URL schema causes a request error

## How this service works

SWARM Site Check - Website uptime and link check in one call: is a URL up, its HTTP status, final URL after redirects, response time and TLS/certificate errors. Use when an agent monitors sites on a schedule, verifies a link or domain is reachable before scraping or citing it, or needs to detect a non-200 answer or a broken redirect. Requires `url`. Instant, no AI. $0.002.

## Output

A JSON object containing: whether the site is up (boolean), the original URL, the final URL after any redirects, HTTP status code, number of redirects, response time in milliseconds, whether HTTPS is valid, the page title, content type, any error message, and the timestamp of the check.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http(s) URL, ports 80/443 only, e.g. https://example.com."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "up": true,
  "url": "https://example.com",
  "error": null,
  "https": true,
  "title": "Example Domain",
  "status": 200,
  "finalUrl": "https://example.com/",
  "checkedAt": "2026-10-16T10:01:22.041Z",
  "redirects": 0,
  "responseMs": 98,
  "contentType": "text/html; charset=utf-8"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swarm-site-check-577b934b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from swarm-agent.net](https://www.zero.xyz/host/swarm-agent.net/llms.txt)
