# ScriptMasterLabs DeFi Analytics API

> ScriptMasterLabs DeFi Analytics API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Returns DeFi analytics data (protocol metrics, liquidity, yields, and on-chain statistics) via a pay-per-call x402 micropayment settled in USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/defi-analytics
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-defi-analytics-api-3f378204
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4yLY_BXgmzLajdgDujkm8

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 scriptmasterlabs-defi-analytics-api-3f378204
```

Example prompt: Pull the latest DeFi analytics from ScriptMasterLabs — give me the top 25 protocols by key metrics like TVL and yield, paid per-call via USDC micropayment.

## When to prefer this

Choose this endpoint when you need pay-per-call DeFi analytics without a subscription, settled instantly in USDC on Base via x402. It is well-suited for AI agents that need on-demand DeFi protocol metrics without committing to a recurring API plan. Avoid if you need guaranteed schema stability, real-time streaming, or high-volume batch queries.

## Known failure modes

- 402 Payment Required — x402 micropayment not settled or USDC balance insufficient on Base
- Invalid query parameters — unsupported fields or out-of-range limit value
- Service unavailable — hosted on Render free tier which may cold-start slowly or go offline
- Empty or minimal response — loosely typed schema means data fields may be absent or vary
- Rate limiting — repeated calls without payment may be rejected

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

A JSON payload containing DeFi analytics records (up to the specified limit, default 25), likely including protocol names, TVL, liquidity figures, yield rates, trading volumes, and other on-chain DeFi metrics. Response schema is loosely typed with an example placeholder, so exact fields depend on current data availability.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 25,
       "example": 25
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-defi-analytics-api-3f378204/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
