1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "games",
12 "gameQueries": [
13 "blox fruits"
14 ],
15 "catalogCategory": "all",
16 "userQueries": [
17 "builderman"
18 ],
19 "groupQueries": [
20 "7"
21 ],
22 "fetchGroupMembers": false,
23 "urls": [
24 "https://www.roblox.com/discover?Keyword=obby"
25 ],
26 "catalogSalesType": "any",
27 "catalogSortType": "relevance",
28 "fetchDetails": true,
29 "maxPages": 0,
30 "maxItems": 20,
31 "incrementalMode": false,
32 "emitUnchanged": false,
33 "emitExpired": false,
34 "proxy": {
35 "useApifyProxy": true
36 }
37};
38
39
40const run = await client.actor("abotapi/roblox-scraper").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50