An api that fetches anime memes from r/Animemes and Hentai memes from r/Hentaimemes.
- animeme : Fetches Anime Meme.
- henmeme : Fetches Hentai Meme.
{
"title":"The Badonkas Slayer",
"url":"https://i.redd.it/5uh2n3179n0b1.jpg"
}
const axios = require('axios');
async function fetchRandomMeme() {
try {
const response = await axios.get('https://vast-puce-mite-fez.cyclic.app/animeme');
const memeUrl = response.data.url;
console.log('Random Meme:', memeUrl);
} catch (error) {
console.error('Error fetching meme:', error.message);
}
}
fetchRandomMeme();
import requests
def fetch_random_meme():
try:
response = requests.get('https://vast-puce-mite-fez.cyclic.app/animeme')
response.raise_for_status()
meme_data = response.json()
meme_url = meme_data['url']
print('Random Meme:', meme_url)
except requests.exceptions.RequestException as error:
print('Error fetching meme:', str(error))
fetch_random_meme()
local http = require('http')
local json = require('json')
local function fetch_random_meme()
http.get('https://vast-puce-mite-fez.cyclic.app/animeme', function(res)
local data = ''
res:on('data', function(chunk)
data = data .. chunk
end)
res:on('end', function()
local meme_data = json.parse(data)
local meme_url = meme_data.url
print('Random Meme:', meme_url)
end)
end):on('error', function(err)
print('Error fetching meme:', err)
end)
end
fetch_random_meme()
We are proudly hosted on cyclic.sh
Made with ❤️ and NodeJS