1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "text": "Really great can't see everything in one visit in a relaxed pace but can see a lot over a few days, recommend that you pull off the road to view wildlife to avoid causing traffic or accidents, also don't bring pets a lot of the places in the park hav",
14 "textTranslated": null,
15 "publishAt": "55 minutes ago",
16 "publishedAtDate": "2026-09-22T22:12:29.184Z",
17 "reviewId": "Ci9DQUlRQUNvZENodHljRjlvT2trM2RXcG5WVmhoUW1kaVduWlVVSGs1YmpCTE1FRRAB",
18 "reviewUrl": null,
19 "reviewOrigin": "Google",
20 "stars": 5,
21 "rating": null,
22 "responseFromOwnerDate": null,
23 "responseFromOwnerText": null,
24 "originalLanguage": "en",
25 "translatedLanguage": null,
26 "placeId": "ChIJVVVVVVXlUVMRu-GPNDD5qKw",
27 "title": "Yellowstone National Park",
28 "url": "https://www.google.com/maps/search/?api=1&query=Yellowstone%20National%20Park&query_place_id=ChIJVVVVVVXlUVMRu-GPNDD5qKw",
29 "_exampleProvenance": {
30 "sourceActorId": "Xb8osYTtOjlsgI6k9",
31 "sourceRunId": "JKEBQz9m3B6cmfOCu",
32 "sourceDatasetId": "D1fpb3EAjsRD4E20w",
33 "curatedPublicSnapshot": true,
34 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
35 }
36 },
37 {
38 "text": null,
39 "textTranslated": null,
40 "publishAt": "an hour ago",
41 "publishedAtDate": "2026-09-22T21:35:36.564Z",
42 "reviewId": "Ci9DQUlRQUNvZENodHljRjlvT25CNFJFMVBjbWhXUlY5RFNsVk9RMHN6VDFFNVYzYxAB",
43 "reviewUrl": null,
44 "reviewOrigin": "Google",
45 "stars": 5,
46 "rating": null,
47 "responseFromOwnerDate": null,
48 "responseFromOwnerText": null,
49 "originalLanguage": null,
50 "translatedLanguage": null,
51 "placeId": "ChIJVVVVVVXlUVMRu-GPNDD5qKw",
52 "title": "Yellowstone National Park",
53 "url": "https://www.google.com/maps/search/?api=1&query=Yellowstone%20National%20Park&query_place_id=ChIJVVVVVVXlUVMRu-GPNDD5qKw",
54 "_exampleProvenance": {
55 "sourceActorId": "Xb8osYTtOjlsgI6k9",
56 "sourceRunId": "JKEBQz9m3B6cmfOCu",
57 "sourceDatasetId": "D1fpb3EAjsRD4E20w",
58 "curatedPublicSnapshot": true,
59 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
60 }
61 },
62 {
63 "text": "Impresionante!!! Hermoso y unico!! Tiwnes que ir",
64 "textTranslated": "Amazing!!! Beautiful and unique!! You have to go",
65 "publishAt": "8 hours ago",
66 "publishedAtDate": "2026-09-22T14:36:37.163Z",
67 "reviewId": "Ci9DQUlRQUNvZENodHljRjlvT21reGMwbHdTa2M1YVVWclpsUXpibkExVDE5SlltYxAB",
68 "reviewUrl": null,
69 "reviewOrigin": "Google",
70 "stars": 5,
71 "rating": null,
72 "responseFromOwnerDate": null,
73 "responseFromOwnerText": null,
74 "originalLanguage": "es",
75 "translatedLanguage": "en",
76 "placeId": "ChIJVVVVVVXlUVMRu-GPNDD5qKw",
77 "title": "Yellowstone National Park",
78 "url": "https://www.google.com/maps/search/?api=1&query=Yellowstone%20National%20Park&query_place_id=ChIJVVVVVVXlUVMRu-GPNDD5qKw",
79 "_exampleProvenance": {
80 "sourceActorId": "Xb8osYTtOjlsgI6k9",
81 "sourceRunId": "JKEBQz9m3B6cmfOCu",
82 "sourceDatasetId": "D1fpb3EAjsRD4E20w",
83 "curatedPublicSnapshot": true,
84 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
85 }
86 },
87 {
88 "text": "MAJU",
89 "textTranslated": "PROCEED",
90 "publishAt": "9 hours ago",
91 "publishedAtDate": "2026-09-22T13:52:49.980Z",
92 "reviewId": "Ci9DQUlRQUNvZENodHljRjlvT2sxbGRVaEdTSEJ6VW1OaE1WOWpOVGxCVnkxNk5sRRAB",
93 "reviewUrl": null,
94 "reviewOrigin": "Google",
95 "stars": 5,
96 "rating": null,
97 "responseFromOwnerDate": null,
98 "responseFromOwnerText": null,
99 "originalLanguage": "id",
100 "translatedLanguage": "en",
101 "placeId": "ChIJVVVVVVXlUVMRu-GPNDD5qKw",
102 "title": "Yellowstone National Park",
103 "url": "https://www.google.com/maps/search/?api=1&query=Yellowstone%20National%20Park&query_place_id=ChIJVVVVVVXlUVMRu-GPNDD5qKw",
104 "_exampleProvenance": {
105 "sourceActorId": "Xb8osYTtOjlsgI6k9",
106 "sourceRunId": "JKEBQz9m3B6cmfOCu",
107 "sourceDatasetId": "D1fpb3EAjsRD4E20w",
108 "curatedPublicSnapshot": true,
109 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
110 }
111 },
112 {
113 "text": null,
114 "textTranslated": null,
115 "publishAt": "16 hours ago",
116 "publishedAtDate": "2026-09-22T06:47:27.869Z",
117 "reviewId": "Ci9DQUlRQUNvZENodHljRjlvT2s4eGNYZDBZbGhpWTFrd09WRmxhMlJTUTBFNFIwRRAB",
118 "reviewUrl": null,
119 "reviewOrigin": "Google",
120 "stars": 5,
121 "rating": null,
122 "responseFromOwnerDate": null,
123 "responseFromOwnerText": null,
124 "originalLanguage": null,
125 "translatedLanguage": null,
126 "placeId": "ChIJVVVVVVXlUVMRu-GPNDD5qKw",
127 "title": "Yellowstone National Park",
128 "url": "https://www.google.com/maps/search/?api=1&query=Yellowstone%20National%20Park&query_place_id=ChIJVVVVVVXlUVMRu-GPNDD5qKw",
129 "_exampleProvenance": {
130 "sourceActorId": "Xb8osYTtOjlsgI6k9",
131 "sourceRunId": "JKEBQz9m3B6cmfOCu",
132 "sourceDatasetId": "D1fpb3EAjsRD4E20w",
133 "curatedPublicSnapshot": true,
134 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
135 }
136 }
137 ]
138};
139
140
141const run = await client.actor("zinin/google-reviews-response-backlog").call(input);
142
143
144console.log('Results from dataset');
145console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
146const { items } = await client.dataset(run.defaultDatasetId).listItems();
147items.forEach((item) => {
148 console.dir(item);
149});
150
151