# ScriptMasterLabs Fear & Greed Index API

> ScriptMasterLabs Fear & Greed Index API is a paid API for AI agents from acp-x402-scriptmasterlabs.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the current (and optionally historical) crypto Fear & Greed Index score, settled via x402 micropayment in USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-scriptmasterlabs.onrender.com/x402/fear-greed-index
- 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/scriptmasterlabs-fear-greed-index-api-dbcd60ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jvjyXuBNbfIm35uz9SjUh

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-fear-greed-index-api-dbcd60ab
```

Example prompt: What's the current crypto Fear & Greed Index score — just give me the latest reading so I can see whether the market is in fear or greed territory right now?

## When to prefer this

Choose this endpoint when you need a quick, micropayment-gated (no API key setup) crypto Fear & Greed Index reading via the x402 protocol settled in USDC on Base. It is ideal for AI agents that already have x402 payment capability and want a low-cost, per-call sentiment signal without managing API subscriptions.

## Known failure modes

- Payment not settled — 402 response if x402 USDC payment on Base is not properly attached
- Invalid limit parameter — non-integer or out-of-range value may return a 400 error
- Upstream data unavailable — if the underlying Fear & Greed data source is down, may return a 503 or empty result
- Rate limits or server cold start on Render free tier may cause intermittent 504 timeouts

## 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

Returns one or more Fear & Greed Index data points, each including a numeric score (0–100), a sentiment label (e.g. 'Extreme Fear', 'Greed', 'Extreme Greed'), and a timestamp. The number of results is controlled by the 'limit' query parameter (default 1).

## 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": 1,
       "example": 1
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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