1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 "https://www.glassdoor.com/Reviews/Google-Reviews-E9079.htm"
13 ],
14 "maxItems": 3,
15 "maxReviewsPerCompany": 0,
16 "sortBy": "mostRecent",
17 "location": "",
18 "jobFunction": "any",
19 "postedWithinDays": "any",
20 "dateFrom": "",
21 "dateTo": "",
22 "rating": "any",
23 "ratings": [],
24 "employmentType": "any",
25 "employmentTypes": [],
26 "onlyCurrentEmployees": false,
27 "onlyWithEmployerResponses": false,
28 "jobTitleKeywords": "",
29 "keyword": "",
30 "language": "eng",
31 "languages": [],
32 "includeWorldwideReviews": false,
33 "includeCompanySummary": false,
34 "includeCompanyProfile": false,
35 "onlyNew": false,
36 "monitorId": "glassdoor-reviews",
37 "emitUnchanged": false
38};
39
40
41const run = await client.actor("nimbryxo-studio/glassdoor-employee-reviews-with-full-ratings").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51