/getAll

Retrieve all variables in your database

Endpoint Headers:

  • apikey - Your Api Auth Key [String] (Required)

Endpoint URL Parameters

  • query - Retrieves entries based off if the provided string is within their names [String] (Optional)

Examples:

circle-info

Data API version required. Must replace <version> with either release or beta.

chevron-rightBot Designer for Discordhashtag

Example usage of /db/getAll endpoint using BDFD

$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/db/getAll]


$httpResult OR $httpResult[entries]

OR

$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpGet[https://bdfddata.rickyjs.xyz/<version>/db/getAll?query=<SEARCH-QUERY>]

$httpResult OR $httpResult[entries]
chevron-rightDiscord.jshashtag

Example usage of /db/getAll endpoint using Discord.js

const axios = require('axios');
(async () => {
return await axios.get('https://bdfddata.rickyjs.xyz/<version>/db/getAll', {
headers: {
"apikey": "<YOUR-API-KEY>"
}
}).then(res=>res.data)
})()

OR

const axios = require('axios');
(async () => {
return await axios.get('https://bdfddata.rickyjs.xyz/<version>/db/getAll?query=<SEARCH-QUERY>', {
headers: {
"apikey": "<YOUR-API-KEY>"
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

chevron-rightCode 200 (Query Not Used)hashtag

API succeeded and details were fetched.

{
 status: 200,
 entries: //returns everything in your database
 }   
chevron-rightCode 200 (Query Used)hashtag

API succeeded and details were fetched.

chevron-rightCode 400hashtag

An error occurred that stopped execution.

chevron-rightCode 424hashtag

Origin Database Unavailable

Last updated