Base64

PATH: others/base64
METHOD: get
Required queries:
  1. encode - Required (Text to encode into base64)
  2. decode - Required (Decode base64 into text)
Status: 200 | Response type: json
Output:
{
text: "I'm losing everything."
}
Status: 200 | Response type: json
Output:
{
base64: "aW5zZXJ0IHN3ZWFyIHdvcmQ="
}
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/base64?encode=hello') //change ?encode to ?decode if you want to deocde
    .then(res => res.json())
    .then(json => {
      console.log(json)
    });
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/base64?encode=hello")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Binary

PATH: others/binary
METHOD: get
Required queries:
  1. encode - Required (Text to encode into binary)
  2. decode - Required (Decode binary into text)
Status: 200 | Response type: json
Output:
{
text: "I'm losing everything. "
}
Status: 200 | Response type: json
Output:
{
binary: "01110000011000010110100101101110"
}
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/binary?encode=hello')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/binary?encode=hello")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Bot token

PATH: others/bottoken
METHOD: get
Required queries:
  1. id - Optional (ID of discord bot)
Status: 200 | Response type: json
Output:
{
token: "FLKJSDAHKJHkhKJHKHjkhuiUHIH.UIYUHUIHIYRFghvbDFCGHJKHKHjhiydfs9ay834uh9rfhsd9"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/bottoken')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/bottoken")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Dictionary

PATH: others/dictionary
METHOD: get
Required queries:
  1. word - Required (Word to lookup)
Status: 200 | Response type: json
Output:
{
word: "random",
definition: "..."
}
Status: 404 | Response type: json
Output:
{
error: "No word found"
}
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const fetch = require('node-fetch')
fetch('https://some-random-api.ml/dictionary?word=random')
.then(res => res.json())
.then(json => {
  console.log(json)
});
import requests
def fetch():
    resp = requests.get("https://some-random-api.ml/dictionary?word=random")
    if 300 > resp.status_code >= 200:
        content = resp.json() 
    else:
        content = f"Recieved a bad status code of {resp.status_code}."
    print(content)
fetch()

Joke

PATH: others/joke
METHOD: get
Required queries:
    Status: 200 | Response type: json
    Output:
    {
    joke: "look at a mirror"
    }
    
    Status: 429 | Response type: json
    Output:
    {
    "error": "Too many requests, please try again later."
    }
    
    const fetch = require('node-fetch')
    fetch('https://some-random-api.ml/joke')
    .then(res => res.json())
    .then(json => {
      console.log(json)
    });
    
    import requests
    def fetch():
        resp = requests.get("https://some-random-api.ml/joke")
        if 300 > resp.status_code >= 200:
            content = resp.json() 
        else:
            content = f"Recieved a bad status code of {resp.status_code}."
        print(content)
    fetch()
    

    Lyrics

    PATH: others/lyrics
    METHOD: get
    Required queries:
    1. title - Required (Title of song to search)
    Status: 200 | Response type: json
    Output:
    {
    title: "Firestone (Ft. Conrad Sewell)",
    author: "Kygo",
    lyrics: "I'm a flame, you're a fire I'm the dark in need of light When we touch, you inspire Feel it changin' me tonight Take me up, take me higher There's a world not far from here We can dance in desire Or we can burn in love tonight Our hearts are like firestones And when they strike, we feel the love Sparks will fly, they ignite our bones And when they strike, we light up the world Our hearts are like firestones And when they strike, we feel the love Sparks will fly, they ignite our bones And when they strike, we light up the world We light up the world We light up the world Whoa, oh World Whoa, oh Firestone I'm from X You're from Y Perfect strangers in the night Here we are, come together To the world we'll testify Our hearts are like firestones And when they strike, we feel the love Sparks will fly, they ignite our bones And when they strike, we light up the world Our hearts are like firestones And when they strike, we feel the love Sparks will fly, they ignite our bones And when they strike, we light up the world We light up the world We light up the word Whoa, oh World Whoa, oh Firestone ",
    thumbnail: {
    genius: "https://images.genius.com/cb89269cd3f9f4bbf86c1563fc5cb1d3.300x300x1.jpg"
    },
    links: {
    genius: "https://genius.com/Kygo-firestone-lyrics"
    }
    }
    
    Status: 404 | Response type: json
    Output:
    {
    error: "Sorry I couldn't find that song's lyrics"
    }
    
    Status: 500 | Response type: json
    Output:
    {
    error: "Something went wrong with fetching the lyrics"
    }
    
    Status: 400 | Response type: json
    Output:
    {
    error: "missing x query"
    }
    
    Status: 429 | Response type: json
    Output:
    {
    "error": "Too many requests, please try again later."
    }
    
    const fetch = require('node-fetch')
    fetch('https://some-random-api.ml/lyrics?title=firestone')
    .then(res => res.json())
    .then(json => {
      console.log(json)
    });
    
    import requests
    def fetch():
        resp = requests.get("https://some-random-api.ml/lyrics?title=firestone")
        if 300 > resp.status_code >= 200:
            content = resp.json() 
        else:
            content = f"Recieved a bad status code of {resp.status_code}."
        print(content)
    fetch()