Encoding
Parse IPFS CID API
Parses an IPFS CIDv0 (Qm… base58btc) or CIDv1 (multibase base58btc/base32) into version, multibase, codec, multihash algorithm, and digest hex. Answers 'Is this a CIDv0 or CIDv1?', 'What codec and hash does this IPFS CID encode?'
Price$0.02per request
MethodPOST
Route/v1/encoding/cid-parse
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
cidipfscidv0cidv1multihashmultibaseparseencoding
API URL
Integration docshttps://x402.hexl.dev/v1/encoding/cid-parseExample request
{
"value": "QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn"
}Example response
{
"version": 0,
"multibase": "implicit-base58btc",
"codecCode": 112,
"codec": "dag-pb",
"hashCode": 18,
"hashAlgorithm": "sha2-256",
"digestLength": 32,
"digestHex": "59948439065f29619ef41280cbb932be52c56d99c5966b65e0111239f098bbef",
"interpretation": "CIDv0 (dag-pb / sha2-256), 32-byte digest."
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"examples": [
"QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}