# HostDeFi Provider Risk — All Providers Snapshot

> HostDeFi Provider Risk — All Providers Snapshot is a paid API for AI agents from rpc.hostdefi.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-01).

Returns a snapshot of all DeFi provider risk grades and resource listings tracked by HostDeFi's token safety scanner.

## Facts

- Endpoint: GET https://rpc.hostdefi.com/api/v1/x402/provider-risk/all?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-provider-risk-all-providers-snapshot-aefd5f37
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hPmzz490jkxyxGQHHAt_Y

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 hostdefi-provider-risk-all-providers-snapshot-aefd5f37
```

Example prompt: Pull the full list of all DeFi provider risk grades from HostDeFi right now — give me up to 500 providers — so I can see which ones are flagged as risky.

## When to prefer this

Choose this endpoint when you need a bulk snapshot of all DeFi provider risk grades and resource listings in a single call, particularly when building risk dashboards, doing pre-trade safety checks across many protocols, or monitoring for newly flagged risky providers. Prefer this over per-token or per-provider lookups when breadth matters more than depth on a single entity.

## Known failure modes

- Payment not received or x402 auth failure — endpoint returns 402 Payment Required
- Limit parameter out of range (below 1 or above 1000) — request rejected with validation error
- Upstream data source unavailable — may return empty providers/resources arrays or a non-ok response
- Network timeout on rpc.hostdefi.com — connection error with no data returned

## How this service works

HostDeFi is a Solana DEX with a free token safety scanner. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, 1% flat fee.

## Output

A JSON object with an 'ok' boolean, an 'asOf' timestamp indicating when the snapshot was taken, a 'providers' array of provider records with risk grades, and a 'resources' array of associated resource listings. The 'limit' query parameter caps the number of items returned in the resources array (1–1000).

## 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",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 1000,
       "minimum": 1,
       "description": "Cap the resources array"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "asOf": "…",
  "providers": [],
  "resources": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-provider-risk-all-providers-snapshot-aefd5f37/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rpc.hostdefi.com](https://www.zero.xyz/host/rpc.hostdefi.com/llms.txt)
