Home » Weeby API

Weeby API

An easy to use Rest API for Discord Bot Developers.
Currently Serving over 196905 Requests and 21 Registered Users!


Showcase

Getting Started

As easy as 1, 2, 3. You are ready to GET your first request with our API!

Step 1: Getting a Token.
  1. First, join our Discord Server and make an application with our bot. Make sure you read our requirements before applying.
  2. To make an application, run the command: w!apply [invite link] [server count] [reason]
  3. Wait for a response from the developers. Accepted applications will be DMed a token. DON'T SHOW ANYONE!
Step 2: Making your first Request.
  1. Now that you've been accepted and received the token, test the token with the curl command.
    Type this in your console:
    curl -X GET 'https://weebyapi.xyz/gif/zerotwo' -H 'Authorization: Bearer YOUR_TOKEN'
  2. If successful, you should be able to use our API in your Creation!
  3. You can check our examples or wrappers below! Or view our Documentation.

Authentication

In order to get a token, you will need to join our Discord Server and make an application request with the w!apply command, please see above for instructions.

When calling the API, you will need to provide a HTTP-Header with the name Authorization and the value Bearer YOUR_TOKEN where you need to replace 'YOUR_TOKEN' with the token sent by the bot.

You can pass the the token directly by adding a query string to the endpoint url ?token=YOUR_TOKEN

Examples

Live Examples of the endpoints can be found on Nate Bot. Invite the bot to try them out.

GIF Example: Discord.js (^12.5.3) and Superagent (^6.1.0)

          
              const { MessageEmbed } = require("discord.js");
              const { get } = require("superagent");
                          
              exports.run = async (bot, message, args) => {

                  let user = message.members.users.first();
                      if(!user) return message.channel.send("Please mention a user!");
          
                  const { body } = await get(`https://weebyapi.xyz/gif/pat`)
                  .set("Authorization", "Bearer YOUR_TOKEN");
                  
                  let patembed = new MessageEmbed()
                      .setTitle('**Pat 😇**')
                      .setDescription(`**${message.author.username}** patted **${message.mentions.users.first().username}!**`)
                      .setImage(body.formattedURL)
                      .setColor("#e889e0")
          
                  message.channel.send(patembed);

              }
          
      

Generator Example: Discord.js (^12.5.3) and Superagent (^6.1.0)

          
              const { MessageEmbed } = require("discord.js");
              const { get } = require("superagent");
                          
              exports.run = async (bot, message, args) => {

                  const { body } = await get(`https://weebyapi.xyz/generators/3000years`)
                  .query({ image: message.author.displayAvatarURL({ format: 'png', dynamic: true, size: 2048 }) })
                  .set("Authorization", "Bearer YOUR_TOKEN");
          
                const embed = new MessageEmbed()
                  .setTitle(`**3000 Years**`)
                  .attachFiles({ attachment: body, name: "3000years.png" })
                  .setImage("attachment://3000years.png")
                  .setColor(`#ed8a5c`);
          
                message.channel.send(embed);
          
              }
          
    

Other

Wrappers: Who is using this API?