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

The Dht API from IPFS — 6 operation(s) for dht.

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

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

This API exposes 6 operations across 6 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.

6 operations 6 paths 0 schemas 6 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 6

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

Dht 6
POST
/api/v0/dht/query
Find the closest Peer IDs to a given Peer ID by querying the DHT.
dht/query 2 params → 200
POST
/api/v0/dht/findpeerdeprecated
Find the multiaddresses associated with a Peer ID.
dht/findpeer 2 params → 200
POST
/api/v0/dht/findprovsdeprecated
Find peers that can provide a specific value, given a key.
dht/findprovs 3 params → 200
POST
/api/v0/dht/getdeprecated
Given a key, query the routing system for its best value.
dht/get 1 param → 200
POST
/api/v0/dht/providedeprecated
Announce to the network that you are providing given values.
dht/provide 3 params → 200
POST
/api/v0/dht/putdeprecated
Write a key/value pair to the routing system.
dht/put 1 param body → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ipfs-dht-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 Block API
IPFS Bootstrap API
IPFS Cat API
IPFS Cid API
IPFS Commands API
IPFS Config API
IPFS Dag API
IPFS Diag API