---
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

---

[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/87a7fe30e436/schema)
