# Blockscout — Retrieve blockchain network statistics and metrics

Read Blockscout network statistics via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including reported total block count, reported total transaction count, reported total address count, and reported average block time for explorer overview, and observation dashboards.

Documentation: https://openany.si/blockscout/blockscout-retrieve-blockchain-network-statistics-and-metrics/3d3daac2-6864-4ec4-9a6b-8af30c7851be/
API ID: 3d3daac2-6864-4ec4-9a6b-8af30c7851be
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/stats
Page update time: 2026-12-03T02:49:22.875Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:22.538Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout Network Statistics API

Call stats with chain\_id to obtain a network-level JSON object. The provider response schema includes aggregate totals and network or market context. Preserve unavailable values separately from numeric zero, and retain the chain identity when comparing observations.

## What You Can Build

- **Explorer overview**: Show aggregate network counts together.
- **Observation dashboards**: Associate each fetched statistics object with its chain and observation time.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `total_blocks` | Reported total block count |
| `total_transactions` | Reported total transaction count |
| `total_addresses` | Reported total address count |
| `average_block_time` | Reported average block time |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — Retrieve blockchain network statistics and metrics request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {}
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/stats' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can I request a custom date range?
This selected stats route accepts chain_id only and exposes no date-range or interval query input.

### Is a missing metric the same as zero?
No. Preserve missing or null values separately from numeric zero. Availability can differ by chain.

### Can I use this as a historical time series?
It provides a network statistics response. Store observations with your own observation times or use a suitable chart endpoint for a time-series task.

### Can I query multiple chains in one request?
No. Make a separate request for each chain_id and retain the chain identifier with each result.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-retrieve-blockchain-network-statistics-and-metrics/3d3daac2-6864-4ec4-9a6b-8af30c7851be/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
