# X-RAY get_scope_metrics

> X-RAY get_scope_metrics is a paid API for AI agents from mcp.x-ray.me, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-02).

Returns daily time-series metric data for a market, blockchain chain, or sector over a configurable lookback window

## Facts

- Endpoint: GET https://mcp.x-ray.me/x402/get_scope_metrics?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-ray-get-scope-metrics-0609c584
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4p0SzCou3Uj_OZPq1Oi3d

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 x-ray-get-scope-metrics-0609c584
```

Example prompt: Can you pull the daily TVL and open_roles metrics for the Ethereum chain over the last 60 days from X-RAY?

## When to prefer this

Use this endpoint when you need historical, day-by-day trend data for a specific blockchain chain, Web3 sector, or the overall market. It is the right choice when you want to analyze how metrics like TVL or open job roles have evolved over time, as opposed to point-in-time snapshots. Prefer this over the 'compare' endpoint when you need a full time-series rather than a cross-sectional comparison.

## Known failure modes

- Invalid or unrecognized chain/sector slug returns an error or empty series
- Unsupported metric names in the comma-separated list may be silently ignored or return null values
- Missing required 'type' or 'metrics' query params results in a 400-level error
- Requesting too long a lookback window may return partial data or hit limits
- Payment failure (x402) if USDC balance is insufficient

## How this service works

X-RAY get_scope_metrics: daily metric series for the market, a chain or a sector

## Output

A daily time-series dataset for the requested scope (market, chain, or sector) containing one data point per day for each requested metric (e.g. tvl_usd, open_roles), covering the specified lookback period. The response is an object with metric arrays indexed by date.

## 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",
     "required": [
      "type",
      "metrics"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "description": "lookback, default 30"
      },
      "slug": {
       "type": "string",
       "description": "chain or sector slug"
      },
      "type": {
       "type": "string",
       "description": "market | chain | sector"
      },
      "metrics": {
       "type": "string",
       "description": "comma-separated metric names, e.g. open_roles,tvl_usd"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 90,
  "scope": {
   "name": "Solana",
   "slug": "solana",
   "type": "chain"
  },
  "series": {
   "open_roles": [
    {
     "date": "2026-10-01",
     "value": 420
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-ray-get-scope-metrics-0609c584/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp.x-ray.me](https://www.zero.xyz/host/mcp.x-ray.me/llms.txt)
