Overview

Fetches a paginated list of the movies as ranked on HiAnime. Use this when you need a broad, trending list to display on home pages, dashboards, or discovery screens.

Usage

index.ts
import { Hianime } from "hianime";

async function main() {
  const hianime = new Hianime();

  const result = await hianime.getMovies();
  console.log(JSON.stringify(result, null, 2));
}

main();

Response

response
{
  "page": 1,
  "totalPage": 35,
  "hasNextPage": true,
  "results": [
    {
      "id": "/thunderbolt-fantasy-the-final-chapter-19705",
      "image": "https://cdn.noitatnemucod.net/thumbnail/300x400/100/dd6c0640cdf2312ff8f8c438eb652701.jpg",
      "title": "Thunderbolt Fantasy - The Final Chapter",
      "type": "MOVIE",
      "language": {
        "sub": "1",
        "dub": null
      },
      "dataId": "19705"
    },
    {
      "id": "/gaksital-19690",
      "image": "https://cdn.noitatnemucod.net/thumbnail/300x400/100/9d3ecf7508ef23a08fed474a3d996863.jpg",
      "title": "Gaksital",
      "type": "MOVIE",
      "language": {
        "sub": "1",
        "dub": null
      },
      "dataId": "19690"
    }
  ]
}

Response fields

  • page: number — current page index returned by the API.
  • totalPage: number — total number of pages available.
  • hasNextPage: boolean — indicates whether another page is available.
  • results: array of items containing:
    • id: string — anime identifier or path.
    • image: string — poster/thumbnail URL.
    • title: string — anime title.
    • type: string — e.g., “TV”, “Movie” (values depend on site data).
    • language.sub / language.dub: string — episode availability counts as reported by the site.
    • dataId: string — site-specific numeric identifier.

Parameters

  • page: number — page to fetch. Defaults to 1. Must be a positive integer.
    Use page together with hasNextPage and totalPage to implement pagination in your app.

Notes & limitations

  • Ordering and availability are determined by HiAnime and may change over time.
  • Pagination limits (max pages) can vary; always check hasNextPage.
  • This is an unofficial scraper-based method; site changes can break behavior without notice. Use responsibly and respect the website’s Terms of Service.