1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "places": [
10 {
11 "state": "Texas",
12 "countryCode": "US",
13 "claimThisBusiness": False,
14 "permanentlyClosed": False,
15 "temporarilyClosed": False,
16 "title": "Blue Door Dental Care",
17 "categoryName": "Dentist",
18 "categories": [
19 "Dentist",
20 "Cosmetic dentist",
21 ],
22 "address": "120 Main St, Austin, TX 78701",
23 "city": "Austin",
24 "phone": "(512) 555-0134",
25 "website": "https://www.bluedoordental.com/",
26 "emails": ["hello@bluedoordental.com"],
27 "facebooks": ["https://facebook.com/bluedoordental"],
28 "instagrams": ["https://instagram.com/bluedoordental"],
29 "totalScore": 4.8,
30 "reviewsCount": 212,
31 "imagesCount": 84,
32 "openingHours": [
33 {
34 "day": "Monday",
35 "hours": "8 AM to 6 PM",
36 },
37 {
38 "day": "Tuesday",
39 "hours": "8 AM to 6 PM",
40 },
41 {
42 "day": "Wednesday",
43 "hours": "8 AM to 6 PM",
44 },
45 {
46 "day": "Thursday",
47 "hours": "8 AM to 6 PM",
48 },
49 {
50 "day": "Friday",
51 "hours": "8 AM to 6 PM",
52 },
53 {
54 "day": "Saturday",
55 "hours": "Closed",
56 },
57 {
58 "day": "Sunday",
59 "hours": "Closed",
60 },
61 ],
62 "description": "Family and cosmetic dentistry in downtown Austin.",
63 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_bluedoor_A",
64 "placeId": "ChIJ_bluedoor_A",
65 },
66 {
67 "state": "Texas",
68 "countryCode": "US",
69 "claimThisBusiness": False,
70 "permanentlyClosed": False,
71 "temporarilyClosed": False,
72 "title": "Lakeside Pizza & Pasta",
73 "categoryName": "Pizza restaurant",
74 "categories": [
75 "Pizza restaurant",
76 "Italian restaurant",
77 ],
78 "address": "45 Lake Ave, Austin, TX 78702",
79 "city": "Austin",
80 "phone": "(512) 555-0178",
81 "website": "https://www.facebook.com/lakesidepizzaatx",
82 "emails": [],
83 "facebooks": ["https://www.facebook.com/lakesidepizzaatx"],
84 "instagrams": [],
85 "totalScore": 4.4,
86 "reviewsCount": 891,
87 "imagesCount": 1200,
88 "openingHours": [
89 {
90 "day": "Monday",
91 "hours": "8 AM to 6 PM",
92 },
93 {
94 "day": "Tuesday",
95 "hours": "8 AM to 6 PM",
96 },
97 {
98 "day": "Wednesday",
99 "hours": "8 AM to 6 PM",
100 },
101 {
102 "day": "Thursday",
103 "hours": "8 AM to 6 PM",
104 },
105 {
106 "day": "Friday",
107 "hours": "8 AM to 6 PM",
108 },
109 {
110 "day": "Saturday",
111 "hours": "8 AM to 6 PM",
112 },
113 {
114 "day": "Sunday",
115 "hours": "8 AM to 6 PM",
116 },
117 ],
118 "description": None,
119 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_lakeside_1",
120 "placeId": "ChIJ_lakeside_1",
121 },
122 {
123 "state": "Texas",
124 "countryCode": "US",
125 "claimThisBusiness": False,
126 "permanentlyClosed": False,
127 "temporarilyClosed": False,
128 "title": "Hill Country Coffee",
129 "categoryName": "Coffee shop",
130 "categories": [
131 "Coffee shop",
132 "Cafe",
133 ],
134 "address": "900 Congress Ave, Austin, TX 78701",
135 "city": "Austin",
136 "phone": "(512) 555-0102",
137 "website": "https://hillcountrycoffee.com",
138 "emails": ["info@hillcountrycoffee.com"],
139 "facebooks": ["https://facebook.com/hillcountrycoffee"],
140 "instagrams": ["https://instagram.com/hillcountrycoffee"],
141 "tiktoks": ["https://tiktok.com/@hillcountrycoffee"],
142 "totalScore": 4.6,
143 "reviewsCount": 540,
144 "imagesCount": 310,
145 "openingHours": [
146 {
147 "day": "Monday",
148 "hours": "8 AM to 6 PM",
149 },
150 {
151 "day": "Tuesday",
152 "hours": "8 AM to 6 PM",
153 },
154 {
155 "day": "Wednesday",
156 "hours": "8 AM to 6 PM",
157 },
158 {
159 "day": "Thursday",
160 "hours": "8 AM to 6 PM",
161 },
162 {
163 "day": "Friday",
164 "hours": "8 AM to 6 PM",
165 },
166 {
167 "day": "Saturday",
168 "hours": "8 AM to 6 PM",
169 },
170 {
171 "day": "Sunday",
172 "hours": "8 AM to 6 PM",
173 },
174 ],
175 "description": "Small-batch roasters and an all-day cafe.",
176 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_hcc_congress",
177 "placeId": "ChIJ_hcc_congress",
178 },
179 {
180 "state": "Texas",
181 "countryCode": "US",
182 "claimThisBusiness": True,
183 "permanentlyClosed": False,
184 "temporarilyClosed": False,
185 "title": "Greenleaf Plumbing Co.",
186 "categoryName": "Plumber",
187 "categories": [
188 "Plumber",
189 "Water heater installation service",
190 ],
191 "address": "77 Industrial Blvd, Round Rock, TX 78664",
192 "city": "Round Rock",
193 "phone": "(512) 555-0190",
194 "website": None,
195 "emails": [],
196 "facebooks": [],
197 "instagrams": [],
198 "totalScore": 4.9,
199 "reviewsCount": 64,
200 "imagesCount": 6,
201 "openingHours": [
202 {
203 "day": "Monday",
204 "hours": "8 AM to 6 PM",
205 },
206 {
207 "day": "Tuesday",
208 "hours": "8 AM to 6 PM",
209 },
210 {
211 "day": "Wednesday",
212 "hours": "8 AM to 6 PM",
213 },
214 {
215 "day": "Thursday",
216 "hours": "8 AM to 6 PM",
217 },
218 {
219 "day": "Friday",
220 "hours": "8 AM to 6 PM",
221 },
222 {
223 "day": "Saturday",
224 "hours": "Closed",
225 },
226 {
227 "day": "Sunday",
228 "hours": "Closed",
229 },
230 ],
231 "description": None,
232 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_greenleaf_1",
233 "placeId": "ChIJ_greenleaf_1",
234 },
235 {
236 "state": "Texas",
237 "countryCode": "US",
238 "claimThisBusiness": False,
239 "permanentlyClosed": False,
240 "temporarilyClosed": False,
241 "title": "Austin Bike Works",
242 "categoryName": "Bicycle shop",
243 "categories": [
244 "Bicycle shop",
245 "Bicycle repair shop",
246 ],
247 "address": "301 E 6th St, Austin, TX 78701",
248 "city": "Austin",
249 "phone": "(512) 555-0155",
250 "website": "http://austinbikeworks.wixsite.com/home",
251 "emails": [],
252 "facebooks": ["https://facebook.com/austinbikeworks"],
253 "instagrams": [],
254 "totalScore": 4.7,
255 "reviewsCount": 158,
256 "imagesCount": 40,
257 "openingHours": [
258 {
259 "day": "Monday",
260 "hours": "8 AM to 6 PM",
261 },
262 {
263 "day": "Tuesday",
264 "hours": "8 AM to 6 PM",
265 },
266 {
267 "day": "Wednesday",
268 "hours": "8 AM to 6 PM",
269 },
270 {
271 "day": "Thursday",
272 "hours": "8 AM to 6 PM",
273 },
274 {
275 "day": "Friday",
276 "hours": "8 AM to 6 PM",
277 },
278 {
279 "day": "Saturday",
280 "hours": "Closed",
281 },
282 {
283 "day": "Sunday",
284 "hours": "Closed",
285 },
286 ],
287 "description": "Repairs, tune-ups and custom builds.",
288 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_bike_1",
289 "placeId": "ChIJ_bike_1",
290 },
291 {
292 "state": "Texas",
293 "countryCode": "US",
294 "claimThisBusiness": False,
295 "permanentlyClosed": False,
296 "temporarilyClosed": False,
297 "title": "Maria's Taqueria",
298 "categoryName": "Mexican restaurant",
299 "categories": [
300 "Mexican restaurant",
301 "Taco restaurant",
302 ],
303 "address": "15 Cesar Chavez St, Austin, TX 78701",
304 "city": "Austin",
305 "phone": "(512) 555-0143",
306 "website": "http://mariastaqueriaatx.com",
307 "emails": ["orders@mariastaqueriaatx.com"],
308 "facebooks": ["https://facebook.com/mariastaqueria"],
309 "instagrams": ["https://instagram.com/mariastaqueriaatx"],
310 "totalScore": 4.5,
311 "reviewsCount": 1210,
312 "imagesCount": 2300,
313 "openingHours": [
314 {
315 "day": "Monday",
316 "hours": "8 AM to 6 PM",
317 },
318 {
319 "day": "Tuesday",
320 "hours": "8 AM to 6 PM",
321 },
322 {
323 "day": "Wednesday",
324 "hours": "8 AM to 6 PM",
325 },
326 {
327 "day": "Thursday",
328 "hours": "8 AM to 6 PM",
329 },
330 {
331 "day": "Friday",
332 "hours": "8 AM to 6 PM",
333 },
334 {
335 "day": "Saturday",
336 "hours": "8 AM to 6 PM",
337 },
338 {
339 "day": "Sunday",
340 "hours": "8 AM to 6 PM",
341 },
342 ],
343 "description": "Family-run taqueria since 1998.",
344 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_maria_1",
345 "placeId": "ChIJ_maria_1",
346 },
347 {
348 "state": "Texas",
349 "countryCode": "US",
350 "claimThisBusiness": False,
351 "permanentlyClosed": False,
352 "temporarilyClosed": False,
353 "title": "Oak Street Veterinary Clinic",
354 "categoryName": "Veterinarian",
355 "categories": [
356 "Veterinarian",
357 "Animal hospital",
358 ],
359 "address": "8 Oak St, Cedar Park, TX 78613",
360 "city": "Cedar Park",
361 "phone": "(512) 555-0111",
362 "website": "https://oakstreetvet.com",
363 "emails": ["frontdesk@oakstreetvet.com"],
364 "facebooks": ["https://facebook.com/oakstreetvet"],
365 "instagrams": [],
366 "totalScore": 3.6,
367 "reviewsCount": 300,
368 "imagesCount": 55,
369 "openingHours": [
370 {
371 "day": "Monday",
372 "hours": "8 AM to 6 PM",
373 },
374 {
375 "day": "Tuesday",
376 "hours": "8 AM to 6 PM",
377 },
378 {
379 "day": "Wednesday",
380 "hours": "8 AM to 6 PM",
381 },
382 {
383 "day": "Thursday",
384 "hours": "8 AM to 6 PM",
385 },
386 {
387 "day": "Friday",
388 "hours": "8 AM to 6 PM",
389 },
390 {
391 "day": "Saturday",
392 "hours": "Closed",
393 },
394 {
395 "day": "Sunday",
396 "hours": "Closed",
397 },
398 ],
399 "description": "Full-service veterinary care.",
400 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_oak_1",
401 "placeId": "ChIJ_oak_1",
402 },
403 {
404 "state": "Texas",
405 "countryCode": "US",
406 "claimThisBusiness": True,
407 "permanentlyClosed": False,
408 "temporarilyClosed": False,
409 "title": "Sunrise Roofing & Repair",
410 "categoryName": "Roofing contractor",
411 "categories": ["Roofing contractor"],
412 "address": "2210 Ranch Rd 620 S, Lakeway, TX 78734",
413 "city": "Lakeway",
414 "phone": "(512) 555-0188",
415 "website": "http://www.sunriseroofingtx.com",
416 "emails": [],
417 "facebooks": [],
418 "instagrams": [],
419 "totalScore": 4.2,
420 "reviewsCount": 37,
421 "imagesCount": 12,
422 "openingHours": [
423 {
424 "day": "Monday",
425 "hours": "8 AM to 6 PM",
426 },
427 {
428 "day": "Tuesday",
429 "hours": "8 AM to 6 PM",
430 },
431 {
432 "day": "Wednesday",
433 "hours": "8 AM to 6 PM",
434 },
435 {
436 "day": "Thursday",
437 "hours": "8 AM to 6 PM",
438 },
439 {
440 "day": "Friday",
441 "hours": "8 AM to 6 PM",
442 },
443 {
444 "day": "Saturday",
445 "hours": "Closed",
446 },
447 {
448 "day": "Sunday",
449 "hours": "Closed",
450 },
451 ],
452 "description": None,
453 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_sunrise_1",
454 "placeId": "ChIJ_sunrise_1",
455 },
456 {
457 "state": "Texas",
458 "countryCode": "US",
459 "claimThisBusiness": True,
460 "permanentlyClosed": True,
461 "temporarilyClosed": False,
462 "title": "The Daily Grind Cafe",
463 "categoryName": "Cafe",
464 "categories": ["Cafe"],
465 "address": "600 W 6th St, Austin, TX 78701",
466 "city": "Austin",
467 "phone": None,
468 "website": None,
469 "emails": [],
470 "facebooks": [],
471 "instagrams": [],
472 "totalScore": 3.1,
473 "reviewsCount": 9,
474 "imagesCount": 2,
475 "openingHours": None,
476 "description": None,
477 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_grind_1",
478 "placeId": "ChIJ_grind_1",
479 },
480 {
481 "state": "Texas",
482 "countryCode": "US",
483 "claimThisBusiness": False,
484 "permanentlyClosed": False,
485 "temporarilyClosed": False,
486 "title": "Capital City Accounting",
487 "categoryName": "Accountant",
488 "categories": [
489 "Accountant",
490 "Tax preparation service",
491 ],
492 "address": "1100 Guadalupe St, Austin, TX 78701",
493 "city": "Austin",
494 "phone": "(512) 555-0166",
495 "website": "https://capitalcityacct.com",
496 "emails": ["info@capitalcityacct.com"],
497 "facebooks": [],
498 "instagrams": [],
499 "linkedIns": ["https://linkedin.com/company/capital-city-accounting"],
500 "totalScore": 4.9,
501 "reviewsCount": 88,
502 "imagesCount": 9,
503 "openingHours": [
504 {
505 "day": "Monday",
506 "hours": "8 AM to 6 PM",
507 },
508 {
509 "day": "Tuesday",
510 "hours": "8 AM to 6 PM",
511 },
512 {
513 "day": "Wednesday",
514 "hours": "8 AM to 6 PM",
515 },
516 {
517 "day": "Thursday",
518 "hours": "8 AM to 6 PM",
519 },
520 {
521 "day": "Friday",
522 "hours": "8 AM to 6 PM",
523 },
524 {
525 "day": "Saturday",
526 "hours": "Closed",
527 },
528 {
529 "day": "Sunday",
530 "hours": "Closed",
531 },
532 ],
533 "description": "Tax and bookkeeping for small business.",
534 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_capital_1",
535 "placeId": "ChIJ_capital_1",
536 },
537 {
538 "state": "Texas",
539 "countryCode": "US",
540 "claimThisBusiness": False,
541 "permanentlyClosed": False,
542 "temporarilyClosed": False,
543 "title": "Zen Garden Yoga",
544 "categoryName": "Yoga studio",
545 "categories": ["Yoga studio"],
546 "address": "3300 Bee Caves Rd, Austin, TX 78746",
547 "city": "Austin",
548 "phone": "(512) 555-0120",
549 "website": "https://zengardenyoga.square.site",
550 "emails": [],
551 "facebooks": ["https://facebook.com/zengardenyoga"],
552 "instagrams": ["https://instagram.com/zengardenyoga"],
553 "totalScore": 4.3,
554 "reviewsCount": 121,
555 "imagesCount": 70,
556 "openingHours": [
557 {
558 "day": "Monday",
559 "hours": "8 AM to 6 PM",
560 },
561 {
562 "day": "Tuesday",
563 "hours": "8 AM to 6 PM",
564 },
565 {
566 "day": "Wednesday",
567 "hours": "8 AM to 6 PM",
568 },
569 {
570 "day": "Thursday",
571 "hours": "8 AM to 6 PM",
572 },
573 {
574 "day": "Friday",
575 "hours": "8 AM to 6 PM",
576 },
577 {
578 "day": "Saturday",
579 "hours": "8 AM to 6 PM",
580 },
581 {
582 "day": "Sunday",
583 "hours": "8 AM to 6 PM",
584 },
585 ],
586 "description": "Vinyasa, yin and prenatal classes.",
587 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_zen_1",
588 "placeId": "ChIJ_zen_1",
589 },
590 {
591 "state": "Texas",
592 "countryCode": "US",
593 "claimThisBusiness": True,
594 "permanentlyClosed": False,
595 "temporarilyClosed": False,
596 "title": "Mike's Auto Repair",
597 "categoryName": "Auto repair shop",
598 "categories": ["Auto repair shop"],
599 "address": "950 N Lamar Blvd, Austin, TX 78703",
600 "city": "Austin",
601 "phone": "(512) 555-0177",
602 "website": None,
603 "emails": [],
604 "facebooks": [],
605 "instagrams": [],
606 "totalScore": 3.8,
607 "reviewsCount": 412,
608 "imagesCount": 18,
609 "openingHours": [
610 {
611 "day": "Monday",
612 "hours": "8 AM to 6 PM",
613 },
614 {
615 "day": "Tuesday",
616 "hours": "8 AM to 6 PM",
617 },
618 {
619 "day": "Wednesday",
620 "hours": "8 AM to 6 PM",
621 },
622 {
623 "day": "Thursday",
624 "hours": "8 AM to 6 PM",
625 },
626 {
627 "day": "Friday",
628 "hours": "8 AM to 6 PM",
629 },
630 {
631 "day": "Saturday",
632 "hours": "Closed",
633 },
634 {
635 "day": "Sunday",
636 "hours": "Closed",
637 },
638 ],
639 "description": None,
640 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_mikes_1",
641 "placeId": "ChIJ_mikes_1",
642 },
643 {
644 "state": "Texas",
645 "countryCode": "US",
646 "claimThisBusiness": False,
647 "permanentlyClosed": False,
648 "temporarilyClosed": True,
649 "title": "Pearl Nail Studio",
650 "categoryName": "Nail salon",
651 "categories": [
652 "Nail salon",
653 "Beauty salon",
654 ],
655 "address": "2400 S Congress Ave, Austin, TX 78704",
656 "city": "Austin",
657 "phone": "(512) 555-0109",
658 "website": "https://pearlnailstudio.com",
659 "emails": ["book@pearlnailstudio.com"],
660 "facebooks": ["https://facebook.com/pearlnailstudio"],
661 "instagrams": ["https://instagram.com/pearlnailstudio"],
662 "totalScore": 4.1,
663 "reviewsCount": 260,
664 "imagesCount": 150,
665 "openingHours": [
666 {
667 "day": "Monday",
668 "hours": "8 AM to 6 PM",
669 },
670 {
671 "day": "Tuesday",
672 "hours": "8 AM to 6 PM",
673 },
674 {
675 "day": "Wednesday",
676 "hours": "8 AM to 6 PM",
677 },
678 {
679 "day": "Thursday",
680 "hours": "8 AM to 6 PM",
681 },
682 {
683 "day": "Friday",
684 "hours": "8 AM to 6 PM",
685 },
686 {
687 "day": "Saturday",
688 "hours": "Closed",
689 },
690 {
691 "day": "Sunday",
692 "hours": "Closed",
693 },
694 ],
695 "description": "Gel, acrylic and spa manicures.",
696 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_pearl_1",
697 "placeId": "ChIJ_pearl_1",
698 },
699 {
700 "state": "Texas",
701 "countryCode": "US",
702 "claimThisBusiness": False,
703 "permanentlyClosed": False,
704 "temporarilyClosed": False,
705 "title": "Barton Springs Law Group",
706 "categoryName": "Personal injury attorney",
707 "categories": [
708 "Personal injury attorney",
709 "Law firm",
710 ],
711 "address": "700 Lavaca St, Austin, TX 78701",
712 "city": "Austin",
713 "phone": "(512) 555-0150",
714 "website": "https://bartonspringslaw.com",
715 "emails": ["contact@bartonspringslaw.com"],
716 "facebooks": ["https://facebook.com/bartonspringslaw"],
717 "instagrams": [],
718 "linkedIns": ["https://linkedin.com/company/barton-springs-law"],
719 "totalScore": 4,
720 "reviewsCount": 73,
721 "imagesCount": 25,
722 "openingHours": [
723 {
724 "day": "Monday",
725 "hours": "8 AM to 6 PM",
726 },
727 {
728 "day": "Tuesday",
729 "hours": "8 AM to 6 PM",
730 },
731 {
732 "day": "Wednesday",
733 "hours": "8 AM to 6 PM",
734 },
735 {
736 "day": "Thursday",
737 "hours": "8 AM to 6 PM",
738 },
739 {
740 "day": "Friday",
741 "hours": "8 AM to 6 PM",
742 },
743 {
744 "day": "Saturday",
745 "hours": "Closed",
746 },
747 {
748 "day": "Sunday",
749 "hours": "Closed",
750 },
751 ],
752 "description": "Austin personal injury lawyers.",
753 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_barton_1",
754 "placeId": "ChIJ_barton_1",
755 },
756 {
757 "state": "Texas",
758 "countryCode": "US",
759 "claimThisBusiness": True,
760 "permanentlyClosed": False,
761 "temporarilyClosed": False,
762 "title": "Quick Lube Express",
763 "categoryName": "Oil change service",
764 "categories": ["Oil change service"],
765 "address": "5100 Burnet Rd, Austin, TX 78756",
766 "city": "Austin",
767 "phone": "(512) 555-0199",
768 "website": "https://quicklubeexpress.business.site",
769 "emails": [],
770 "facebooks": [],
771 "instagrams": [],
772 "totalScore": 2.9,
773 "reviewsCount": 187,
774 "imagesCount": 7,
775 "openingHours": [
776 {
777 "day": "Monday",
778 "hours": "8 AM to 6 PM",
779 },
780 {
781 "day": "Tuesday",
782 "hours": "8 AM to 6 PM",
783 },
784 {
785 "day": "Wednesday",
786 "hours": "8 AM to 6 PM",
787 },
788 {
789 "day": "Thursday",
790 "hours": "8 AM to 6 PM",
791 },
792 {
793 "day": "Friday",
794 "hours": "8 AM to 6 PM",
795 },
796 {
797 "day": "Saturday",
798 "hours": "Closed",
799 },
800 {
801 "day": "Sunday",
802 "hours": "Closed",
803 },
804 ],
805 "description": None,
806 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ_lube_1",
807 "placeId": "ChIJ_lube_1",
808 },
809 ],
810 "sourceUrl": "",
811 "csvText": "",
812 "goal": "bestOverall",
813 "weightOverrides": {},
814 "targetCategories": [],
815 "excludeCategories": [],
816 "minReviews": 0,
817 "excludeClosed": True,
818 "tierACutoff": 75,
819 "tierBCutoff": 55,
820 "tierCCutoff": 35,
821 "topN": 0,
822 "csvTopCount": 100,
823 "includeSkipped": True,
824 "fieldMap": {},
825 "maxRecords": 200000,
826}
827
828
829run = client.actor("that_red_bird/maps-lead-scorer").call(run_input=run_input)
830
831
832print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
833for item in client.dataset(run.default_dataset_id).iterate_items():
834 print(item)
835
836