> For the complete documentation index, see [llms.txt](/llms.txt).

# `dag_get`

## `/api/v0/dag/get`[​](#apiv0dagget "Direct link to apiv0dagget")

Get a DAG node from IPFS.

### Request[​](#request "Direct link to Request")

- Syntax
- Example

```
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>"

```

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

```

#### Request parameters[​](#request-parameters "Direct link to Request parameters")

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

### Response[​](#response "Direct link to Response")

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

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

```
