Dashboard
Tutorials
Community
Support
Search…
Welcome to Infura docs
Getting started
Dashboard stats
Networks
Ethereum (execution layer)
ETH2 (consensus layer)
IPFS
How to
HTTP API methods
add
block_get
block_put
block_stat
cat
dag_get
dag_put
dag_resolve
get
object_data
object_get
object_put
object_stat
pin_add
pin_ls
pin_rm
pin_update
version
Filecoin
Polygon PoS
Palm
Optimism
Arbitrum
NEAR
Aurora
StarkNet
Features
Archive data
NFT SDK
Infura transactions (ITX)
Tutorials
Ethereum
Filecoin
NEAR
Layer 2 networks
Developer tools
LEARN
curl
JSON Web Token (JWT)
Web3 libraries
Powered By
GitBook
dag_get
/api/v0/dag/get
Get a dag node from IPFS.
REQUEST
1
POST http://ipfs.infura.io:5001/api/v0/dag/get?arg
=<
key
>&
output-codec
=
dag-json
Copied!
REQUEST PARAMS
arg
[string]: The object to get. Required: yes.
output-codec
[string]: Format the object will be decoded in. Default:
dag-json
. Required: no.
EXAMPLE
1
curl
-X POST
"http://ipfs.infura.io:5001/api/v0/dag/get?arg=<key>&output-codec=dag-json"
Copied!
RESPONSE
On success, the call to this endpoint will return with 200 and the following body:
1
This endpoint returns a `text/plain` response body.
Copied!
Previous
cat
Next
dag_put
Last modified
2mo ago
Copy link
Contents
/api/v0/dag/get
REQUEST
RESPONSE