# Introduction

## BDFDData API

This Api is built to allow BDFD users to gain easier access to Discords Official API by bypassing BDFD's built-in DAPI Block! **We Are NOT affiliated with** [**Bot Designer For Discord (BDFD)**](https://botdesignerdiscord.com/)

<details>

<summary>BDFD Eval Function [DAPI vs BDFDDATA API]</summary>

<img src="https://399872290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUkkHLTe8sdZ6L5exg9f2%2Fuploads%2FgT1RjSsVGeeabj8sPcrB%2Fimage.png?alt=media&#x26;token=350403d6-2f63-4325-a046-ccf61cf1c444" alt="" data-size="original">&#x20;

![](https://399872290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUkkHLTe8sdZ6L5exg9f2%2Fuploads%2FlCDSAqoOEC3yZHH2vgoz%2Fimage.png?alt=media\&token=4599b903-5e93-47b0-a360-fa7d03b8ac88)

</details>

{% hint style="danger" %}
**Some endpoints require a Bot Token to be passed via a header.** \
\
\&#xNAN;***It is extremely recommended you keep your Bot Token safe! We are not responsible for your actions!***
{% endhint %}

{% hint style="info" %}
We require API Keys! Grab yours in our [Support Server](https://dsc.gg/ddapi)!
{% endhint %}

{% hint style="info" %}
Data API version required. Must replace `<version>` with either **release** or **beta**.
{% endhint %}

### Using Our API (Discord.js / axios)

```javascript
const axios = require('axios')
(async () => {
return await axios.get('https://bdfddata.rickyjs.xyz/<version>/user', {
headers: {
'user-id': 'ID OF THE USER TO FETCH'
'apikey': <Your-API-Key>
}
}).then(res=>JSON.stringify(res.data, null, 2))
})()

//Output *should* be similar to the image provided in "BDFD Eval Function"
```

### Using Our API (BDFD)

<pre class="language-bash"><code class="lang-bash">$httpAddHeader[apikey;&#x3C;Your-API-Key>]
$httpAddHeader[user-id;ID OF THE USER TO FETCH]
$httpGet[https://bdfddata.rickyjs.xyz/&#x3C;version>/user]
<strong>$jsonSet[details;$httpResult]
</strong>$jsonParse[$json[details]]

# Output *should* be similar to the image provided in "BDFD Eval Function"
</code></pre>

### Understanding What You're Sending

Discord will require certain parameters to correspond with certain requests. Our API will enforce this.\
All header information is listed with the corresponding endpoints in their own pages.\
You will notice some endpoints require a header and others don't.

### Need Further Assistance?

All questions, concerns, suggestions, and any other feedback can be discussed with our Support Team!

{% hint style="success" %}
**This API is owned and maintained by @ricky.js (formally Rickყ#2006) in the Support Server**
{% endhint %}

{% embed url="<https://dsc.gg/ddapi>" fullWidth="false" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dadocs.rickyjs.xyz/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
