Skip to main content

dag_get

/api/v0/dag/get

Get a DAG node from IPFS.

Request

curl "https://ipfs.infura.io:5001/api/v0/dag/get?arg=<key>&output-codec=dag-json" \
-X POST \
-u "<YOUR-API-KEY>:<YOUR-API-KEY-SECRET>"

Request parameters

  • arg [Required]: The object to get.
  • output-codec [Optional]: Format the object will be decoded in. The default is dag-json.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.