{
text: "I'm losing everything."
}
Status: 200 | Response type: json{
base64: "aW5zZXJ0IHN3ZWFyIHdvcmQ="
}
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"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()
{
text: "I'm losing everything. "
}
Status: 200 | Response type: json{
binary: "01110000011000010110100101101110"
}
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"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()
{
token: "FLKJSDAHKJHkhKJHKHjkhuiUHIH.UIYUHUIHIYRFghvbDFCGHJKHKHjhiydfs9ay834uh9rfhsd9"
}
Status: 429 | Response type: json{
"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()
{
word: "random",
definition: "..."
}
Status: 404 | Response type: json{
error: "No word found"
}
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"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: "look at a mirror"
}
Status: 429 | Response type: json{
"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()
{
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{
error: "Sorry I couldn't find that song's lyrics"
}
Status: 500 | Response type: json{
error: "Something went wrong with fetching the lyrics"
}
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"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()