# x402 Market Overview API

> x402 Market Overview API is a paid API for AI agents from spend.crestsystems.ai, paid per call via x402, $0.010000/call, status down (last checked 2026-09-15).

Returns a real-time overview of the x402 payment ecosystem including top services by revenue, price distribution, hourly volume, and ecosystem health score.

## Facts

- Endpoint: GET https://spend.crestsystems.ai/api/overview
- Price: $0.010000/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spend-crestsystems-ai-c7ff0e86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ODqzwNF68gvJU7gos_K7k

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 spend-crestsystems-ai-c7ff0e86
```

Example prompt: Give me the x402 market overview for the last 48 hours — I want to see top services by revenue, how prices are distributed, and the ecosystem health score.

## When to prefer this

Use this endpoint when you need a high-level snapshot of the x402 API payment ecosystem — top earners, volume trends, and market health — without needing per-service drill-downs or anomaly detection. Prefer this over the anomaly detection sibling when you want aggregate summaries rather than spike/deviation alerts.

## Known failure modes

- Invalid hours parameter (e.g. exceeds 720 or non-integer) returns a 400 error
- Payment not provided or insufficient returns a 402 Payment Required
- Service temporarily unavailable returns 503
- No data available for requested time window returns empty or null fields

## How this service works

x402 market overview. Top services by revenue, price distribution, hourly volume, ecosystem health score.

## Output

Returns aggregated x402 ecosystem metrics including a ranked list of top services by revenue, price distribution histogram, hourly volume data, and an overall ecosystem health score, optionally scoped to a configurable lookback window (default 24h, max 720h).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "hours": 48
  }
 }
}
```

## 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": {
      "hours": {
       "type": "integer",
       "description": "Lookback window in hours (default 24, max 720)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spend-crestsystems-ai-c7ff0e86/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from spend.crestsystems.ai](https://www.zero.xyz/host/spend.crestsystems.ai/llms.txt)
