---
title: "Get the latest batch number."
method: GET
path: "/{chain_id}/api/v2/main-page/arbitrum/batches/latest-number"
tags: ["arbitrum", "main-page"]
---

# Get the latest batch number.

`GET /{chain_id}/api/v2/main-page/arbitrum/batches/latest-number`

## Request

- Base URL: `https://api.blockscout.com`
- URL: `https://api.blockscout.com/{chain_id}/api/v2/main-page/arbitrum/batches/latest-number`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `apikey`
- TypeScript: <https://skmtc.dev/blockscout/apis/blockscout-pro-api/docs/:chain_id/api/v2/main-page/arbitrum/batches/latest-number/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the number of the most recent Arbitrum batch submitted to the Parent chain. Returns 0 if no batches exist.

## Path parameters

- `chain_id` string, required

## Response `200`

Latest Arbitrum batch number.

- 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.dev/blockscout/apis/blockscout-pro-api/revisions/59ac5466233b?raw)
