# dag\_get

Get a DAG node from IPFS.

#### REQUEST <a href="#request" id="request"></a>

```bash
curl "https://ipfs.krypc.io:5001/api/v0/dag/get?arg=<key>&output-codec=dag-json" \
    -X POST \
    -u "<API_KEY>:<API_KEY_SECRET>"
```

**REQUEST PARAMS**[**​**](https://docs.infura.io/networks/ipfs/http-api-methods/dag_get#request-params)

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

#### RESPONSE[​](https://docs.infura.io/networks/ipfs/http-api-methods/dag_get#response) <a href="#response" id="response"></a>

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

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