Fetches a list of the servers for a specific episode. This function takes an episodeId as a parameter. It is required to pass episodeId to fetch the servers of an episode.
import { Hianime } from "hianime";async function main() { const hianime = new Hianime(); // Takes an episodeId as a parameter, // in the example it is "3303" which is the episodeId of the anime "Attack on Titan" Episode 1 const result = await hianime.getEpisodeServers("3303"); console.log(JSON.stringify(result, null, 2));}main();
The episodeId can be found on each Episode object from the
getEpisodes(). method.