Check x402 service health
x402_check_healthCall this before you send a payment, or right after a call unexpectedly failed: is this service up right now. With no slug, the directory snapshot: five status counts across 500+ services (include_services=true attaches every row). With a slug: that service's status, its 24h/7d/30d/90d uptime windows, response time, consecutive failures, daily snapshots. No money fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Service slug for a single-service health report. Omit for the whole directory. | |
| uptime_period | No | Daily uptime snapshot window for single-service mode. | 30d |
| include_services | No | Directory mode only (no slug): if true, also attach the full per-service status array. Off by default so a directory health check returns just the five status counts, not every service. |