IPFS Cid API

The Cid API from IPFS — 5 operation(s) for cid.

Operations 5

POST /api/v0/cid/base32 Cid/base32 #
POST /api/v0/cid/bases Cid/bases #
POST /api/v0/cid/codecs Cid/codecs #
POST /api/v0/cid/format Cid/format #
POST /api/v0/cid/hashes Cid/hashes #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ipfs-cid-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ipfs-cid-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: IPFS RPC Cid API
  version: v0
  description: When a Kubo IPFS node is running as a daemon, it exposes an HTTP RPC API that allows you to control the node and run the same commands you can from the command line.
  x-providerName: IPFS
  x-logo:
    url: https://raw.githubusercontent.com/ipfs/ipfs-docs/55fe8bc6a53ba3b9023951fb4b432efbbc81fba5/docs/.vuepress/public/images/ipfs-logo.svg
servers:
- description: Local IPFS node
  url: http://localhost:5001
- description: Local IPFS node
  url: http://127.0.0.1:5001
- description: Infura hosted IPFS node
  url: https://ipfs.infura.io:5001
tags:
- name: Cid
paths:
  /api/v0/cid/base32:
    post:
      operationId: cid/base32
      description: Convert CIDs to Base32 CID version 1.
      externalDocs:
        url: https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-base32
      parameters:
      - name: arg
        in: query
        description: CIDs to convert.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
                CidStr: <string>
                ErrorMsg: <string>
                Formatted: <string>
      tags:
      - Cid
      summary: Cid/base32
      x-summary-source: derived
  /api/v0/cid/bases:
    post:
      operationId: cid/bases
      description: List available multibase encodings.
      externalDocs:
        url: https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-bases
      parameters:
      - name: prefix
        in: query
        description: also include the single letter prefixes in addition to the code.
        schema:
          type: boolean
      - name: numeric
        in: query
        description: also include numeric codes.
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
              - Code: <int>
                Name: <string>
      tags:
      - Cid
      summary: Cid/bases
      x-summary-source: derived
  /api/v0/cid/codecs:
    post:
      operationId: cid/codecs
      description: List available CID multicodecs.
      externalDocs:
        url: https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-codecs
      parameters:
      - name: numeric
        in: query
        description: also include numeric codes.
        schema:
          type: boolean
      - name: supported
        in: query
        description: list only codecs supported by go-ipfs commands.
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
              - Code: <int>
                Name: <string>
      tags:
      - Cid
      summary: Cid/codecs
      x-summary-source: derived
  /api/v0/cid/format:
    post:
      operationId: cid/format
      description: Format and convert a CID in various useful ways.
      externalDocs:
        url: https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-format
      parameters:
      - name: arg
        in: query
        description: CIDs to format.
        required: true
        schema:
          type: string
      - name: f
        in: query
        description: Printf style format string.
        schema:
          type: string
          default: '%s'
      - name: v
        in: query
        description: CID version to convert to.
        schema:
          type: string
      - name: mc
        in: query
        description: CID multicodec to convert to.
        schema:
          type: string
      - name: b
        in: query
        description: Multibase to display CID in.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
                CidStr: <string>
                ErrorMsg: <string>
                Formatted: <string>
      tags:
      - Cid
      summary: Cid/format
      x-summary-source: derived
  /api/v0/cid/hashes:
    post:
      operationId: cid/hashes
      description: List available multihashes.
      externalDocs:
        url: https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-hashes
      parameters:
      - name: numeric
        in: query
        description: also include numeric codes.
        schema:
          type: boolean
      - name: supported
        in: query
        description: list only codecs supported by go-ipfs commands.
        schema:
          type: boolean
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
              - Code: <int>
                Name: <string>
      tags:
      - Cid
      summary: Cid/hashes
      x-summary-source: derived
externalDocs:
  url: https://docs.ipfs.tech/reference/kubo/rpc/