npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

wantapi

v1.1.1

Published

API Discord 2025

Readme

WantAPI

WantAPI es un paquete npm que proporciona acceso a diferentes categorías de imágenes y contenido mediante la API de WantAPI. Puedes obtener imágenes generales, contenido NSFW y SFW de manera sencilla.

📦 Instalación

Para instalar el paquete en tu proyecto, usa el siguiente comando:

npm install wantapi

🚀 Uso

Importar el paquete

const { WantReal, WantRealV2, WantHentai, WantDiversion, WantReddit } = require('wantapi');

Crear instancias

const real = new WantReal(); 
const realv2 = new WantRealv2();  
const nsfw = new WantHentai(); 
const sfw = new WantDiversion();  

Lista

| Real | Animado | Diversion | |-------------------------|----------------------|-------------| | getbonitas | getnekonsfw | getmeme | | getboobs | getwaifus | | | getcosplay | getasshentai | | | getegirls | | getpfp | | getgif | | getinterracial | | getpussy |

| Real V2 | |-------------------------| | getvideosv2 | | getgifv2 | | getcosplayv2 | | getassv2 | | getlesbianv2 | | gettransgenderv2 | | getbbcv2 |

🖼 WantAPI

(async () => {
    console.log(await real.getbonitas());
    console.log(await realv2.getvideosv2());
    console.log(await nsfw.getasshentai());
    console.log(await sfw.getmeme());
    ///-- 1 a 5 enlaces --///
    realv2.getassv2(5).then(urls => {console.log(urls);});
})();

Reddit

Ahora puedes obtener medios de Reddit fácilmente con:

// Obtener URL de media de un subreddit
WantReddit('subreddit')
  .then(data => {
    console.log('Título:', data.title);
    console.log('URL del media:', data.mediaUrl);
  })
  .catch(err => console.error('Error:', err));

🔍 Estructura de la respuesta

La función devuelve un objeto con los siguientes campos:

| Propiedad | Tipo | Descripción | |-------------------------|----------------------|-------------| | title | string | Título del post | | author | string | Usuario que publicó el post | | subreddit | string | Subreddit de origen | | mediaUrl | string | URL directa del contenido multimedia (imagen/video/GIF) | | postUrl | string | Enlace al post en Reddit | | thumbnail | string | Miniatura del post | | upvotes, downvotes, score | number | Estadísticas de votos | | upvoteRatio | number | Porcentaje de upvotes (ej: 0.95 = 95%) | | commentCount | number | Número de comentarios | | createdAt | string | Fecha de creación en formato ISO | | createdAtFormatted | string | Fecha legible (ej: "2 hours ago") | | isNSFW | boolean | Si el post es +18 | | isVideo, isGallery | boolean | Tipo de contenido | | mediaType | string | Tipo de medio (image, video, gallery) | | awards | Array<object> | Premios (Reddit Awards) del post |

Documentation Oficial

Puedes ir a nuestra API directmente desde la documentación oficial de WantAPI:

DOCS

Unete a nuestro servidor de Discord para obtener ayuda y soporte:

Jedi Studio