Download icon

Download

Download a file from IPFS

Download as Text

AI-generated

Summary

Downloads the resource at the given IPFS CID and path through the selected gateway, then returns a nonempty response body as text in a JSON field named content.

Inputs

  • IPFS Gateway — Gateway URL template used for the request. The node replaces <<cid>> with the supplied CID. Defaults to Web3 Storage (https://<<cid>>.ipfs.w3s.link).
  • CID (required) — CID of the IPFS resource to download.
  • Path — Path appended to the gateway URL for the request.
  • Request Options — Optional batching, SSL certificate validation, proxy, and response-header timeout settings for the request.

Output shape

A single item with json.content containing the response body as a string, when the body is nonempty; otherwise, no items.

The node sends a GET request. It converts the response body to a string and does not parse it as JSON.

Links

Discussion