UNPKG

discard-api

Version:

Universal SDK for Discard API - Supporting CJS, ESM, TypeScript, and Browser

1 lines 26.7 kB
var DiscardAPI=class{constructor(e){if(!e.apiKey)throw new Error("API key is required");this.apiKey=e.apiKey,this.baseURL=e.baseURL||"https://discardapi.dpdns.org",this.fullResponse=e.fullResponse??!1,this.timeout=e.timeout||3e4}buildURL(e,t){const r=new URL(`${this.baseURL}${e}`),s={...t,apikey:this.apiKey};return Object.entries(s).forEach(([e,t])=>{null!=t&&r.searchParams.append(e,String(t))}),r.toString()}async request(e,t="GET",r,s,i="query"){let a;const u=new AbortController,n=setTimeout(()=>u.abort(),this.timeout);try{const n={method:t,signal:u.signal,headers:{}};if("GET"===t)a=this.buildURL(e,r||{});else if(a="query"===i?this.buildURL(e,r||{}):`${this.baseURL}${e}`,s)if(s instanceof FormData)"body"===i&&s.append("apikey",this.apiKey),n.body=s;else{n.headers={"Content-Type":"application/json"};const e="body"===i?{...s,apikey:this.apiKey}:s;n.body=JSON.stringify(e)}const o=await fetch(a,n);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);const h=o.headers.get("content-type");if(h?.includes("application/json")){const e=await o.json();return this.fullResponse?e:e.result??e}return o.text()}catch(e){if(e instanceof Error&&"AbortError"===e.name)throw new Error("Request timeout");throw e}finally{clearTimeout(n)}}quranSurah(e){return this.request("/api/dl/surah","GET",e)}hadith(e){return this.request("/api/get/hadith","GET",e)}prayerTiming(e){return this.request("/api/prayer/timing","GET",e)}quran(e){return this.request("/api/islamic/quran","GET",e)}islamicHadit(e){return this.request("/api/islamic/hadit","GET",e)}tahlil(){return this.request("/api/islamic/tahlil","GET")}wirid(){return this.request("/api/islamic/wirid","GET")}dua(){return this.request("/api/islamic/dua","GET")}ayatkursi(){return this.request("/api/islamic/ayatkursi","GET")}searchBooks(){return this.request("/api/get/books","GET")}getBooks(e){return this.request("/api/get/books","GET",e)}geminiPro(e){return this.request("/api/gemini/pro","GET",e)}geminiFlash(e){return this.request("/api/gemini/flash","GET",e)}googleGemma(e){return this.request("/api/gemini/gemma","GET",e)}geminiEmbed(e){return this.request("/api/gemini/embed","GET",e)}llamaAI(e){return this.request("/api/ai/llama","GET",e)}mythomax(e){return this.request("/api/ai/mythomax","GET",e)}mistralAI(e){return this.request("/api/ai/mistral","GET",e)}qwenCoder(e){return this.request("/api/ai/qwen","GET",e)}kimiAI(e){return this.request("/api/ai/kimi","GET",e)}gemmaAI(e){return this.request("/api/ai/gemma","GET",e)}fluxSchnell(e){return this.request("/api/imagen/schnell","GET",e)}fluxDev(e){return this.request("/api/imagen/flux","GET",e)}stableDiffusion(e){return this.request("/api/imagen/diffusion","GET",e)}blackForest(e){return this.request("/api/imagen/sdxlb","GET",e)}dallE(e){return this.request("/api/imagen/dalle","GET",e)}animeNom(){return this.request("/api/anime/nom","GET")}animePoke(){return this.request("/api/anime/poke","GET")}animeCry(){return this.request("/api/anime/cry","GET")}animeKiss(){return this.request("/api/anime/kiss","GET")}animePat(){return this.request("/api/anime/pat","GET")}animeHug(){return this.request("/api/anime/hug","GET")}animeWink(){return this.request("/api/anime/wink","GET")}animeFace(){return this.request("/api/anime/face","GET")}searchAndroid1(e){return this.request("/api/apk/search/android1","GET",e)}dlAndroid1(e){return this.request("/api/apk/dl/android1","GET",e)}searchAppStore(e){return this.request("/api/apk/search/appstore","GET",e)}searchApkMirror(e){return this.request("/api/apk/search/apkmirror","GET",e)}dlApkMirror(e){return this.request("/api/apk/dl/apkmirror","GET",e)}searchApkPure(e){return this.request("/api/apk/search/apkpure","GET",e)}dlApkPure(e){return this.request("/api/apk/dl/apkpure","GET",e)}searchModCombo(e){return this.request("/api/apk/search/modcombo","GET",e)}searchPlayStore(e){return this.request("/api/apk/search/playstore","GET",e)}dlPlayStore(e){return this.request("/api/apk/dl/playstore","GET",e)}searchRexdl(e){return this.request("/api/apk/search/rexdl","GET",e)}dlRexdl(e){return this.request("/api/apk/dl/rexdl","GET",e)}searchSteam(e){return this.request("/api/apk/search/steam","GET",e)}searchHappyMod(e){return this.request("/api/apk/search/happymod","GET",e)}searchSFile(e){return this.request("/api/apk/search/sfile","GET",e)}llamaBot(e){return this.request("/api/bot/llama","GET",e)}qwenBot(e){return this.request("/api/bot/qwen","GET",e)}baiduBot(e){return this.request("/api/bot/baidu","GET",e)}gemmaBot(e){return this.request("/api/bot/gemma","GET",e)}sparkBot(e){return this.request("/api/chat/spark","GET",e)}quarkBot(e){return this.request("/api/chat/quark","GET",e)}glmBot(e){return this.request("/api/chat/glm","GET",e)}canvasCircle(e){return this.request("/api/canvas/circle","GET",e)}canvasBisexual(e){return this.request("/api/canvas/bisexual","GET",e)}canvasHeart(e){return this.request("/api/canvas/heart","GET",e)}canvasHorny(e){return this.request("/api/canvas/horny","GET",e)}canvasPansexual(e){return this.request("/api/canvas/pansexual","GET",e)}canvasLesbian(e){return this.request("/api/canvas/lesbian","GET",e)}canvasLGBT(e){return this.request("/api/canvas/lgbtq","GET",e)}canvasNoBinary(e){return this.request("/api/canvas/nobin","GET",e)}canvasTransgen(e){return this.request("/api/canvas/transgen","GET",e)}canvasTonikawa(e){return this.request("/api/canvas/tonikawa","GET",e)}canvasSimpcard(e){return this.request("/api/canvas/simpcard","GET",e)}base64(e){return this.request("/api/tools/base64","GET",e)}base32(e){return this.request("/api/tools/base32","GET",e)}base16(e){return this.request("/api/tools/base16","GET",e)}base36(e){return this.request("/api/tools/base36","GET",e)}base45(e){return this.request("/api/tools/base45","GET",e)}base58(e){return this.request("/api/tools/base58","GET",e)}base62(e){return this.request("/api/tools/base62","GET",e)}base85(e){return this.request("/api/tools/base85","GET",e)}base91(e){return this.request("/api/tools/base91","GET",e)}binary(e){return this.request("/api/tools/binary","GET",e)}brainfuck(e){return this.request("/api/tools/brainfuck","GET",e)}interpreter(e){return this.request("/api/interpreter","GET",e)}shortenIsgd(e){return this.request("/api/short/isgd","GET",e)}shortenL8nu(e){return this.request("/api/short/l8nu","GET",e)}shortenReurl(e){return this.request("/api/short/reurl","GET",e)}shortenTinycc(e){return this.request("/api/short/tinycc","GET",e)}shortenClck(e){return this.request("/api/short/clck","GET",e)}shortenItsl(e){return this.request("/api/short/itsl","GET",e)}shortenCuqin(e){return this.request("/api/short/cuqin","GET",e)}shortenSurl(e){return this.request("/api/short/surl","GET",e)}shortenVurl(e){return this.request("/api/short/vurl","GET",e)}shortenVgd(e){return this.request("/api/short/vgd","GET",e)}shortenClean(e){return this.request("/api/short/clean","GET",e)}shortenBitly(e){return this.request("/api/short/bitly","GET",e)}shortenTiny(e){return this.request("/api/short/tiny","GET",e)}unshort(e){return this.request("/api/short/unshort","GET",e)}audiodbScanArtist(e){return this.request("/api/audiodb/scan","GET",e)}audiodbSearchTrack(e){return this.request("/api/audiodb/track","GET",e)}audiodbDiscography(e){return this.request("/api/audiodb/discography","GET",e)}audiodbAlbums(e){return this.request("/api/audiodb/albums","GET",e)}audiodbSpecificAlbum(e){return this.request("/api/audiodb/album","GET",e)}audiodbArtistById(e){return this.request("/api/audiodb/artist","GET",e)}audiodbArtistByMbid(e){return this.request("/api/audiodb/artist-mb","GET",e)}audiodbArtistLinks(e){return this.request("/api/audiodb/artist-links","GET",e)}audiodbAlbumById(e){return this.request("/api/audiodb/album-id","GET",e)}audiodbAlbumByMbid(e){return this.request("/api/audiodb/album-mb","GET",e)}audiodbTrackByAlbumId(e){return this.request("/api/audiodb/track-album","GET",e)}audiodbTrackById(e){return this.request("/api/audiodb/track-id","GET",e)}audiodbTrackByMbid(e){return this.request("/api/audiodb/track-mb","GET",e)}audiodbVideosById(e){return this.request("/api/audiodb/mvid","GET",e)}audiodbVideosByMbid(e){return this.request("/api/audiodb/mvid-mb","GET",e)}audiodbTrendingAlbums(e){return this.request("/api/audiodb/trending-albums","GET",e)}audiodbTrendingSingles(e){return this.request("/api/audiodb/trending-singles","GET",e)}audiodbTopTracks(e){return this.request("/api/audiodb/top-tracks","GET",e)}audiodbTopTracksMb(e){return this.request("/api/audiodb/top-tracks-mb","GET",e)}commitMessage(){return this.request("/api/commit/message","GET")}strangerQuote(){return this.request("/api/quote/stranger","GET")}pickupLine(){return this.request("/api/quote/pickup","GET")}whyQuestion(){return this.request("/api/quote/why","GET")}randomQuote(){return this.request("/api/quotes/random","GET")}techTip(){return this.request("/api/quote/techtips","GET")}codingTip(){return this.request("/api/quote/coding","GET")}funFact(){return this.request("/api/quote/funfacts","GET")}wyrQuote(){return this.request("/api/quote/wyr","GET")}motivQuote(){return this.request("/api/quote/motiv","GET")}islamicQuote(){return this.request("/api/quote/islamic","GET")}lifeHack(){return this.request("/api/quote/lifehacks","GET")}breakingBadQuote(){return this.request("/api/quote/breakingbad","GET")}buddhaQuote(){return this.request("/api/quote/buddha","GET")}stoicQuote(){return this.request("/api/quote/stoic","GET")}luciferQuote(){return this.request("/api/quote/lucifer","GET")}dlFacebook(e){return this.request("/api/dl/facebook","GET",e)}dlGitClone(e){return this.request("/api/dl/gitclone","GET",e)}dlInstagram(e){return this.request("/api/dl/instagram","GET",e)}dlMediafire(e){return this.request("/api/dl/mediafire","GET",e)}dlPinterest(e){return this.request("/api/dl/pinterest","GET",e)}dlTikTok(e){return this.request("/api/dl/tiktok","GET",e)}dlTwitter(e){return this.request("/api/dl/twitter","GET",e)}dlLikee(e){return this.request("/api/dl/likee","GET",e)}dlThreads(e){return this.request("/api/dl/threads","GET",e)}dlTwitch(e){return this.request("/api/dl/twitch","GET",e)}dlWallBest(e){return this.request("/api/dl/wallbest","GET",e)}dlWallCraft(e){return this.request("/api/dl/wallcraft","GET",e)}dlWallHaven(e){return this.request("/api/dl/wallhaven","GET",e)}dlWikimedia(e){return this.request("/api/dl/wikimedia","GET",e)}dlYouTube(e){return this.request("/api/dl/youtube","GET",e)}dlBilibili(e){return this.request("/api/dl/bilibili","GET",e)}dlLinkedIn(e){return this.request("/api/dl/linkedin","GET",e)}dlSnapChat(e){return this.request("/api/dl/snapchat","GET",e)}dlShareChat(e){return this.request("/api/dl/sharechat","GET",e)}dlSnackVideo(e){return this.request("/api/dl/snack","GET",e)}dlPinterestVideo(e){return this.request("/api/dl/pinterest","GET",e)}dlRedditVideo(e){return this.request("/api/dl/reddit","GET",e)}dlVideezy(e){return this.request("/api/dl/videezy","GET",e)}dlVidsPlay(e){return this.request("/api/dl/vidsplay","GET",e)}dlIMDbVideo(e){return this.request("/api/dl/imdb","GET",e)}dlIFunny(e){return this.request("/api/dl/ifunny","GET",e)}dlGetty(e){return this.request("/api/dl/getty","GET",e)}pexelsVideos(e){return this.request("/api/pexels/videos","GET",e)}pexelsImages(e){return this.request("/api/pexels/images","GET",e)}loremPicsum(e){return this.request("/api/dl/picsum","GET",e)}iconFinder(e){return this.request("/api/icon/finder","GET",e)}pixabayImages(e){return this.request("/api/pixabay/images","GET",e)}pixabayVideos(e){return this.request("/api/pixabay/videos","GET",e)}tenorGifs(e){return this.request("/api/dl/tenor","GET",e)}pasteBin(e){return this.request("/api/dl/pastebin","GET",e)}googleImage(e){return this.request("/api/dl/gimage","GET",e)}baiduImage(e){return this.request("/api/img/baidu","GET",e)}dailyBing(){return this.request("/api/img/dailybing","GET")}dlIStock(e){return this.request("/api/dl/istock","GET",e)}dlOdysee(e){return this.request("/api/dl/odysee","GET",e)}dlAlamy(e){return this.request("/api/dl/alamy","GET",e)}qrCode(e){return this.request("/api/maker/qrcode","GET",e)}qrTag(e){return this.request("/api/maker/qrtag","GET",e)}textToPic(e){return this.request("/api/maker/ttp","GET",e)}designFont(e){return this.request("/api/design/font","GET",e)}captchaImage(){return this.request("/api/maker/captcha","GET")}customQR(e){return this.request("/api/maker/customqr","GET",e)}textAvatar(e){return this.request("/api/maker/avatar","GET",e)}webLogo(e){return this.request("/api/maker/weblogo","GET",e)}whoWins(e){return this.request("/api/maker/whowin","GET",e)}quoted(e){return this.request("/api/maker/quoted","GET",e)}qrPro(e){return this.request("/api/qr/pro","GET",e)}img2Base64(e){return this.request("/api/img2base64","POST",void 0,e,"body")}base64ToImg(e){return this.request("/api/img2base64","GET",e)}barcode128(e){return this.request("/api/barcode/code","GET",e)}barcodeEAN(e){return this.request("/api/barcode/ean","GET",e)}barcodeQR(e){return this.request("/api/barcode/qr","GET",e)}emojiMosaic(e,t){return this.request("/api/emoji/mosaic","POST",t,e,"body")}emojiTranslate(e){return this.request("/api/emoji/translate","GET",e)}emojiReplace(e){return this.request("/api/emoji/replace","GET",e)}emojiMirror(e){return this.request("/api/emoji/mirror","GET",e)}emojiRainbow(e){return this.request("/api/emoji/rainbow","GET",e)}emojiMix(e){return this.request("/api/emoji/mix","GET",e)}carbonImage(e){return this.request("/api/maker/carbon","GET",e)}welcomeImage(e){return this.request("/api/maker/welcome","GET",e)}searchSpotify(e){return this.request("/api/search/spotify","GET",e)}dlSpotify(e){return this.request("/api/dl/spotify","GET",e)}searchSoundCloud(e){return this.request("/api/search/soundcloud","GET",e)}dlSoundCloud(e){return this.request("/api/dl/soundcloud","GET",e)}lyrics(e){return this.request("/api/music/lyrics","GET",e)}ringtones(e){return this.request("/api/dl/ringtone","GET",e)}searchSound(e){return this.request("/api/search/sound","GET",e)}previewSound(e){return this.request("/api/dl/sound","GET",e)}searchDeezer(e){return this.request("/api/search/deezer","GET",e)}previewDeezer(e){return this.request("/api/search/deezer","GET",e)}searchMusicBrainz(e){return this.request("/api/search/musicbrainz","GET",e)}openWhyd(e){return this.request("/api/search/openwhyd","GET",e)}dadJoke(){return this.request("/api/joke/dad","GET")}generalJoke(){return this.request("/api/joke/general","GET")}knockJoke(){return this.request("/api/joke/knock","GET")}programmingJoke(){return this.request("/api/joke/programming","GET")}miscJoke(){return this.request("/api/joke/misc","GET")}codingJoke(){return this.request("/api/joke/coding","GET")}spookyJoke(){return this.request("/api/joke/spooky","GET")}darkJoke(){return this.request("/api/joke/dark","GET")}christmasJoke(){return this.request("/api/joke/Christmas","GET")}randomJoke(){return this.request("/api/joke/random","GET")}animalJoke(){return this.request("/api/joke/animal","GET")}careerJoke(){return this.request("/api/joke/career","GET")}celebrityJoke(){return this.request("/api/joke/celebrity","GET")}explicitJoke(){return this.request("/api/joke/explicit","GET")}fashionJoke(){return this.request("/api/joke/fashion","GET")}foodJoke(){return this.request("/api/joke/food","GET")}historyJoke(){return this.request("/api/joke/history","GET")}moneyJoke(){return this.request("/api/joke/money","GET")}movieJoke(){return this.request("/api/joke/movie","GET")}musicJoke(){return this.request("/api/joke/music","GET")}scienceJoke(){return this.request("/api/joke/science","GET")}sportJoke(){return this.request("/api/joke/sport","GET")}travelJoke(){return this.request("/api/joke/travel","GET")}coupleImage(){return this.request("/api/img/couple","GET")}pizzaImage(){return this.request("/api/images/pizza","GET")}burgerImage(){return this.request("/api/images/burger","GET")}dosaImage(){return this.request("/api/images/dosa","GET")}pastaImage(){return this.request("/api/images/pasta","GET")}biryaniImage(){return this.request("/api/images/biryani","GET")}islamicImage(){return this.request("/api/img/islamic","GET")}techImage(){return this.request("/api/img/tech","GET")}gameImage(){return this.request("/api/img/game","GET")}mountainImage(){return this.request("/api/img/mountain","GET")}programmingImage(){return this.request("/api/img/programming","GET")}cyberSpaceImage(){return this.request("/api/img/cyberspace","GET")}wallPcImage(){return this.request("/api/img/wallpc","GET")}messiImage(){return this.request("/api/img/messi","GET")}ronaldoImage(){return this.request("/api/img/ronaldo","GET")}coffeeImage(){return this.request("/api/img/coffee","GET")}catImage(){return this.request("/api/img/cat","GET")}dogImage(){return this.request("/api/img/dog","GET")}yesNoImage(){return this.request("/api/img/yesno","GET")}foxImage(){return this.request("/api/img/fox","GET")}notExistImage(){return this.request("/api/img/notexist","GET")}dateFact(e){return e?.month&&e?.day?this.request("/api/fact/date","GET",e):this.request("/api/date/fact","GET")}yearFact(e){return e?.year?this.request("/api/fact/year","GET",e):this.request("/api/year/fact","GET")}mathFact(e){return e?.number?this.request("/api/fact/math","GET",e):this.request("/api/math/fact","GET")}triviaFact(e){return e?.number?this.request("/api/fact/trivia","GET",e):this.request("/api/trivia/fact","GET")}uselessFact(){return this.request("/api/fact/useless","GET")}todayFact(){return this.request("/api/fact/today","GET")}fakeUser(){return this.request("/api/fake/user","GET")}fakeUsers(e){return this.request("/api/fake/users","GET",e)}fakeAddresses(e){return this.request("/api/fake/addresses","GET",e)}fakeTexts(e){return this.request("/api/fake/texts","GET",e)}fakePersons(e){return this.request("/api/fake/persons","GET",e)}fakeBooks(e){return this.request("/api/fake/books","GET",e)}fakeImages(e){return this.request("/api/fake/images","GET",e)}fakeCredits(e){return this.request("/api/fake/credits","GET",e)}fakeCompanies(e){return this.request("/api/fake/companies","GET",e)}fakePlaces(e){return this.request("/api/fake/places","GET",e)}fakeProducts(e){return this.request("/api/fake/products","GET",e)}storeAddProduct(e){return this.request("/api/store/add/products","POST",void 0,e,"body")}storeDeleteProduct(e){return this.request("/api/store/products","DELETE",e,void 0,"body")}storeUpdateProduct(e,t){return this.request("/api/store/products","PUT",e,t,"body")}storeAllProducts(){return this.request("/api/store/products","GET")}storeGetProduct(e){return this.request("/api/store/product","GET",e)}storeAllCarts(){return this.request("/api/store/carts","GET")}storeAddCart(e){return this.request("/api/store/carts","POST",void 0,e,"body")}storeGetCart(e){return this.request("/api/store/cart","GET",e)}storeUpdateCart(e,t){return this.request("/api/store/carts","PUT",e,t,"body")}storeDeleteCart(e){return this.request("/api/store/carts","DELETE",e,void 0,"body")}storeAllUsers(){return this.request("/api/store/users","GET")}storeAddUser(e){return this.request("/api/store/users","POST",void 0,e,"body")}AljazeeraEnglish(){return this.request("/api/news/aljazeera","GET")}AlJazeeraArticle(e){return this.request("/api/aljazeera/article","GET",e)}AlJazeeraArabic(){return this.request("/api/news/aljazeera/ar","GET")}ArabicArticle(e){return this.request("/api/aljazeera/article/ar","GET",e)}TRTWorld(){return this.request("/api/news/trt","GET")}TRTArticle(e){return this.request("/api/trt/article","GET",e)}TRTAfrika(){return this.request("/api/news/trt/af","GET")}AfrikaArticle(e){return this.request("/api/trt/article/af","GET",e)}SkyNews(){return this.request("/api/news/sky","GET")}SkyArticle(e){return this.request("/api/sky/article","GET",e)}SkySports(){return this.request("/api/news/skysports","GET")}SportsArticle(e){return this.request("/api/skysports/article","GET",e)}DawnNews(){return this.request("/api/news/dawn","GET")}DawnArticle(e){return this.request("/api/dawn/article","GET",e)}CNNNews(){return this.request("/api/news/cnn","GET")}CNNArticle(e){return this.request("/api/cnn/article","GET",e)}CGTNWorld(){return this.request("/api/news/cgtn","GET")}CGTNArticle(e){return this.request("/api/cgtn/article","GET",e)}GeoUrdu(){return this.request("/api/news/geo","GET")}GeoArticle(e){return this.request("/api/geo/article","GET",e)}GeoEnglish(){return this.request("/api/news/geo/en","GET")}GeoArticleEn(e){return this.request("/api/geo/article/en","GET",e)}GeoSuper(){return this.request("/api/news/geosuper","GET")}SuperArticle(e){return this.request("/api/geosuper/article","GET",e)}ExpressTribune(){return this.request("/api/news/tribune","GET")}TribuneArticle(e){return this.request("/api/tribune/article","GET",e)}NeoNews(){return this.request("/api/news/neo","GET")}NeoArticle(e){return this.request("/api/neo/article","GET",e)}ExpressNews(){return this.request("/api/news/express","GET")}ExpressArticle(e){return this.request("/api/express/article","GET",e)}TheGuardian(){return this.request("/api/news/guardian","GET")}GuardianArticle(e){return this.request("/api/guardian/article","GET",e)}AntaraNews(){return this.request("/api/news/antara","GET")}AntaraArticle(e){return this.request("/api/antara/article","GET",e)}stalkPinterest(e){return this.request("/api/stalk/pinterest","GET",e)}stalkGithub(e){return this.request("/api/stalk/github","GET",e)}stalkInstagram(e){return this.request("/api/stalk/instagram","GET",e)}stalkThreads(e){return this.request("/api/stalk/threads","GET",e)}stalkTwitter(e){return this.request("/api/stalk/twitter","GET",e)}stalkTelegram(e){return this.request("/api/stalk/telegram","GET",e)}stalkTikTok(e){return this.request("/api/stalk/tiktok","GET",e)}searchGoogle(e){return this.request("/api/search/google","GET",e)}searchBing(e){return this.request("/api/search/bing","GET",e)}searchBaidu(){return this.request("/api/search/baidu","GET")}searchWeibo(){return this.request("/api/search/weibo","GET")}searchImgur(e){return this.request("/api/search/imgur","GET",e)}searchTime(e){return this.request("/api/search/time","GET",e)}searchFlicker(e){return this.request("/api/search/flicker","GET",e)}searchItunes(e){return this.request("/api/search/itunes","GET",e)}searchWattpad(e){return this.request("/api/search/wattpad","GET",e)}searchStickers(e){return this.request("/api/search/stickers","GET",e)}searchYoutube(e){return this.request("/api/search/youtube2","GET",e)}searchTracks(e){return this.request("/api/search/youtube2","GET",e)}searchGifs(e){return this.request("/api/klipy/gif","GET",e)}searchMemes(e){return this.request("/api/klipy/meme","GET",e)}toolsCompress(e){return this.request("/api/compress","GET",e)}toolsDecompress(e){return this.request("/api/decompress","GET",e)}toolsBanklogo(e){return this.request("/api/tools/banklogo","GET",e)}toolsDetectLang(e){return this.request("/api/tools/detect","GET",e)}toolsDictionary(e){return this.request("/api/tools/dictionary","GET",e)}toolsDictionary2(e){return this.request("/api/tools/dict","GET",e)}toolsMathematics(e){return this.request("/api/tools/math","GET",e)}toolsPreview(e){return this.request("/api/tools/preview","GET",e)}toolsScreenshot(e){return this.request("/api/tools/ssweb","GET",e)}toolsStyleText(e){return this.request("/api/tools/styletext","GET",e)}toolsTranslate(e){return this.request("/api/tools/translate","GET",e)}toolsTranslate2(e){return this.request("/api/go/translate","GET",e)}toolsPing(e){return this.request("/api/simple/ping","GET",e)}toolsCounter(e){return this.request("/api/tools/count","GET",e)}toolsHandwriting(e){return this.request("/api/tools/handwrite","GET",e)}toolsTextStats(e){return this.request("/api/tools/string","GET",e)}toolsWordCount(e){return this.request("/api/word/count","GET",e)}toolsUnitConvert(e){return this.request("/api/convert/unit","GET",e)}memesTwoButton(e){return this.request("/api/meme/buttons","GET",e)}memesYelling(e){return this.request("/api/meme/yelling","GET",e)}memesSuccess(e){return this.request("/api/meme/success","GET",e)}memesPuppet(e){return this.request("/api/meme/puppet","GET",e)}memesCouple(e){return this.request("/api/meme/couple","GET",e)}memesSquid(e){return this.request("/api/meme/squid","GET",e)}memesMask(e){return this.request("/api/meme/mask","GET",e)}memesDrowning(e){return this.request("/api/meme/drowning","GET",e)}memesDistracted(e){return this.request("/api/meme/boyfriend","GET",e)}memesExit(e){return this.request("/api/meme/exit","GET",e)}photoPubg(e){return this.request("/api/photo/pubg","GET",e)}photoBattle(e){return this.request("/api/photo/battle4","GET",e)}photoTikTok(e){return this.request("/api/photo/tiktok","GET",e)}photoNeon(e){return this.request("/api/photo/neon","GET",e)}photoWarface(e){return this.request("/api/photo/warface","GET",e)}photoWarface2(e){return this.request("/api/photo/warface2","GET",e)}photoLeague(e){return this.request("/api/photo/league","GET",e)}photoLolCover(e){return this.request("/api/photo/lolcover","GET",e)}photoLolShine(e){return this.request("/api/photo/lolshine","GET",e)}photoMetal(e){return this.request("/api/photo/darkmetal","GET",e)}ephotoDeadpool(e){return this.request("/api/ephoto/deadpool","GET",e)}ephotoWolf(e){return this.request("/api/ephoto/wolf","GET",e)}ephotoShirt(e){return this.request("/api/ephoto/shirt","GET",e)}ephotoPencil(e){return this.request("/api/ephoto/sketch","GET",e)}ephotoThor(e){return this.request("/api/ephoto/thor","GET",e)}ephotoRoyal(e){return this.request("/api/ephoto/royal","GET",e)}ephotoComic(e){return this.request("/api/ephoto/comic","GET",e)}ephotoWings(e){return this.request("/api/ephoto/angel","GET",e)}ephotoFps(e){return this.request("/api/ephoto/game","GET",e)}ephotoMetal(e){return this.request("/api/ephoto/mavatar","GET",e)}infoGithubUser(e){return this.request("/api/github/user","GET",e)}infoGithubRepo(e){return this.request("/api/github/repo","GET",e)}infoIMDb(e){return this.request("/api/info/imdb","GET",e)}infoTMDb(e){return this.request("/api/info/tmdb","GET",e)}infoUniversity(e){return this.request("/api/info/university","GET",e)}infoIP(e){return this.request("/api/info/ip","GET",e)}infoTrends(e){return this.request("/api/info/trends","GET",e)}infoWeather(e){return this.request("/api/weather/info","GET",e)}infoCountry(e){return this.request("/api/info/country","GET",e)}infoWikipedia(e){return this.request("/api/info/wiki","GET",e)}CryptoPrice(e){return this.request("/api/info/crypto","GET",e)}cryptoList(){return this.request("/api/crypto/tags","GET")}setFullResponse(e){this.fullResponse=e}getFullResponse(){return this.fullResponse}setAPIKey(e){this.apiKey=e}setTimeout(e){this.timeout=e}},index_default=DiscardAPI;export{DiscardAPI,index_default as default};