# Blockscout — Number of batches in the list.

Read the Blockscout Scroll batch count 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 $ for explorer counters, and list context, ready for production pipelines and AI agent automation using a single OpenAny API key.

Documentation: https://openany.si/blockscout/blockscout-number-of-batches-in-the-list/8aa9fde1-b9ec-461e-a498-2303992d71c4/
API ID: 8aa9fde1-b9ec-461e-a498-2303992d71c4
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/scroll/batches/count
Page update time: 2026-12-03T02:49:22.750Z
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.276Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout Scroll Batches Count API

Call scroll/batches/count with chain\_id. The JSON response is a number at the root, representing the reported scroll batches count. This route has no query filters or pagination inputs; retrieve individual entries from the corresponding list endpoint.

## What You Can Build

- **Explorer counters**: Show the reported scroll batches count for one chain.
- **List context**: Display the count alongside the matching record list without treating it as the number of items on one page.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `$` | Root JSON number containing the reported scroll batches count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — Number of batches in the list. 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": "integer"
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/scroll/batches/count' \
  -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
0
```

## 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
### Is this a transaction or block count?
No. It counts Scroll batch records, not the transactions or blocks contained in those batches.

### Is the response an object with a count property?
No. Read the root JSON number directly, rather than looking for count or items.

### Can I filter this count by time or address?
This implementation accepts chain_id only. It exposes no time, address or pagination query inputs.

### Does a zero value mean the request failed?
A successful numeric zero is a count value. Handle HTTP or business errors separately, and check chain support when interpreting an unexpected zero.

### 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-number-of-batches-in-the-list/8aa9fde1-b9ec-461e-a498-2303992d71c4/

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