# Yog x402 API Health Check

> Yog x402 API Health Check is a paid API for AI agents from api.gosyog.lol, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-29).

Pings a URL to verify it is reachable, returns the HTTP status code, and optionally validates the response against an expected status or JSON schema

## Facts

- Endpoint: POST https://api.gosyog.lol/api/service/yog/api_health_check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yog-x402-api-health-check-24575d10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HxPw_SYDB0Nkfg0WTj1uy

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 yog-x402-api-health-check-24575d10 -d '<json body>'
```

Example prompt: Can you do a health check on https://api.example.com/v1/status using a GET request and confirm it comes back with a 200 status?

## When to prefer this

Use this endpoint as a lightweight, free-tier liveness check when you need to confirm a URL is reachable and optionally validate its response status or JSON shape before invoking more expensive downstream operations. Prefer it over other Yog x402 endpoints (classify_text, json_repair, extract_fields) when you don't need LLM-based text processing — just a simple HTTP probe with optional schema assertion.

## Known failure modes

- URL is unreachable or DNS fails — reachable: false with no status code
- Expected status does not match actual status — status_match: false
- Invalid URI format provided — validation error before request is made
- Timeout if remote server is slow to respond
- Expected JSON schema provided but response body is not JSON

## How this service works

Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).

## Output

Returns a JSON object with an 'ok' boolean and a 'result' object containing: whether the URL was reachable, the actual HTTP status code returned, and whether it matched the expected status code (if one was provided).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri"
  },
  "method": {
   "enum": [
    "GET",
    "HEAD"
   ]
  },
  "expected_status": {
   "type": "integer"
  },
  "expected_json_schema": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "status": 200,
   "reachable": true,
   "status_match": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yog-x402-api-health-check-24575d10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gosyog.lol](https://www.zero.xyz/host/api.gosyog.lol/llms.txt)
