duncans-api-wrapper

Simple Api Wrapper

Usage no npm install needed!

<script type="module">
  import duncansApiWrapper from 'https://cdn.skypack.dev/duncans-api-wrapper';
</script>

README

Information

Simple API Wrapper for https://apis.duncte123.me/

Installation

Npm:

npm i duncans-api-wrapper

Declaration

JavaScript:

const { DuncateApi } = require('duncans-api-wrapper');

const api = new DuncateApi();

TypeScript (es6):

import { DuncateApi } from "duncans-api-wrapper";

const api = new DuncateApi()

Usage

Instagram:

const search = await api.instagram(username)

Use:

| Usage | Result | | - | - | |search.user.username|Username of Instagram Account| |search.user.full_name|Full Name of Instagram Account| |search.user.is_private|Wether account is private or not| |search.user.is_verified|Wether account is verified or not| |search.user.biography|Biography of Instagram Account| |search.user.followers.count|Number of followers of Instagram Account| |search.user.following.count|Number of accounts user is following| |search.user.uploads.count|Number of posts of Instagram Account| |search.user.profile_pic_url|Profile picture of Instagram Account|

Random String

const search = await api.randomstring(number)

Use:

| Usage | Result | | - | - | |search.data|Random String|

Love

const search = await api.love(name, name)

Use:

| Usage | Result | | - | - | |search.data.names|Both Names| |search.data.score|Love Score| |search.data.score_int|Number of Love Score| |search.data.message|Love message|

Npm

const search = await api.npm(number)

Use:

| Usage | Result | | - | - | |search.data|An array of random meanings of "npm"|

Meme

const search = await api.meme()

Use:

| Usage | Result | | - | - | |search.data.title|Title Of Meme| |search.data.body|Body Of Meme| |search.data.url|Url Of Meme| |search.data.image|Image Url Of Meme|

Joke

const search = await api.joke()

Use:

| Usage | Result | | - | - | |search.data.title|Title Of Joke| |search.data.body|Body Of Joke| |search.data.url|Url Of Joke|

Youtube

const search = await api.youtube(YoutubeApiKey, ChannelId)

Use:

| Usage | Result | | - | - | |search.data.subs|Number Of Subscribers| |search.data.channel|Channel| |search.data.views|Number Of Views| |search.data.videos|Number Of Videos|

Llama

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.llama()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Llama|

Cat

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.cat()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Cat|

Duck

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.duck()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Duck|

Alpaca

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.alpaca()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Alpaca|

Seal

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.seal()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Seal|

Camel

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.camel()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Camel|

Dog

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.dog()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Dog|

Fox

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.fox()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Fox|

Lizard

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.lizard()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Lizard|

Bird

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.bird()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Bird|

Wolf

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.wolf()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Wolf|

Panda

IMAGE MIGHT NOT SHOW ALL DEPENDS ON THE API
const search = await api.panda()

Use:

| Usage | Result | | - | - | |search.data.file|Image of Panda|

Kpop

const search = await api.kpop(name)

or

const search = await api.kpop()

Use:

| Usage | Result | | - | - | |search.data.img|Image of Kpop Star| |search.data.band|Band of Kpop Star| |search.data.name|Name of Kpop Star|