1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "browse",
12 "queries": [
13 "horror"
14 ],
15 "creators": [
16 "gbpatch"
17 ],
18 "jams": [
19 "gmtk-2024"
20 ],
21 "urls": [
22 "https://itch.io/games/top-rated/genre-puzzle",
23 "https://gbpatch.itch.io/our-life"
24 ],
25 "incrementalMode": false,
26 "emitUnchanged": false,
27 "emitExpired": false,
28 "proxy": {
29 "useApifyProxy": true
30 }
31};
32
33
34const run = await client.actor("abotapi/itch-io-scraper").call(input);
35
36
37console.log('Results from dataset');
38console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44