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

IPFS Block API

The Block API from IPFS — 4 operation(s) for block.

IPFS Block API is one of 40 APIs that IPFS publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Block. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a GitHub repository.

This API exposes 4 operations across 4 paths. It is described by OpenAPI 3.0.0, at version v0.

Requests are made against 3 base URLs: http://localhost:5001, http://127.0.0.1:5001, https://ipfs.infura.io:5001.

4 operations 4 paths 0 schemas 4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
v0
Base URL
http://localhost:5001
Resource Areas
1

Paths & Operations 4

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

Block 4
POST
/api/v0/block/get
Get a raw IPFS block.
block/get 1 param → 200
POST
/api/v0/block/put
Store input as an IPFS block.
block/put 6 params body → 200
POST
/api/v0/block/rm
Remove IPFS block(s) from the local datastore.
block/rm 3 params → 200
POST
/api/v0/block/stat
Print information of a raw IPFS block.
block/stat 1 param → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ipfs-block-api-openapi.yml Raw ↑

Other APIs IPFS publishes across the network.

IPFS HTTP Gateway API
IPFS Delegated Routing V1 HTTP API
IPFS Add API
IPFS Bitswap API
IPFS Bootstrap API
IPFS Cat API
IPFS Cid API
IPFS Commands API
IPFS Config API
IPFS Dag API
IPFS Dht API
IPFS Diag API