# risk.yo.xyz DeFi Node Search

> risk.yo.xyz DeFi Node Search is a paid API for AI agents from risk.yo.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Searches for DeFi protocol/asset/pool nodes by address or name, returning risk grades and graph metadata

## Facts

- Endpoint: GET https://risk.yo.xyz/api/v1/agent/search
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/risk-yo-xyz-f1e7ca16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B0n2mO_1iKW2NKaN3EX5M

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 risk-yo-xyz-f1e7ca16
```

Example prompt: Search the DeFi risk graph for the Uniswap protocol — give me its risk tier, labels, and node properties, and filter to nodes with TVL above 1 million and a grade of A or B.

## When to prefer this

Use this endpoint as the entry point when you need to discover DeFi protocol, asset, pool, or chain nodes by name or on-chain address before traversing the risk graph. It is the only discovery path — use it before calling node-detail or dependency endpoints that require a nodeId. Prefer it when you need to filter by risk grade (A–F), TVL range, or node label type to narrow results upfront.

## Known failure modes

- Empty or wildcard query (*, %) returns an error — targeted lookup only required
- Query matches no nodes — empty nodes array returned
- Grade comparator syntax invalid — malformed filter rejected
- TVL comparator syntax invalid — request rejected
- Limit exceeds 10 — capped or rejected
- Asset address not found in graph — empty result
- Payment not included or insufficient — 402 payment required response

## How this service works

Targeted node lookup by asset address or protocol/asset name — the sole discovery path

## Output

Returns an array of up to 10 matching graph nodes, each containing a stable node ID, PascalCase labels (e.g. Pool, Asset, Protocol, Chain), and a property bag including the risk tier (_riskTier, A–F scale) and other per-label metadata. Empty queries and wildcards are rejected.

## 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",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Asset address or protocol/asset name. Targeted lookup only — empty and wildcard (`*`, `%`) queries are rejected."
      },
      "tvl": {
       "type": "string",
       "description": "Optional TVL comparator filter, e.g. \">1000000\" or \"<5e8\"."
      },
      "grade": {
       "type": "string",
       "description": "Optional grade comparator over A–F, e.g. \"A\", \"<=B\", \">=C\"."
      },
      "label": {
       "type": "string",
       "description": "Optional PascalCase label filter (e.g. \"Pool\", \"Asset\", \"Protocol\", \"Chain\")."
      },
      "limit": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1,
       "description": "Max nodes to return; hard-capped at 10 (default 10)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "nodes"
     ],
     "properties": {
      "nodes": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "labels",
         "properties"
        ],
        "properties": {
         "id": {
          "type": "string",
          "description": "Stable node id — pass to `/node` and `/dependencies`."
         },
         "labels": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "PascalCase Neo4j labels (e.g. \"Pool\", \"Asset\")."
         },
         "properties": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "tvlUsd": {
            "type": "number",
            "description": "Value-locked $ TVL, coalesced across real pool types. Absent for LST/token nodes (see marketCapUsd) and pools with no USD figure."
           },
           "address": {
            
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/risk-yo-xyz-f1e7ca16/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from risk.yo.xyz](https://www.zero.xyz/host/risk.yo.xyz/llms.txt)
