# Yog x402 Code Review

> Yog x402 Code Review is a paid API for AI agents from api.gosyog.lol, paid per call via x402, $0.03/call, status down (last checked 2026-10-22).

Reviews submitted code for correctness, logic issues, and missing checks, returning a concise textual review.

## Facts

- Endpoint: POST https://api.gosyog.lol/api/service/yog/code_review?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: down
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yog-x402-code-review-6eb6ba4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NkLK-9UMD_JNhtGoTjoBB

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-code-review-6eb6ba4b -d '<json body>'
```

Example prompt: Can you review this Python function for me and flag any missing input validation or bounds checks? Here's the code: `def divide(a, b): return a / b`

## When to prefer this

Choose this endpoint when you need a quick, paid AI-powered code review for a specific snippet and programming language, especially when you want structured JSON output with a concise review comment. Prefer it over general LLM prompting when you want a consistent, metered API call with predictable pricing ($0.03 USDC) and a clean result schema.

## Known failure modes

- Missing `code` field returns an error response
- Unsupported or ambiguous `language` may produce a generic review
- Payment failure via x402 protocol results in 402 status and no review
- Very large code snippets may be truncated or rejected
- Malformed JSON request body returns a parse error

## How this service works

Paid JSON repair, field extraction, classification, and code review.

## Output

A JSON object with `ok: true` and a `result.review` string containing a concise human-readable assessment of the submitted code, noting correctness, missing checks, type safety issues, or potential bugs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string"
  },
  "language": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "review": "Looks correct for numeric inputs; no bounds/type checks."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yog-x402-code-review-6eb6ba4b/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)
