wantapi
Version:
API Discord 2025
54 lines (42 loc) • 1.25 kB
JavaScript
const axios = require('axios');
class WantReal {
constructor(baseURL = 'https://api.want.cat/api') {
this.client = axios.create({
baseURL,
});
}
async fetchEndpoint(endpoint) {
try {
const response = await this.client.get(`/${endpoint}`);
return response.data.url;
} catch (error) {
console.error(`Error en ${endpoint}:`, error.response?.data || error.message);
return null;
}
}
async getbonitas() {
return await this.fetchEndpoint('bonitas');
}
async getboobs() {
return await this.fetchEndpoint('realboobs');
}
async getcosplay() {
return await this.fetchEndpoint('cosplay');
}
async getegirls() {
return await this.fetchEndpoint('realegirls');
}
async getpfp() {
return await this.fetchEndpoint('realpfp');
}
async getgif() {
return await this.fetchEndpoint('gif');
}
async getinterracial() {
return await this.fetchEndpoint('interracial');
}
async getpussy() {
return await this.fetchEndpoint('pussy');
}
}
module.exports = WantReal;