ChrisMichaelPerezSantiago / gogoanime

Gogoanime is a custom API that provides data from the 10.gogoanime.io website. You will have access to the entire catalog whether movies, series, current episodes, etc., with English subtitles.
MIT License
74 stars 53 forks source link

List all the anime names #24

Open whoamibruh opened 4 days ago

whoamibruh commented 4 days ago

how do i list all?

import api from 'gogoanime';
api.alphabetList(['A'], [1]).then((res) => {
    const animeNames = res.map(anime => anime.title);
    console.log(animeNames);
}).catch(err => {
    console.error('Error fetching anime list:', err);
});

image

ChrisMichaelPerezSantiago commented 1 day ago

@whoamibruh must be:

const letter = 'A';
const page = 1;

const r = await api.alphabetList(letter, page)