# x402scan Merchant Stats

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

Returns aggregated merchant metrics (total revenue, transaction count, unique buyers, and latest block timestamp) for a specific merchant address on the x402 payment network.

## Facts

- Endpoint: GET https://x402scan-j55w7ornb-merit-systems.vercel.app/api/data/merchants/0xf7b1356cfed0eebe01d76da7ba9e9f8bf12d9d57/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-j55w7ornb-merit-systems-vercel-app-b3f3e7bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JxMqt_Ep3xTLb0vDRlg8T

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-j55w7ornb-merit-systems-vercel-app-b3f3e7bc
```

Example prompt: Can you pull the last 7 days of sales stats for merchant address 0xf7b1356cfed0eebe01d76da7ba9e9f8bf12d9d57 on the Base chain — I want to see total revenue, transaction count, and unique buyer numbers from x402scan.

## When to prefer this

Use this endpoint when you need aggregated performance metrics (revenue, transaction volume, buyer reach) for a known merchant address on the x402 protocol. Prefer this over the transaction-history endpoints when you want rolled-up stats rather than individual transfer records, and when you want chain-specific or time-windowed summaries.

## Known failure modes

- Invalid or unrecognized merchant address returns empty or error response
- Unsupported chain value returns validation error
- Timeframe value outside allowed set (1, 7, 14, 30) may return error or default behavior
- Merchant has no transactions in the given timeframe — returns zeros
- Payment of $0.01 USDC not fulfilled causes 402 Payment Required response

## How this service works

Fetch aggregated merchant metrics (sales, revenue, order count, and payment token details) for a given merchant address via x402.

## Output

Returns a JSON object with total_amount (in smallest token units), unique_buyers count, unique_sellers count, total_transactions count, and latest_block_timestamp for the given merchant over the specified timeframe and chain.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base",
   "timeframe": 7
  }
 }
}
```

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "total_amount",
    "unique_buyers",
    "unique_sellers",
    "total_transactions",
    "latest_block_timestamp"
   ],
   "properties": {
    "total_amount": {
     "type": "number"
    },
    "unique_buyers": {
     "type": "number"
    },
    "unique_sellers": {
     "type": "number"
    },
    "total_transactions": {
     "type": "number"
    },
    "latest_block_timestamp": {
     "type": "null"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402scan-j55w7ornb-merit-systems-vercel-app-b3f3e7bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402scan-j55w7ornb-merit-systems.vercel.app](https://www.zero.xyz/host/x402scan-j55w7ornb-merit-systems.vercel.app/llms.txt)
