---
title: "Get recent 2.x block headers"
method: GET
path: "/v2/headers/{quantity}"
tags: ["Blocks"]
---

# Get recent 2.x block headers

`GET /v2/headers/{quantity}`

**Deprecated**: This endpoint is deprecated since Nakamoto.**
Stream (as a JSON array) up to `quantity` most recent anchored Stacks block headers.
The result is ordered from the current tip backwards.

## Path parameters

- `quantity` integer, required

## Parameters

- `./components/parameters/tip.yaml` — unresolved $ref

## Response `200`

Array of block headers

- BlockHeaders — unresolved $ref

## Other responses

- `400` — Bad request
- `404` — Not found
- `500` — Internal Server Error

## Changes

- **2025-07-09** `04a9a0b50aa3` — 1 info
  - endpoint added
- **2025-07-08** `488dd3b80020` — 1 breaking
  - api path removed without deprecation
- **2025-07-08** `170414634c90` — 1 info
  - endpoint added
- **2025-06-26** `2fc5956efe3d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api/changes/v2/headers/:quantity/get.md)

---

[API](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api.md) · [All operations](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacks-network/stacks-3-0-rpc-api/revisions/bfe6e0b30f62/schema)
