1.0.3 • Published 2 months ago

anime-gifs-api v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Anime-Images-Api Wrapper

Deprecation notice

This package has been deprecated because the API this wrapper was for has been decommissioned.

This is a wrapper for the anime images api hosted on https://anime-api.hisoka17.repl.co/

Making a request is as simple as

const { getAnimeGif, nsfwAnimeGif } = require('anime-gifs-api')

const { url: sfwGifUrl } = await getAnimeGif("Hug") // You will get autocompletion here
const { url: nsfwGifUrl } = await nsfwAnimeGif("Boobs") // You will get autocompletion here

if (!sfwGifUrl || !nsfwGifUrl) {
  // Possibly an error within the api
  // Should handle the error here.
  // This check is for demonstration purposes only,
  // you should not handle a missing url like this.
}

console.log(sfwGifUrl, nsfwGifUrl) // Should log a valid gif url

Functions

getAnimeGif(gifType: SFWGifType)

returns Promise<AnimeApiResponse>

nsfwAnimeGif(gifType: NSFWGifType)

returns Promise<AnimeApiResponse>

Types

AnimeApiResponse

interface AnimeApiResponse {
  url: string | null
}

GifType

type SFWGifType = "Hug" | "Kiss" | "Slap" | "Wink" | "Pat" | "Cuddle" | "Waifu"
type NSFWGifType = "Hentai" | "Boobs" | "Lesbian"

List of available Endpoints

NameSFW
Hug
Kiss
Slap
Wink
Pat
Kill
Cuddle
Waifu
Hentai
Boobs
Lesbian

❓I have no idea what can come out from this endpoint, so be aware. It is listed under the sfw part of the api though.

Latest changes

02/03/2023

  • Added NSFW endpoints, you can see them above ☝️
  • Separated the endpoints in two functions getAnimeGif() nsfwAnimeGif()
1.0.3

2 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago