
IPNI (InterPlanetary Network Indexer) is a content routing system for IPFS and Filecoin that keeps an index of which providers hold which CIDs. Providers push signed advertisements to indexers such as cid.contact, and you find providers with one HTTP request instead of a DHT walk.
TL;DR:
GET /cid/{cid} or the Delegated Routing V1 path and get provider records back: peer ID, addresses and the retrieval protocol.IPFS finds content in two steps: it learns who has a CID, then it fetches the blocks from them. IPNI handles the first step, content routing, from a prebuilt index instead of the peer lookup in how IPFS finds and retrieves files through the DHT and Bitswap.
The IPFS docs call it a routing and discovery system "outside and independent of" the Kademlia DHT, with three actors. Provider nodes advertise what they hold, IPNI nodes ingest those advertisements and answer queries, and your client looks up a CID and then fetches it from a provider.
The design came out of Filecoin, which stores so much data that clients cannot retrieve it efficiently without an index, as the spec's motivation section puts it. The spec adds that discovery on IPFS was bound to DHT lookup performance, which varies a lot from node to node. Our guide to how IPFS and Filecoin work together covers that side.
An index provider is any node that publishes its content list to IPNI, and the spec splits it into two roles that often share one machine. The provider serves the data, the publisher serves the advertisements, and each is known by a libp2p peer ID of the kind our guide to multiaddrs and peer IDs explains.
Filecoin storage providers publish through Lotus or Boost, while an IPFS deployment uses the index-provider sidecar that the IPFS docs list as its write path. Every advertisement also carries a metadata field, which tells your client which protocol to use for the fetch. The spec's codes for Bitswap (0x0900), Filecoin Graphsync (0x0910) and HTTP trustless gateways (0x0920) come from the multicodec table in our guide to multiformats.
An advertisement is an IPLD node signed with the provider's key, built around the fields PreviousID, Provider, Addresses, Entries, ContextID, Metadata and IsRm. Entries links to the advertised multihashes, stored either as a linked list of chunks or as a HAMT. A chunk should stay under 4 MB and a list under 400 chunks, so one advertisement holds about 40 million multihashes.
Each advertisement points to the one before it through PreviousID, so the chain records every change the provider ever made. An advertisement with IsRm set removes everything filed under its ContextID, and reusing a context ID with new metadata updates those records. Nothing in the chain is ever edited, because every change is a new link on top.
When the chain changes, the publisher sends an announce message over GossipSub on the topic /indexer/ingest/mainnet, or as an HTTP PUT to an indexer's /announce endpoint. The indexer then reads the head at /ipni/v1/ad/head and walks back until it meets an advertisement it already holds. Because advertisements are immutable, it only processes the part of the chain it hasn't seen.

An indexer also syncs on its own when a provider has sent no update for 24 hours, the default in the IPFS docs. The spec's example expiry policy stops returning a provider's records once it cannot be dialed for 2 days.
To see a real chain, we asked cid.contact about one provider on November 4, 2026, and walked its chain with the Python standard library. Each advertisement is a dag-json block, so hashing its bytes must give you back its CID:
import base64, hashlib, json, urllib.parse, urllib.request
INDEXER = "https://cid.contact"
PROVIDER = "12D3KooWCbrkXiher2XZRytjBgHhQ9uU6yFesfGhw7NATLN66UiF"
def get(url):
with urllib.request.urlopen(url, timeout=30) as r:
return r.read()
def digest_of(cid): # CIDv1, base32 ("b" prefix), sha2-256
raw = base64.b32decode(cid[1:].upper() + "=" * (-len(cid[1:]) % 8))
return raw[-32:]
info = json.loads(get(f"{INDEXER}/providers/{PROVIDER}"))
print("indexer's last ad:", info["LastAdvertisement"]["/"], info["LastAdvertisementTime"])
parts = info["Publisher"]["Addrs"][0].split("/")
host, path = parts[2], urllib.parse.unquote(parts[parts.index("http-path") + 1])
base = f"https://{host}{path}/ipni/v1/ad/"
cid = json.loads(get(base + "head"))["head"]["/"]
for step in range(3):
block = get(base + cid)
ok = hashlib.sha256(block).digest() == digest_of(cid)
ad = json.loads(block)
print(f"ad {step}: {cid[:20]}... hash ok={ok} IsRm={ad['IsRm']} "
f"Entries={ad['Entries']['/'][:16]}... Metadata={ad['Metadata']['/']['bytes']}")
cid = ad["PreviousID"]["/"]
print("next PreviousID:", cid[:20] + "...")
# Output (run here, November 4, 2026):
# indexer's last ad: baguqeerakbxubkve6mh3thapsi5cb72staavasihxbz62pv6sbr7ifrsqyva 2026-11-03T18:29:52Z
# ad 0: baguqeerakbxubkve6mh... hash ok=True IsRm=False Entries=bafyreigwz3faslt... Metadata=oBIA
# ad 1: baguqeerafhmfevjzzvu... hash ok=True IsRm=False Entries=bafyreicxypbkgvz... Metadata=oBIA
# ad 2: baguqeerawy4rcf5hy6l... hash ok=True IsRm=False Entries=bafyreieelkuw3xz... Metadata=oBIA
# next PreviousID: baguqeeravf3nulqxteo...The head matched the indexer's last advertisement and every block hashed to its own CID, so you can verify a chain no matter which host served it.
cid.contact is a public IPNI indexer built for IPFS and Filecoin, and it answers GET /cid/{cid} and GET /multihash/{multihash} with provider records. The lookup ignores the CID's codec and uses only the multihash, so a dag-pb CID and a raw CID with the same digest return the same providers. Here is a real query with the example CID from the IPFS docs, plus a CID nobody has advertised:
$ curl -s https://cid.contact/cid/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
{
"MultihashResults": [
{
"Multihash": "EiDDxHM+yK/9Bs+en/UP/GvNLshaYXAAS7cJZpwx3pQ5Gg==",
"ProviderResults": [
{
"ContextID": "AQFVkSAiABkjEWc1ThMO3poWUFWziYqTZDH5dqUgCJj5vRQyTqk1GQ==",
"Metadata": "oBIA",
"Provider": {
"ID": "12D3KooWCbrkXiher2XZRytjBgHhQ9uU6yFesfGhw7NATLN66UiF",
"Addrs": ["/dns/mainnet-pdp.infrafolio.com/tcp/443/https"]
}
},
... 43 more records from 17 distinct providers
]
}
]
}
$ curl -s -o /dev/null -w '%{http_code}\n' https://cid.contact/cid/bafkreiapiis22g2hnimdhtrvrztl63hz3peswhjkxfiuwr3ggiafhk27iu
404
# Run here on November 4, 2026. The first answer came back in 0.8 s;
# its JSON is reformatted and trimmed to the first record.Of the 44 records, 35 had metadata starting with 0x0920 (HTTP trustless gateway) and 9 with 0x0900 (Bitswap). oBIA is base64 for the bytes a0 12 00, and a0 12 is the varint 0x0920. We computed that second CID from the SHA-256 of a unique sentence, and the 404 is the spec's answer when no provider records exist.
The same index speaks the Delegated Routing V1 API too, and /routing/v1/providers/{cid} returned the same 17 providers in the shared PeerSchema format. If you prefer a CLI, the ipni-cli README shows this lookup as ipni find -i https://cid.contact --cid <cid> (quoted from the README, not run here).
Both systems map content to providers, but the Kademlia DHT behind IPFS spreads records across peers while IPNI keeps them in a few large indexers.
| Amino DHT | IPNI | |
|---|---|---|
| Where records live | On the 20 peers closest to the key | In indexer nodes such as cid.contact |
| How a provider publishes | One provider record per CID | A signed advertisement appended to its chain |
| Keeping records alive | Kubo republishes every 22 hours; records last 48 hours | Announce once; the indexer syncs from the chain |
| Lookup | Several hops between peers | One HTTP request |
| Best fit | New and popular content shared peer to peer | Very large sets of rarely requested CIDs |
The IPFS docs say that keeping DHT announcements alive is onerous for some publishers, even after Kubo's Provide Sweep made reproviding cheaper. You can see that cost in our explainer on why provider records expire and get renewed. The docs also describe a common mix: announce new content to the DHT for caching, and rely on IPNI for long-tail discovery.
The trade-off is that the DHT has no operator, while IPNI works only as long as someone runs the indexers. In return, you can opt into or out of an indexer without touching your DHT announcements, and the reverse holds too.
The IPNI and Compass team built and operates the public indexing infrastructure, according to an IPFS blog post from October 14, 2026. The post names them as ongoing stewards, thanks Shipyard for its years of running these services, and says the project will keep operating "routing and indexing services like IPNI". It also expects a more federated model with several independent operators, and we cover the wider handover in who runs the public IPFS services now.
You rarely need to call IPNI by hand, because Kubo defaults to Routing.Type auto. That mode queries the Amino DHT plus the HTTP routers in Routing.DelegatedRouters, a list that defaults to auto and is filled from Kubo's AutoConf file. On November 4, 2026, that file listed https://cid.contact as an IPNI router for /routing/v1/providers, with an empty write list. So your Kubo node reads from IPNI by default, but publishing to it still takes the index-provider sidecar.
Light clients use delegated routing instead, and the same AutoConf file lists delegated-ipfs.dev with both the Amino DHT and IPNI as its systems. When we asked it about the example CID above, it returned 50 records, including all 17 cid.contact providers. When you troubleshoot, IPFS Check labels each provider record with its source, IPNI or Amino DHT, a step in our gateway diagnostic order.
Content you pin with AIOZ Pin "becomes available on the public IPFS network", our gateway docs say, so anyone running a node can fetch it. Our docs don't mention IPNI or say whether pinned CIDs are advertised to an indexer. You can check any CID you pinned with the lookup above. A 200 lists the providers that advertised it to cid.contact, while a 404 means no provider advertised it there and clients rely on the DHT instead.
Next step: read how AIOZ Pin content reaches the public IPFS network in our docs.
Is cid.contact the same as IPNI?
No. IPNI is the set of protocols, and cid.contact is a public indexer that runs them for IPFS and Filecoin.
Does IPNI replace the IPFS DHT?
No. It runs alongside the Amino DHT, Kubo's default routing queries both, and you can switch either one off without affecting the other.
How do I check whether a CID is in IPNI?
Request https://cid.contact/cid/ followed by your CID. A 200 lists provider records, and a 404 means no provider has advertised that multihash.
Can a Kubo node announce its content to IPNI?
Not by default. Kubo reads from cid.contact through its HTTP routers, and publishing needs the index-provider sidecar that the IPFS docs describe.

An ENS IPFS contenthash points your .eth name at a site on IPFS. See the byte format, a real encoding, ipfs vs ipns records, gas used, and common mistakes.

ERC-721 metadata JSON explained: the three fields EIP-721 defines, OpenSea attributes and animation_url, ipfs:// image links, and folder CIDs for collections.

Merkle DAG vs Merkle tree explained: a tree gives each node one parent and short proofs, while the DAG IPFS uses shares blocks, carries data and links by CID.

IPNI is the IPFS network indexer behind cid.contact. See how index providers publish signed advertisement chains and how one HTTP query finds providers.

On-chain vs off-chain NFT metadata: what the contract stores, what lives on IPFS or a web server, what each costs in gas, and how to check any token yourself.

A Kademlia DHT finds peers by XOR distance. See how k-buckets, k = 20 and iterative lookups let IPFS locate who holds a CID, and how to watch it on Kubo.