# DripMetrics AI Stablecoin Flow Metrics

> DripMetrics AI Stablecoin Flow Metrics is a paid API for AI agents from api.dripmetrics.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns on-chain stablecoin supply flow metrics (net change, percent change, direction) for a specified blockchain and time window, sourced from DefiLlama.

## Facts

- Endpoint: POST https://api.dripmetrics.ai/metrics/onchain/stablecoin-flow
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dripmetrics-ai-stablecoin-flow-metrics-96d5f383
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BYsnfo0CFEiWdMwg03nv-

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 dripmetrics-ai-stablecoin-flow-metrics-96d5f383 -d '<json body>'
```

Example prompt: Pull the stablecoin flow metric for Base over the last 7 days — I want to see whether stablecoin supply is expanding or contracting and by how much.

## When to prefer this

Choose this endpoint when you need on-chain stablecoin supply flow data sourced from DefiLlama for a specific blockchain and time window — especially for DeFi liquidity analysis, chain health monitoring, or pre-trade capital flow assessments. Prefer this over general market data APIs when the specific metric needed is net stablecoin supply change and directional flow (expanding vs contracting) with annualized rate calculations.

## Known failure modes

- Missing required query parameters 'chain' or 'window' returns a validation error
- Unsupported chain name may return empty data or an error if not indexed by DefiLlama
- Window enum value outside {1d, 7d, 30d, 90d} causes a schema validation failure
- Payment not included or insufficient USDC balance results in a 402 Payment Required response
- Stale or unavailable DefiLlama data may result in outdated computedAt timestamps

## How this service works

DripMetricsAI (https://dripmetrics.ai/) provides on-demand crypto market microstructure metrics, Hyperliquid candle metrics, Polymarket diagnostics, and on-chain DefiLlama metrics for agents, dashboards, and trading workflows.

## Output

A JSON object containing the metric name ('stablecoin-flow'), the chain, the time window, a percent change value, the direction of flow (expanding or contracting), net stablecoin change in USD, start and current stablecoin supply in USD, annualized flow percent, number of observations, the data source (DefiLlama), and a computedAt timestamp.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "window"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "window": {
       "enum": [
        "1d",
        "7d",
        "30d",
        "90d"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "metric",
      "window",
      "value",
      "unit",
      "components",
      "computedAt"
     ],
     "properties": {
      "unit": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "value": {
       "type": "number"
      },
      "metric": {
       "type": "string"
      },
      "window": {
       "type": "string"
      },
      "components": {
       "type": "object"
      },
      "computedAt": {
       "type": "string",
       "format": "date-time"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "pct_change",
  "chain": "base",
  "value": 0.034,
  "metric": "stablecoin-flow",
  "window": "7d",
  "components": {
   "source": "DefiLlama",
   "direction": "expanding",
   "pctChange": 0.034,
   "observations": 8,
   "annualizedFlowPct": 1.772857,
   "netStablecoinChangeUsd": 101934236,
   "startStablecoinSupplyUsd": 2998065764,
   "currentStablecoinSupplyUsd": 3100000000
  },
  "computedAt": "2026-06-10T16:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-stablecoin-flow-metrics-96d5f383/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.dripmetrics.ai](https://www.zero.xyz/host/api.dripmetrics.ai/llms.txt)
