get
/api/v0/get
Download IPFS objects.
Request
- Syntax
- Example
curl "https://ipfs.infura.io:5001/api/v0/get?arg=<ipfs-path>&output=<value>&archive=false&compress=false&compression-level=-1" \
-X POST \
-u "<YOUR-API-KEY>:<YOUR-API-KEY-SECRET>"
curl "https://ipfs.infura.io:5001/api/v0/get?arg=QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy&archive=true" \
-X POST \
-u "PROJECT_ID:PROJECT_SECRET"
Request parameters
arg
[Required] - The IPFS object hash.output
[Optional] - The path where the output should be stored.archive
[Optional] - Output a TAR archive. The default isfalse
.compress
[_O_ptional] - Compress the output with GZIP compression. The default isfalse
.compression-level
[_O_ptional] - The level of compression (1-9). The default is-1
.
Response
On success, the call to this endpoint will return with 200 and the following body:
This endpoint returns a `text/plain` response body.