1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "items",
12 "items": [
13 {
14 "businessName": "Bright Smile Dental",
15 "category": "Dentist",
16 "address": "123 Main St",
17 "city": "Austin",
18 "phone": "+1 512 555 0100",
19 "rating": 4.7,
20 "reviewCount": 34,
21 "googleMapsUrl": "https://www.google.com/maps/place/Bright+Smile+Dental"
22 },
23 {
24 "title": "Oak Street Bakery",
25 "categoryName": "Bakery",
26 "city": "Portland",
27 "contactPhone": "+1 503 555 0111",
28 "websiteUrl": "https://oakstreetbakery.business.site",
29 "rating": 4.6,
30 "reviews": 18,
31 "mapsUrl": "https://www.google.com/maps/place/Oak+Street+Bakery"
32 },
33 {
34 "name": "Cedar Family Dentistry",
35 "primaryCategory": "Dentist",
36 "streetAddress": "9 Cedar Ave",
37 "locality": "Raleigh",
38 "phoneNumber": "+1 919 555 0123",
39 "website": "https://cedarfamilydentistry.com",
40 "googleRating": "4.8",
41 "userRatingsTotal": "184",
42 "placeId": "sample-place-cedar-raleigh"
43 }
44 ],
45 "scrapedAt": "2026-07-08T00:00:00.000Z"
46};
47
48
49const run = await client.actor("rotvuvo/local-seo-smb-lead-gap-scorer").call(input);
50
51
52console.log('Results from dataset');
53console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
54const { items } = await client.dataset(run.defaultDatasetId).listItems();
55items.forEach((item) => {
56 console.dir(item);
57});
58
59