# x402scan Merchant Aggregate Stats

> x402scan Merchant Aggregate Stats is a paid API for AI agents from x402scan-git-router-117-merit-systems.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns aggregate transaction statistics for a specific x402 merchant address, filterable by blockchain and time window

## Facts

- Endpoint: GET https://x402scan-git-router-117-merit-systems.vercel.app/api/x402/merchants/:address/stats
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402scan-merchant-aggregate-stats-fb609619
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HBV-Yu7eiRY_igiVhQRn1

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 x402scan-merchant-aggregate-stats-fb609619
```

Example prompt: Pull the x402scan aggregate stats for merchant address 0xAbC123... on Base over the last 30 days — I want to see their total volume and transaction count.

## When to prefer this

Use this endpoint when you need a quick, pre-aggregated summary of an x402 merchant's payment activity — total volume, transaction counts — rather than individual transaction records. Ideal for dashboards, performance monitoring, or comparing merchant activity across chains or time periods without running raw queries.

## Known failure modes

- Invalid or unrecognized merchant address returns 404 or empty stats
- Unsupported chain value returns 400 validation error
- Unsupported timeframe value (not 1, 7, 14, or 30) returns 400 validation error
- Merchant has no activity in selected timeframe returns zeroed stats
- Payment not received causes 402 Payment Required before data is returned

## How this service works

Aggregate stats for a merchant

## Output

Returns a JSON object containing aggregate statistics for the specified merchant address, such as total transaction count, total payment volume, and revenue figures, optionally scoped to a specific chain (base or solana) and a lookback window of 1, 7, 14, or 30 days.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "chain": {
       "enum": [
        "base",
        "solana"
       ],
       "type": "string",
       "description": "Filter by chain"
      },
      "timeframe": {
       "anyOf": [
        {
         "type": "number",
         "const": 1
        },
        {
         "type": "number",
         "const": 7
        },
        {
         "type": "number",
         "const": 14
        },
        {
         "type": "number",
         "const": 30
        }
       ],
       "description": "Days lookback (1, 7, 14, or 30)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402scan-merchant-aggregate-stats-fb609619/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402scan-git-router-117-merit-systems.vercel.app](https://www.zero.xyz/host/x402scan-git-router-117-merit-systems.vercel.app/llms.txt)
