# Exclude Header

We know Discord's API responses can sometimes be quite extensive. To simplify your results, our API includes an `exclude` parameter, allowing you to leave out any data you don't need for a cleaner and more concise response.

{% hint style="info" %}

## Not all endpoints support this feature. Refer to the documentation page of each endpoint to check its availability!

{% endhint %}

## How to use:

1. Header name: `exclude`
2. Header value: *object names to exclude from the result, separated by a comma*

* This basically tells the function to forget about that object and all of its nested objects

<details>

<summary>BDFD Example</summary>

{% code lineNumbers="true" fullWidth="false" %}

```bash
$httpAddHeader[exclude;that]
 $httpGet[https://someExampleURL.idk]
$jsonParse[
 {
   "objects": {
     "that": {
       "are": ""
     },
     "separated":"",
     "by": "",
     "commas": ""
   }
 }
]

   Result ⤵️ 

 {
   "objects": {
     "separated":"",
     "by": "",
     "commas": ""
   }
 }
```

{% endcode %}

</details>

<details>

<summary>Discord.js Example</summary>

<pre class="language-javascript" data-line-numbers><code class="lang-javascript">{
'headers': {
<strong>'exclude': 'names,separated,by,commas' 
</strong><strong>    }
</strong>}
</code></pre>

</details>
