Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
/ animeme-api Public archive

An api that fetches anime memes from r/Animemes and r/Hentaimemes

Notifications You must be signed in to change notification settings

Arkaneel/animeme-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animeme API

images_-_2023-05-22T095212 359-removebg-preview

An api that fetches anime memes from r/Animemes and Hentai memes from r/Hentaimemes.

API

https://vast-puce-mite-fez.cyclic.app/

Health

DeepSource

Api Docs

API Docs

Endpoints

  • animeme : Fetches Anime Meme.
  • henmeme : Fetches Hentai Meme.

Example Response

{

	"title":"The Badonkas Slayer",

	"url":"https://i.redd.it/5uh2n3179n0b1.jpg"

}

Example NodeJS Usage

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();

Example Python Usage

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()

Lua Luvit Usage

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()

Hosting

We are proudly hosted on cyclic.sh

Made with ❤️ and NodeJS

Demo

Hosted Demo

Tech