Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Hedera blocks API

The blocks API from Hedera — 2 operation(s) for blocks.

Hedera blocks API is one of 10 APIs that Hedera publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include blocks. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and rate-limit docs.

This API exposes 2 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.1.0, at version 0.156.0.

Requests are made against a single base URL, {scheme}://{network}.mirrornode.hedera.com.

2 operations 2 paths 8 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
0.156.0
Base URL
https://mainnet.mirrornode.hedera.com
License
Resource Areas
1

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

blocks 2
GET
/api/v1/blocks
List blocks
getBlocks 4 params → 200400
GET
/api/v1/blocks/{hashOrNumber}
Get block by hash or number
getBlock 1 param → 200400404

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are Block (10 properties), BlocksResponse (2 properties), TimestampRange (2 properties), Error (1 property). Each schema is shown below with its type and property counts.

Links
object
1 property
Block
object
10 properties
TimestampRange
object
A timestamp range an entity is valid for
2 properties
TimestampNullable
stringnull
A Unix timestamp in seconds.nanoseconds format
Error
object
1 property
Blocks
array
Timestamp
string
A Unix timestamp in seconds.nanoseconds format
BlocksResponse
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hedera-blocks-api-openapi.yml Raw ↑

Other APIs Hedera publishes across the network.

Hedera accounts API
Hedera airdrops API
Hedera balances API
Hedera contracts API
Hedera network API
Hedera schedules API
Hedera tokens API
Hedera topics API
Hedera transactions API