Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man ipfs-api

/ipfs-api

PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
ipfs-api ipfs api / cid fetch api / ipfs gateway api / web3 storage fetch
synonym alias of ipfs-fetch — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/ipfs-api
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

IPFS API / CID fetch API / IPFS gateway API / Web3 storage fetch. Resolves an IPFS CID and optional path through public gateways, returning text, parsed JSON, or base64 with content type, size, and gateway provenance. 5 MB cap.

INPUTrequest schema
propertytypedescriptionreq?
cidstringIPFS CID, CIDv0 (Qm... base58, 46 chars) or CIDv1 (bafy... base32). Required.required
pathstringOptional sub-path inside the IPFS directory, e.g. '/index.html' or 'metadata.json'. Leading slash optional.optional
max_bytesnumberMaximum response size in bytes. Default 1000000 (1 MB). Hard-capped at 5000000 (5 MB).optional
outputstringHow to return the content. 'base64' (default — safe for binary), 'text' (UTF-8 decode), or 'json' (UTF-8 decode + JSON.parse). Returns 502 if 'json' is requested and the body doesn't parse.
enum: base64 · text · json
optional
OUTPUTresponse shape
fieldtypedescription
cidstring
gateway_usedstring
content_typestring
size_bytesstring
contentstring
sourcestring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/ipfs-api \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the ipfs-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-marketipfsapiipfs-api
methods
POST
cluster
edgemarket
price
$0.005 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
agent-card-resolveAgent card resolver / ERC-8004 Identity Registry lookup / Trustless Agents / agentId → owner + agentURI / A2A identity / agent.json fetch…$0.005
arbitrage-spreadCross-exchange arbitrage spread / max-min price / CEX price dispersion / spread % calculator.$0.005
basename-resolveBasename resolver / Coinbase Basenames / .base.eth lookup / Base name service / on-chain name resolution.$0.005
cid-fetchCID fetch API / IPFS content reader / decentralized file fetcher.$0.005
defi-yield-poolsDeFi yield pools / APY aggregator / yield-farming opportunities / DeFiLlama yields / cross-protocol APY ranking / stablecoin yields / LP…$0.005
flagged-tokensFlagged Solana tokens / risky token feed / DEX market-data risk screen.$0.005
hyperliquid-perpsHyperliquid perps market data / perpetual futures market lookup / crypto derivatives feed.$0.005
ipfsIPFS API / IPFS fetch / IPFS content retrieval / CID resolver.$0.005
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org