---
title: "Get cross-chain messages count."
method: GET
path: "/{chain_id}/api/v2/arbitrum/messages/{direction}/count"
tags: ["arbitrum"]
---

# Get cross-chain messages count.

`GET /{chain_id}/api/v2/arbitrum/messages/{direction}/count`

Retrieves the total count of Arbitrum cross-chain messages for the specified direction.

## Path parameters

- `direction` 'from-rollup' | 'to-rollup', required
- `chain_id` string, required

## Response `200`

Total count of cross-chain messages for the specified direction.

- integer

## Other responses

- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/blockscout/apis/blockscout-pro-api.md) · [All operations](https://skmtc.dev/blockscout/apis/blockscout-pro-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockscout/blockscout-pro-api/revisions/59ac5466233b/schema)
