# AgentData API — Stablecoin Health

> AgentData API — Stablecoin Health is a paid API for AI agents from agentdata-api.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns health and risk metrics for major stablecoins, including peg stability, collateralization, and market data, paid via USDC micropayment on Base Mainnet.

## Facts

- Endpoint: GET https://agentdata-api.com/api/stablecoin-health
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdata-api-stablecoin-health-b6d8926d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vc7nMP-399ToXNkOpLTqv

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 agentdata-api-stablecoin-health-b6d8926d
```

Example prompt: Check the current health of DAI — is it holding its peg, what's the collateralization ratio, and is there any depeg risk right now?

## When to prefer this

Use this endpoint when an AI agent needs real-time stablecoin peg stability or collateralization health data without requiring an API key or account setup. Ideal for autonomous agents that can handle x402 micropayments on Base Mainnet and need risk signals about specific stablecoins (e.g., DAI, USDC, USDT, FRAX) for DeFi decision-making or monitoring workflows.

## Known failure modes

- Payment not provided or insufficient USDC — returns HTTP 402 with payment requirements
- Unsupported or unrecognized stablecoin symbol — returns 400 or empty result
- Network congestion on Base Mainnet causes payment confirmation delay
- Stale or unavailable upstream price feed results in incomplete health data
- Invalid request body format returns 400 validation error

## How this service works

Pay-per-request crypto market data API for AI agents. 16 endpoints on Base Mainnet via x402 protocol. No accounts, no API keys. USDC micropayments from $0.001. Works with Claude Desktop, ElizaOS, and any MCP client.

## Output

Returns stablecoin health metrics including current peg ratio, price deviation from $1, collateralization data, circulating supply, market cap, and a risk/health score for the queried stablecoin. Delivered after a $0.001 USDC micropayment via the x402 protocol on Base Mainnet.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "liveDepegCheck": {
         "type": "object"
        },
        "top10StablecoinMarketCap": {
         "type": "number"
        },
        "topStablecoinsByMarketCap": {
         "type": "array"
        }
       }
      },
      "success": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdata-api-stablecoin-health-b6d8926d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdata-api.com](https://www.zero.xyz/host/agentdata-api.com/llms.txt)
