# Blockscout Chain Stats Counters

> Blockscout Chain Stats Counters is a paid API for AI agents from api.blockscout.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-10).

Returns aggregate statistical counters (transaction counts, address counts, token counts, etc.) for a specified blockchain network via Blockscout's stats service

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/stats-service/api/v1/counters
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-chain-stats-counters-c403cf1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kyvmo76FKNxGdSenU4_wL

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 blockscout-chain-stats-counters-c403cf1f
```

Example prompt: Pull the aggregate stats counters for Ethereum from Blockscout — I want to see the total number of transactions, addresses, and any other network-level counts available for that chain.

## When to prefer this

Use this endpoint when you need high-level aggregate statistics (total counts) for an entire blockchain network rather than specific transaction or address details. Prefer this over transaction-lookup or address-lookup endpoints when the goal is network-wide metrics dashboards, chain health monitoring, or cross-chain comparison of activity levels. Ideal when you need a quick snapshot of how large or active a chain is.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty counters array
- Chain not indexed by Blockscout returns 404 or empty response
- Temporary stats service downtime returns 5xx error
- Missing chain_id path parameter causes request routing failure
- Payment failure (402) if x402 payment is not provided or insufficient

## How this service works

Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data

## Output

Returns a JSON array of counter objects for the specified chain, each containing an id, title, units, current value (as a string), and a human-readable description of what the counter measures (e.g. total transactions, total blocks, total addresses, total tokens).

## 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"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "chain_id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counters": [
   {
    "id": "string",
    "title": "string",
    "units": "string",
    "value": "string",
    "description": "string"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-chain-stats-counters-c403cf1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockscout.com](https://www.zero.xyz/host/api.blockscout.com/llms.txt)
