Crawl data from AniList API and store as json file.
- Node.js >= 22.18
Fetch anime ID 123
node index.ts --anime 123
Fetch all anime in page 240
node index.ts --page 240
Fetch all anime from page 240 to 244 (inclusive)
node index.ts --page 240-244
Fetch all anime from page 240 to the last page
node index.ts --page 240-
The output json files are saved to anilist_anime folder. You may adjust query.graphql to filter out fields that you do not want.
For details of AniList API please visit https://github.com/AniList/ApiV2-GraphQL-Docs/
You can try the interactive query tool here. https://anilist.co/graphiql
- Anilist API has rate limit of 60 requests/min per IP address. The script will wait for a while when rate limit is reached.