🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

acb-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acb-api

a api that uses the animecharacterdatabase and access information from there

1.3.6
latest
npm
Version published
Weekly downloads
16
23.08%
Maintainers
1
Weekly downloads
 
Created
Source

ACB Information Api

This is a information fetcher for the anime website called animecharactersdatabase.com and this is made so its easier for people to get the information that they need.

Sample Code

const a = require('acb-api');
a.get_character_by_id(55).then(res => {
  console.log(res);
}); // returns data on character
a.get_character_by_search('kirito').then(res => {
  console.log(res);
}); // returns an array of characters with that name
a.get_anime_by_id(10002).then(res => {
  console.log(res);
}); // return data on anime
a.get_anime_by_search('sword art online').then(res => {
  console.log(res);
}); // returns an array of anime with that name
a.get_random_character().then(res => {
  console.log(res);
}); // returns data on a random character

Returns

get_character_by_id returns:
{
  "id": 55,
  "anime_id": 6,
  "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/5688-1445174767.jpg",
  "character_image": "http://ami.animecharactersdatabase.com/uploads/chars/thumbs/200/1-235056510.jpg",
  "origin": "Clannad",
  "gender": "Female",
  "name": "Kotomi Ichinose",
  "desc": "Kotomi Ichinose is a character from the visual novel Clannad."
}

get_character_by_search returns:
{
  [
    {
      "anime_id": 101471,
      "anime_name": "Yurikago yori Tenshi made",
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/4758-1426381234.jpg",
      "character_image": "http://ami.animecharactersdatabase.com/uploads/chars/thumbs/200/4758-975182425.jpg",

      "id": 33217,
      "gender": "Male",
      "name": "Hiro Kiritooshi",
      "desc": "Hiro Kiritooshi is a character from the eroge Yurikago yori Tenshi made."
    },
    {
      "anime_id": 477,
      "anime_name": "Nukenin ~ Hokaku, Soshite Choukyou e ~",
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/5688-539624452.jpg",
      "character_image": "http://ami.animecharactersdatabase.com/./images/nukeninhokaku/Kirito_thumb.jpg",

      "id": 3286,
      "gender": "Male",
      "name": "Kirito",
      "desc": "Kirito is a character from the eroge Nukenin ~ Hokaku, Soshite Choukyou e ~."
    },
    {
      "anime_id": 102399,
      "anime_name": "Sword Art Online",
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/6186-1304975494.jpg",
      "character_image": "http://ami.animecharactersdatabase.com/uploads/chars/thumbs/200/6186-2121647960.jpg",

      "id": 45455,
      "gender": "Male",
      "name": "Kirito",
      "desc": "Kirito is a character from the anime Sword Art Online."
    },...
  ]
}

get_anime_by_id returns:
{
  "anime_name": "Kamitama",
  "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/5688-2111247850.jpg",
  "anime_id": "2220",
  "characters": [
    {
      "id": 19498,
      "character_image": "http://ami.animecharactersdatabase.com/./images/2220/Cyamu_thumb.jpg",
      "gender": "Female",
      "name": "Cyamu",
      "desc": "Cyamu is a character from the eroge Kamitama."
    },
    {
      "id": 19499,
      "character_image": "http://ami.animecharactersdatabase.com/./images/2220/Setsuna_thumb.jpg",
      "gender": "Female",
      "name": "Setsuna",
      "desc": "Setsuna is a character from the eroge Kamitama."
    }
  ]
}

get_anime_by_search returns:
{
  [
    {
      "characters_url": "https://www.animecharactersdatabase.com/api_series_characters.php?anime_id=102399",
      "anime_id": 102399,
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/6186-1304975494.jpg",
      "anime_name": "Sword Art Online"
    },
    {
      "characters_url": "https://www.animecharactersdatabase.com/api_series_characters.php?anime_id=104917",
      "anime_id": 104917,
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/5688-822941656.png",
      "anime_name": "Sword Art Online (Series)"
    },
    {
      "characters_url": "https://www.animecharactersdatabase.com/api_series_characters.php?anime_id=104106",
      "anime_id": 104106,
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/5688-86245494.jpg",
      "anime_name": "Sword Art Online 2"
    },
    {
      "characters_url": "https://www.animecharactersdatabase.com/api_series_characters.php?anime_id=105821",
      "anime_id": 105821,
      "anime_image": "http://ami.animecharactersdatabase.com/productimages/u/29946-1282047024.jpg",
      "anime_name": "Sword Art Online Alternative: Gun Gale Online"
    },...
  ]
}

get_random_character returns:
{
  "id": 666,
  "anime_id": 90,
  "anime_image": "http://ami.animecharactersdatabase.com/productimages/90.jpg",
  "character_image": "http://ami.animecharactersdatabase.com/./images/maihime/Reito_thumb.jpg",
  "origin": "Mai-HiME - The Genealogical Tree of Fate",
  "gender": "Male",
  "name": "Reito Kanzaki",
  "desc": "Reito Kanzaki is a character from the visual novel Mai-HiME - The Genealogical Tree of Fate."
}

Keywords

api

FAQs

Package last updated on 09 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts