1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "mediaType": "ANIME",
13 "mediaIdentifiers": [],
14 "usernames": [],
15 "searchTerms": [
16 "Frieren"
17 ],
18 "chartKind": "TRENDING",
19 "season": "",
20 "seasonYear": 0,
21 "airingDaysBack": 0,
22 "airingDaysAhead": 7,
23 "listStatus": "",
24 "genres": [],
25 "excludeGenres": [],
26 "tags": [],
27 "excludeTags": [],
28 "minTagRank": 0,
29 "format": "",
30 "status": "",
31 "countryOfOrigin": "",
32 "yearFrom": 0,
33 "yearTo": 0,
34 "minScore": 0,
35 "maxScore": 0,
36 "minPopularity": 0,
37 "maxPopularity": 0,
38 "includeAdult": false,
39 "includeSpoilerTags": false,
40 "includeStaff": false,
41 "includeCharacters": false,
42 "voiceActorLanguage": "JAPANESE",
43 "includeRelations": false,
44 "includeRecommendations": false,
45 "includeLinks": false,
46 "includeStats": false,
47 "monitorName": "",
48 "onlyChanges": true,
49 "maxItems": 10
50};
51
52
53const run = await client.actor("getascraper/anime-manga-scraper-for-anilist-unofficial").call(input);
54
55
56console.log('Results from dataset');
57console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
58const { items } = await client.dataset(run.defaultDatasetId).listItems();
59items.forEach((item) => {
60 console.dir(item);
61});
62
63